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 orderedIterable
of the givenAttributeType
s.static Iterable<ObjectClass>
sortObjectClasses(List<ObjectClass> objectClasses)
Gets an hierarchical orderedIterable
of the givenObjectClass
es.
-
-
-
Method Detail
-
hierarchicalOrdered
public static Iterable<AttributeType> hierarchicalOrdered(List<AttributeType> attributeTypes)
Gets an hierarchical orderedIterable
of the givenAttributeType
s. In other words parentAttributeType
s are returned before childAttributeType
s.- 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 orderedIterable
of the givenObjectClass
es. In other words parentObjectClass
es are returned before childObjectClass
es.- Parameters:
objectClasses
- list of object classes to order- Returns:
- the hierarchical ordered object classes
-
-