net.sf.jldapbeans.lang.annotation
Enum LdapModifier

java.lang.Object
  extended by java.lang.Enum<LdapModifier>
      extended by net.sf.jldapbeans.lang.annotation.LdapModifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LdapModifier>

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


Enum Constant Summary
ABSTRACT
          Modifier for ASBTRACT objectClasses
AUXILIARY
          Modifier for AUXILIARY objectClasses
REQUIRED
           
SINGLE_VALUE
           
STRUCTURAL
          Modifier for STRUCTURAL objectClasses
 
Method Summary
static LdapModifier forClass(java.lang.Class<?> clazz)
          Identifies the LdapModifier of a java class
static LdapModifier[] forMethod(java.lang.reflect.Method method)
           
static boolean isAbstract(LdapModifier... ldapModifiers)
           
static boolean isAuxiliary(LdapModifier... ldapModifiers)
           
static boolean isRequired(LdapModifier... ldapModifiers)
           
static boolean isSingleValue(LdapModifier... ldapModifiers)
           
static boolean isStructural(LdapModifier... ldapModifiers)
           
static LdapModifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LdapModifier[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ABSTRACT

public static final LdapModifier ABSTRACT
Modifier for ASBTRACT objectClasses


AUXILIARY

public static final LdapModifier AUXILIARY
Modifier for AUXILIARY objectClasses


REQUIRED

public static final LdapModifier REQUIRED

STRUCTURAL

public static final LdapModifier STRUCTURAL
Modifier for STRUCTURAL objectClasses


SINGLE_VALUE

public static final LdapModifier SINGLE_VALUE
Method Detail

values

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

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

valueOf

public static LdapModifier 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

isAbstract

public static boolean isAbstract(LdapModifier... ldapModifiers)

isAuxiliary

public static boolean isAuxiliary(LdapModifier... ldapModifiers)

isStructural

public static boolean isStructural(LdapModifier... ldapModifiers)

isRequired

public static boolean isRequired(LdapModifier... ldapModifiers)

isSingleValue

public static boolean isSingleValue(LdapModifier... ldapModifiers)

forClass

public static LdapModifier forClass(java.lang.Class<?> clazz)
Identifies the LdapModifier of a java class

Parameters:
clazz - Guesses the object type for this java class.
Returns:
The LdapModifier for the java class specified of null if doesn't corresponds with a LdapBean declaration.

forMethod

public static LdapModifier[] forMethod(java.lang.reflect.Method method)


Copyright © 2005 jLDAPBeans Team. All Rights Reserved.