org.apache.directory.api.ldap.model.schema
Class AttributesFactory

java.lang.Object
  extended by 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
AttributesFactory()
           
 
Method Summary
 Entry 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)
           
 Entry convert(DitStructureRule ditStructureRule, Schema schema, SchemaManager schemaManager)
           
 Entry convert(LdapSyntax syntax, Schema schema, SchemaManager schemaManager)
           
 Entry convert(MatchingRule matchingRule, Schema schema, SchemaManager schemaManager)
           
 Entry convert(MatchingRuleUse matchingRuleUse, Schema schema, SchemaManager schemaManager)
           
 Entry convert(NameForm nameForm, Schema schema, SchemaManager schemaManager)
           
 Entry convert(ObjectClass objectClass, Schema schema, SchemaManager schemaManager)
          Creates the attributes of an entry representing an objectClass.
 Entry convert(Schema schema, SchemaManager schemaManager)
          Convert a Schema to Entry
 Entry convert(String oid, LdapComparator<? super Object> comparator, Schema schema, SchemaManager schemaManager)
           
 Entry convert(String oid, Normalizer normalizer, Schema schema, SchemaManager schemaManager)
           
 Entry convert(SyntaxChecker syntaxChecker, Schema schema, SchemaManager schemaManager)
           
 Entry getAttributes(SchemaObject obj, Schema schema, SchemaManager schemaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesFactory

public AttributesFactory()
Method Detail

getAttributes

public Entry getAttributes(SchemaObject obj,
                           Schema schema,
                           SchemaManager schemaManager)
                    throws LdapException
Throws:
LdapException

convert

public Entry convert(Schema schema,
                     SchemaManager schemaManager)
              throws LdapException
Convert a Schema to Entry

Parameters:
schema - The Schema to convert
schemaManager - 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

public Entry convert(LdapSyntax syntax,
                     Schema schema,
                     SchemaManager schemaManager)
              throws LdapException
Throws:
LdapException

convert

public Entry convert(String oid,
                     Normalizer normalizer,
                     Schema schema,
                     SchemaManager schemaManager)

convert

public Entry convert(String oid,
                     LdapComparator<? super Object> comparator,
                     Schema schema,
                     SchemaManager schemaManager)

convert

public Entry convert(MatchingRule matchingRule,
                     Schema schema,
                     SchemaManager schemaManager)
              throws LdapException
Parameters:
matchingRule -
Returns:
Attributes
Throws:
LdapException

convert

public Entry convert(MatchingRuleUse matchingRuleUse,
                     Schema schema,
                     SchemaManager schemaManager)

convert

public Entry convert(DitStructureRule ditStructureRule,
                     Schema schema,
                     SchemaManager schemaManager)

convert

public Entry convert(DitContentRule dITContentRule,
                     Schema schema,
                     SchemaManager schemaManager)

convert

public Entry convert(NameForm nameForm,
                     Schema schema,
                     SchemaManager schemaManager)

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 -
Returns:
Attributes
Throws:
LdapException

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 for
Returns:
the attributes of the metaSchema entry representing the objectClass
Throws:
LdapException - if there are any problems


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.