AnsweredAssumed Answered

Multi-Value property verification

Question asked by merimm on Dec 1, 2008
Latest reply on Jan 12, 2010 by goldfiled
Hello,

Please, ¿could anybody explain me how to detect if a property is multivalued or not (given a model)?

For example, this is a multivalued property definition:
<property name="my:group">
<title>Group</title>
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>true</multiple>
</property>

Then, I can obtain its type, name, title, etc., but not if it is multivalued:
String prop = "my:group";
DictionaryServiceSoapBindingStub dssbs= WebServiceFactory.getDictionaryService();
org.alfresco.webservice.types.PropertyDefinition[] propDefs = dssbs.getProperties(new String[] {prop});
System.out.println("          Descripción: "+propDefs[0].getDescription());
System.out.println("          DefaultValue: "+propDefs[0].getDefaultValue());
System.out.println("          DataType: "+propDefs[0].getDataType());
System.out.println("          Name: "+propDefs[0].getName());
System.out.println("          Title: "+propDefs[0].getTitle());

I am thankful for your help.

Best regards,
merimm

Outcomes