AnsweredAssumed Answered

Order property

Question asked by robby on Feb 20, 2008
Latest reply on Feb 25, 2008 by robby
Hi all,
it's posible get the list of the property in the defined (xml) order?
Eg:

<type name="prfix:Type">
         <title>Title</title>
        <parent>cm:content</parent>
        <properties>
            <property name="xxx">
               <title>Prop1</title>
                  <type>d:text</type>
            </property>
            <property name="yyy">
               <title>Prop2</title>
                  <type>d:date</type>
            </property>
            <property name="zzz">
               <title>Prop3</title>
                  <type>d:text</type>
                  <mandatory>true</mandatory>
            </property>
        </properties>
</type>

At this point i get the properties map with:
Map<QName, PropertyDefinition> propertyDefsMap = typeDef.getProperties();

This is a map and i lost the sorting.
I want to have this order: Prop1,Prop2,Prop3.
It's possible???

Best regards

Robert.

Outcomes