Anamaria Stoica wrote:
Hi,
Concerning DocumentAccessBridge [0], would it be possible to add another setProperty method, which would indicate the number(index) of the object you add the property value to? Its signature would be:
void setProperty(String documentName, String className, int objectNumber, String propertyName, Object propertyValue) throws Exception;
I need it to be able to easily add new objects and modify their property values, from a component. Is there any other way of doing this I overlooked?
Right now, the only existing setProperty method operates only on the first object attached to the document:
void setProperty(String documentName, String className, String propertyName, Object propertyValue) throws Exception;
The corresponding getters are both already present: Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName);
WDYT?
+1 -- Sergiu Dumitriu http://purl.org/net/sergiu/