tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hasan Muhammad <asun...@us.ibm.com>
Subject Re: SDO 2.0 - Property Interface
Date Thu, 10 Aug 2006 13:58:15 GMT

The getInstanceProperties() is being called on DataObject ( which exists in
the DataObject Interface ), and not on the Property class.

dataObject.getInstanceProperties()



                                                                           
             ramya r                                                       
             <ramya_88@yahoo.c                                             
             om>                                                        To 
                                       tuscany-user@ws.apache.org          
             08/10/2006 08:47                                           cc 
             AM                                                            
                                                                   Subject 
                                       SDO 2.0 - Property Interface        
             Please respond to                                             
             tuscany-user@ws.a                                             
                 pache.org                                                 
                                                                           
                                                                           
                                                                           




Hi,
  I have  ben trying to use SDO 2.0 implementation to transform an XML file
into a DataGraph.
  But on examinig the files, i find that the DataObjectUtil Class
  public static Property getProperty(DataObject dataObject, int
propertyIndex)
  {
    List typeProperties = dataObject.getType().getProperties();

    Property property = propertyIndex < typeProperties.size() ?
        (Property)typeProperties.get(propertyIndex) :
        (Property)dataObject.getInstanceProperties().get(propertyIndex);

    //FB maybe should catch bad index exception and throw
IllegalArgumentException?
    return property;
  }
  the follwing method calls the getInstanceProperties() of the Property in
the commonj.sdo package.
  But the Property Class found in this package has no such method.
  Its only the Property Model Class interface that has such a method.
  Any help?
  Thanks in advance
  Preethi


---------------------------------
Get your email and more, right on the  new Yahoo.com
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message