@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SetterInfo extends java.lang.Object implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
failOnInvalidValue()
Indicates whether attempts to initialize an object should fail if the LDAP
attribute has a value that cannot be represented in the argument type for
the associated method.
|
boolean |
failOnTooManyValues()
Indicates whether attempts to initialize an object should fail if the
LDAP attribute has multiple values but the associated method argument can
only hold a single value.
|
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.
|
java.lang.reflect.Method |
getMethod()
Retrieves the method with which this object is associated.
|
boolean |
supportsMultipleValues()
Indicates whether the associated method takes an argument that can hold
multiple values.
|
@NotNull public java.lang.reflect.Method getMethod()
@NotNull public java.lang.Class<?> getContainingClass()
LDAPObject
annotation
and contains the associated field.public boolean failOnInvalidValue()
true
if an exception should be thrown if an LDAP attribute
has a value that cannot be provided as an argument to the
associated method, or false
if the method should not be
invoked.public boolean failOnTooManyValues()
false
even when the annotation has a value of true
if the associated method takes an argument that supports multiple values.true
if an exception should be thrown if an attribute has
too many values to provide to the associated method, or
false
if the first value returned should be provided as an
argument to the associated method.@NotNull public ObjectEncoder getEncoder()
@NotNull public java.lang.String getAttributeName()
public boolean supportsMultipleValues()
true
if the associated method takes an argument that can
hold multiple values, or false
if not.