Class AttributesFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.AttributesFactory
-
public class AttributesFactory extends Object
A factory that generates an entry using the meta schema for schema elements.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AttributesFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entry
convert(String oid, LdapComparator<? super Object> comparator, Schema schema, SchemaManager schemaManager)
Convert a LdapComparator instance into an EntryEntry
convert(String oid, Normalizer normalizer, Schema schema, SchemaManager schemaManager)
Convert a Normalizer instance into an EntryEntry
convert(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 ) )Entry
convert(DitContentRule dITContentRule, Schema schema, SchemaManager schemaManager)
Converts a DitContentRule into an EntryEntry
convert(DitStructureRule ditStructureRule, Schema schema, SchemaManager schemaManager)
Converts a DitStructureRule into an EntryEntry
convert(LdapSyntax syntax, Schema schema, SchemaManager schemaManager)
Convert a Syntax instance into an EntryEntry
convert(MatchingRule matchingRule, Schema schema, SchemaManager schemaManager)
Converts a MatchingRule into an EntryEntry
convert(MatchingRuleUse matchingRuleUse, Schema schema, SchemaManager schemaManager)
Converts a MatchingRuleUse into an EntryEntry
convert(NameForm nameForm, Schema schema, SchemaManager schemaManager)
Converts a NameForm into an EntryEntry
convert(ObjectClass objectClass, Schema schema, SchemaManager schemaManager)
Creates the attributes of an entry representing an objectClass.Entry
convert(Schema schema, SchemaManager schemaManager)
Converts a Schema to an EntryEntry
convert(SyntaxChecker syntaxChecker, Schema schema, SchemaManager schemaManager)
Convert a SyntaxChecker instance into an EntryEntry
getAttributes(SchemaObject obj, Schema schema, SchemaManager schemaManager)
Get a SchemaObject as an Entry
-
-
-
Constructor Detail
-
AttributesFactory
public AttributesFactory()
-
-
Method Detail
-
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
public Entry convert(Schema schema, SchemaManager schemaManager) throws LdapException
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
public Entry convert(SyntaxChecker syntaxChecker, Schema schema, SchemaManager schemaManager)
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
public Entry convert(String oid, Normalizer normalizer, Schema schema, SchemaManager schemaManager)
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
public Entry convert(MatchingRuleUse matchingRuleUse, Schema schema, SchemaManager schemaManager)
Converts a MatchingRuleUse into an Entry- Parameters:
matchingRuleUse
- The MatchingRuleUse to convertschema
- The schema containing this MatchingRuleUseschemaManager
- The SchemaManager- Returns:
- The converted MatchingRuleUse
-
convert
public Entry convert(DitStructureRule ditStructureRule, Schema schema, SchemaManager schemaManager)
Converts a DitStructureRule into an Entry- Parameters:
ditStructureRule
- The DitStructureRule to convertschema
- The schema containing this DitStructureRuleschemaManager
- The SchemaManager- Returns:
- The converted DitStructureRule
-
convert
public Entry convert(DitContentRule dITContentRule, Schema schema, SchemaManager schemaManager)
Converts a DitContentRule into an Entry- Parameters:
dITContentRule
- The DitContentRule to convertschema
- The schema containing this DitContentRuleschemaManager
- The SchemaManager- Returns:
- The converted DitContentRule
-
convert
public Entry convert(NameForm nameForm, Schema schema, SchemaManager schemaManager)
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
-
-