if ( schemas == null )
{
return ditStructureRuleEntries;
}
AttributesFactory factory = new AttributesFactory();
for ( Schema schema : schemas )
{
Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();
for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
{
SchemaObject schemaObject = schemaObjectWrapper.get();
if ( schemaObject instanceof DitStructureRule )
{
DitStructureRule ditStructureRule = ( DitStructureRule ) schemaObject;
Entry ditStructureRuleEntry = factory.convert( ditStructureRule, schema, null );
ditStructureRuleEntries.add( ditStructureRuleEntry );
}
}
}