com.unboundid.ldap.sdk.persist
Class GetterInfo

java.lang.Object
  extended by com.unboundid.ldap.sdk.persist.GetterInfo
All Implemented Interfaces:
java.io.Serializable

@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class GetterInfo
extends java.lang.Object
implements java.io.Serializable

This class provides a data structure that holds information about an annotated getter method.

See Also:
Serialized Form

Method Summary
 java.lang.String getAttributeName()
          Retrieves the name of the LDAP attribute used to hold values for the associated method.
 java.lang.Class<?> getContainingClass()
          Retrieves the class that is marked with the LDAPObject annotation and contains the associated field.
 ObjectEncoder getEncoder()
          Retrieves the encoder that should be used for the associated method.
 FilterUsage getFilterUsage()
          Retrieves the filter usage for the associated method.
 java.lang.reflect.Method getMethod()
          Retrieves the method with which this object is associated.
 java.lang.String[] getObjectClasses()
          Retrieves the names of the object classes containing the associated attribute.
 boolean includeInAdd()
          Indicates whether the associated method value should be included in entries generated for add operations.
 boolean includeInModify()
          Indicates whether the associated method value should be considered for inclusion in the set of modifications generated for modify operations.
 boolean includeInRDN()
          Indicates whether the associated method value should be used to generate entry RDNs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMethod

public java.lang.reflect.Method getMethod()
Retrieves the method with which this object is associated.

Returns:
The method with which this object is associated.

getContainingClass

public java.lang.Class<?> getContainingClass()
Retrieves the class that is marked with the LDAPObject annotation and contains the associated field.

Returns:
The class that contains the associated field.

includeInAdd

public boolean includeInAdd()
Indicates whether the associated method value should be included in entries generated for add operations. Note that the value returned from this method may be true even when the annotation has a value of false if the associated field is to be included in entry RDNs.

Returns:
true if the associated method value should be included in entries generated for add operations, or false if not.

includeInModify

public boolean includeInModify()
Indicates whether the associated method value should be considered for inclusion in the set of modifications generated for modify operations. Note that the value returned from this method may be false even when the annotation have a value of true if the associated field is to be included in entry RDNs.

Returns:
true if the associated method value should be considered for inclusion in the set of modifications generated for modify operations, or false if not.

includeInRDN

public boolean includeInRDN()
Indicates whether the associated method value should be used to generate entry RDNs.

Returns:
true if the associated method value should be used to generate entry RDNs, or false if not.

getFilterUsage

public FilterUsage getFilterUsage()
Retrieves the filter usage for the associated method.

Returns:
The filter usage for the associated method.

getEncoder

public ObjectEncoder getEncoder()
Retrieves the encoder that should be used for the associated method.

Returns:
The encoder that should be used for the associated method.

getAttributeName

public java.lang.String getAttributeName()
Retrieves the name of the LDAP attribute used to hold values for the associated method.

Returns:
The name of the LDAP attribute used to hold values for the associated method.

getObjectClasses

public java.lang.String[] getObjectClasses()
Retrieves the names of the object classes containing the associated attribute.

Returns:
The names of the object classes containing the associated attribute.