Class SchemaObjectSorter
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.SchemaObjectSorter
-
public final class SchemaObjectSorter extends Object
Various utility methods for sorting schema objects.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterable<AttributeType>hierarchicalOrdered(List<AttributeType> attributeTypes)Gets an hierarchical orderedIterableof the givenAttributeTypes.static Iterable<ObjectClass>sortObjectClasses(List<ObjectClass> objectClasses)Gets an hierarchical orderedIterableof the givenObjectClasses.
-
-
-
Method Detail
-
hierarchicalOrdered
public static Iterable<AttributeType> hierarchicalOrdered(List<AttributeType> attributeTypes)
Gets an hierarchical orderedIterableof the givenAttributeTypes. In other words parentAttributeTypes are returned before childAttributeTypes.- Parameters:
attributeTypes- list of attribute types to order- Returns:
- the hierarchical ordered attribute types
-
sortObjectClasses
public static Iterable<ObjectClass> sortObjectClasses(List<ObjectClass> objectClasses)
Gets an hierarchical orderedIterableof the givenObjectClasses. In other words parentObjectClasses are returned before childObjectClasses.- Parameters:
objectClasses- list of object classes to order- Returns:
- the hierarchical ordered object classes
-
-