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

dataObject.getInstanceProperties()

Inactive hide details for ramya r <[EMAIL PROTECTED]>ramya r <[EMAIL PROTECTED]>



To

[email protected]

cc


Subject

SDO 2.0 - Property Interface

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

Reply via email to