org.apache.directory.shared.ldap.schema
Enum SchemaObjectType

java.lang.Object
  extended by java.lang.Enum<SchemaObjectType>
      extended by org.apache.directory.shared.ldap.schema.SchemaObjectType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SchemaObjectType>

public enum SchemaObjectType
extends java.lang.Enum<SchemaObjectType>

The SchemaObject types

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Enum Constant Summary
ATTRIBUTE_TYPE
           
COMPARATOR
           
DIT_CONTENT_RULE
           
DIT_STRUCTURE_RULE
           
LDAP_SYNTAX
           
MATCHING_RULE
           
MATCHING_RULE_USE
           
NAME_FORM
           
NORMALIZER
           
OBJECT_CLASS
           
SYNTAX_CHECKER
           
 
Method Summary
 java.lang.String getRdn()
          Get the RDN associated with a schemaObjectType
 int getValue()
           
static SchemaObjectType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SchemaObjectType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ATTRIBUTE_TYPE

public static final SchemaObjectType ATTRIBUTE_TYPE

COMPARATOR

public static final SchemaObjectType COMPARATOR

DIT_CONTENT_RULE

public static final SchemaObjectType DIT_CONTENT_RULE

DIT_STRUCTURE_RULE

public static final SchemaObjectType DIT_STRUCTURE_RULE

LDAP_SYNTAX

public static final SchemaObjectType LDAP_SYNTAX

MATCHING_RULE

public static final SchemaObjectType MATCHING_RULE

MATCHING_RULE_USE

public static final SchemaObjectType MATCHING_RULE_USE

NAME_FORM

public static final SchemaObjectType NAME_FORM

NORMALIZER

public static final SchemaObjectType NORMALIZER

OBJECT_CLASS

public static final SchemaObjectType OBJECT_CLASS

SYNTAX_CHECKER

public static final SchemaObjectType SYNTAX_CHECKER
Method Detail

values

public static SchemaObjectType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SchemaObjectType c : SchemaObjectType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SchemaObjectType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Returns:
The numeric value for this type

getRdn

public java.lang.String getRdn()
Get the RDN associated with a schemaObjectType

Parameters:
schemaObjectType - The type we want the RDN for
Returns:
The associated RDN


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.