Package com.unboundid.ldap.sdk.persist
Class GetterInfo
java.lang.Object
com.unboundid.ldap.sdk.persist.GetterInfo
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class GetterInfo
extends Object
implements Serializable
This class provides a data structure that holds information about an
annotated getter method.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the LDAP attribute used to hold values for the associated method.Class<?> Retrieves the class that is marked with theLDAPObjectannotation and contains the associated field.Retrieves the encoder that should be used for the associated method.Retrieves the filter usage for the associated method.Retrieves the method with which this object is associated.String[]Retrieves the names of the object classes containing the associated attribute.booleanIndicates whether the associated method value should be included in entries generated for add operations.booleanIndicates whether the associated method value should be considered for inclusion in the set of modifications generated for modify operations.booleanIndicates whether the associated method value should be used to generate entry RDNs.
-
Method Details
-
getMethod
Retrieves the method with which this object is associated.- Returns:
- The method with which this object is associated.
-
getContainingClass
Retrieves the class that is marked with theLDAPObjectannotation and contains the associated field.- Returns:
- The class that contains the associated field.
-
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 betrueeven when the annotation has a value offalseif the associated field is to be included in entry RDNs.- Returns:
trueif the associated method value should be included in entries generated for add operations, orfalseif not.
-
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 befalseeven when the annotation have a value oftrueif the associated field is to be included in entry RDNs.- Returns:
trueif the associated method value should be considered for inclusion in the set of modifications generated for modify operations, orfalseif not.
-
includeInRDN
Indicates whether the associated method value should be used to generate entry RDNs.- Returns:
trueif the associated method value should be used to generate entry RDNs, orfalseif not.
-
getFilterUsage
Retrieves the filter usage for the associated method.- Returns:
- The filter usage for the associated method.
-
getEncoder
Retrieves the encoder that should be used for the associated method.- Returns:
- The encoder that should be used for the associated method.
-
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
Retrieves the names of the object classes containing the associated attribute.- Returns:
- The names of the object classes containing the associated attribute.
-