Class AttributesFactory
java.lang.Object
org.apache.directory.api.ldap.model.schema.AttributesFactory
A factory that generates an entry using the meta schema for schema
elements.
- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(String oid, LdapComparator<? super Object> comparator, Schema schema, SchemaManager schemaManager) Convert a LdapComparator instance into an Entryconvert(String oid, Normalizer normalizer, Schema schema, SchemaManager schemaManager) Convert a Normalizer instance into an Entryconvert(AttributeType attributeType, Schema schema, SchemaManager schemaManager) objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3 NAME 'metaAttributeType' DESC 'meta definition of the AttributeType object' SUP metaTop STRUCTURAL MUST ( m-name $ m-syntax ) MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $ m-substr $ m-singleValue $ m-collective $ m-noUserModification $ m-usage $ m-extensionAttributeType ) )convert(DitContentRule dITContentRule, Schema schema, SchemaManager schemaManager) Converts a DitContentRule into an Entryconvert(DitStructureRule ditStructureRule, Schema schema, SchemaManager schemaManager) Converts a DitStructureRule into an Entryconvert(LdapSyntax syntax, Schema schema, SchemaManager schemaManager) Convert a Syntax instance into an Entryconvert(MatchingRule matchingRule, Schema schema, SchemaManager schemaManager) Converts a MatchingRule into an Entryconvert(MatchingRuleUse matchingRuleUse, Schema schema, SchemaManager schemaManager) Converts a MatchingRuleUse into an Entryconvert(NameForm nameForm, Schema schema, SchemaManager schemaManager) Converts a NameForm into an Entryconvert(ObjectClass objectClass, Schema schema, SchemaManager schemaManager) Creates the attributes of an entry representing an objectClass.convert(Schema schema, SchemaManager schemaManager) Converts a Schema to an Entryconvert(SyntaxChecker syntaxChecker, Schema schema, SchemaManager schemaManager) Convert a SyntaxChecker instance into an EntrygetAttributes(SchemaObject obj, Schema schema, SchemaManager schemaManager) Get a SchemaObject as an Entry
-
Constructor Details
-
AttributesFactory
public AttributesFactory()
-
-
Method Details
-
getAttributes
public Entry getAttributes(SchemaObject obj, Schema schema, SchemaManager schemaManager) throws LdapException Get a SchemaObject as an Entry- Parameters:
obj- The schema oobject to convertschema- The schema which this object belongs toschemaManager- The SchemaManager- Returns:
- The converted schema object as an Entry
- Throws:
LdapException- If we can't convert teh schema object
-
convert
Converts a Schema to an Entry- Parameters:
schema- The Schema to convertschemaManager- The SchemaManager- Returns:
- An Entry containing the converted Schema
- Throws:
LdapException- If the conversion failed
-
convert
Convert a SyntaxChecker instance into an Entry- Parameters:
syntaxChecker- The SyntaxChecker to convertschema- The schema containing this SyntaxCheckerschemaManager- The SchemaManager- Returns:
- An Entry containing the converted SyntaxChecker
-
convert
public Entry convert(LdapSyntax syntax, Schema schema, SchemaManager schemaManager) throws LdapException Convert a Syntax instance into an Entry- Parameters:
syntax- The LdapSytax to convertschema- The schema containing this SyntaxschemaManager- The SchemaManager- Returns:
- And entry defining a LdapSyntax
- Throws:
LdapException- If the conversion failed
-
convert
Convert a Normalizer instance into an Entry- Parameters:
oid- The Normalizer's OIDnormalizer- The Normalizer to convertschema- The schema containing this NormalizerschemaManager- The SchemaManager- Returns:
- An Entry defining a Normalizer
-
convert
public Entry convert(String oid, LdapComparator<? super Object> comparator, Schema schema, SchemaManager schemaManager) Convert a LdapComparator instance into an Entry- Parameters:
oid- The LdapComparator's OIDcomparator- The LdapComparator to convertschema- The schema containing this ComparatorschemaManager- The SchemaManager- Returns:
- An Entry defining a LdapComparator
-
convert
public Entry convert(MatchingRule matchingRule, Schema schema, SchemaManager schemaManager) throws LdapException Converts a MatchingRule into an Entry- Parameters:
matchingRule- The MatchingRule to convertschema- The schema containing this ObjectClassschemaManager- The SchemaManager- Returns:
- The converted MatchingRule
- Throws:
LdapException- If the conversion failed
-
convert
Converts a MatchingRuleUse into an Entry- Parameters:
matchingRuleUse- The MatchingRuleUse to convertschema- The schema containing this MatchingRuleUseschemaManager- The SchemaManager- Returns:
- The converted MatchingRuleUse
-
convert
Converts a DitStructureRule into an Entry- Parameters:
ditStructureRule- The DitStructureRule to convertschema- The schema containing this DitStructureRuleschemaManager- The SchemaManager- Returns:
- The converted DitStructureRule
-
convert
Converts a DitContentRule into an Entry- Parameters:
dITContentRule- The DitContentRule to convertschema- The schema containing this DitContentRuleschemaManager- The SchemaManager- Returns:
- The converted DitContentRule
-
convert
Converts a NameForm into an Entry- Parameters:
nameForm- The NameForm to convertschema- The schema containing this NameFormschemaManager- The SchemaManager- Returns:
- The converted NameForm
-
convert
public Entry convert(AttributeType attributeType, Schema schema, SchemaManager schemaManager) throws LdapException objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3 NAME 'metaAttributeType' DESC 'meta definition of the AttributeType object' SUP metaTop STRUCTURAL MUST ( m-name $ m-syntax ) MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $ m-substr $ m-singleValue $ m-collective $ m-noUserModification $ m-usage $ m-extensionAttributeType ) )- Parameters:
attributeType- The AttributeType to convertschema- The schema containing this AttributeTypeschemaManager- The SchemaManager- Returns:
- The converted AttributeType
- Throws:
LdapException- If the conversion failed
-
convert
public Entry convert(ObjectClass objectClass, Schema schema, SchemaManager schemaManager) throws LdapException Creates the attributes of an entry representing an objectClass.objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.2 NAME 'metaObjectClass' DESC 'meta definition of the objectclass object' SUP metaTop STRUCTURAL MUST m-oid MAY ( m-name $ m-obsolete $ m-supObjectClass $ m-typeObjectClass $ m-must $ m-may $ m-extensionObjectClass ) )- Parameters:
objectClass- the objectClass to produce a meta schema entry forschema- The schema containing this ObjectClassschemaManager- The SchemaManager- Returns:
- the attributes of the metaSchema entry representing the objectClass
- Throws:
LdapException- If the conversion failed
-