Class SchemaObjectSorter
java.lang.Object
org.apache.directory.api.ldap.model.schema.SchemaObjectSorter
Various utility methods for sorting schema objects.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
hierarchicalOrdered
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
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
-