@Immutable @ThreadSafe public final class AttributeDefinition<T> extends Object implements Comparable<AttributeDefinition<?>>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AttributeDefinition.Builder<T>
Builder pattern for the
AttributeDefinition class. |
Modifier and Type | Method and Description |
---|---|
static <T> AttributeDefinition.Builder<T> |
builder() |
static <T> AttributeDefinition.Builder<T> |
builder(AttributeDefinition.Builder<T> copy) |
static <T> AttributeDefinition.Builder<T> |
builder(AttributeDefinition<T> copy) |
int |
compareTo(AttributeDefinition<?> o) |
boolean |
equals(Object o) |
AttributeValueMarshaller<T> |
getAttributeValueMarshaller() |
String |
getFriendlyName()
Returns the friendly name of the personal attribute.
|
URI |
getNameUri()
Returns the complete name of the personal attribute.
|
Class<T> |
getParameterizedType()
Returns the class of the parameterized type
T of this AttributeDefinition. |
PersonType |
getPersonType()
Returns the personType of person this attribute is used with.
|
QName |
getXmlType()
Returns the XML qualified name to designate this attribute.
|
int |
hashCode() |
boolean |
isRequired()
Returns
true if the personal attribute is required, false otherwise. |
boolean |
isTransliterationMandatory()
Returns
true if the personal attribute must be transliterated, false otherwise. |
boolean |
isUniqueIdentifier()
Returns
true if the personal attribute is a unique identifier (uid), false otherwise. |
String |
marshal(AttributeValue<T> value) |
String |
toString() |
AttributeValue<T> |
unmarshal(String value,
boolean isNonLatinScriptAlternateVersion) |
@Nonnull public static <T> AttributeDefinition.Builder<T> builder()
@Nonnull public static <T> AttributeDefinition.Builder<T> builder(@Nonnull AttributeDefinition.Builder<T> copy)
@Nonnull public static <T> AttributeDefinition.Builder<T> builder(@Nonnull AttributeDefinition<T> copy)
@Nonnull public AttributeValueMarshaller<T> getAttributeValueMarshaller()
@Nonnull public String getFriendlyName()
@Nonnull public URI getNameUri()
@Nonnull public Class<T> getParameterizedType()
T
of this AttributeDefinition.T
of this AttributeDefinition.@Nonnull public PersonType getPersonType()
@Nonnull public QName getXmlType()
Returns the XML qualified name to designate this attribute. The qualified name must have a non-null namespace URI, a non-null local part and a non-null namespace prefix.
public boolean isRequired()
true
if the personal attribute is required, false
otherwise.true
if the personal attribute is required, false
otherwise.public boolean isTransliterationMandatory()
true
if the personal attribute must be transliterated, false
otherwise.true
if the personal attribute must be transliterated, false
otherwise.public boolean isUniqueIdentifier()
true
if the personal attribute is a unique identifier (uid), false
otherwise.true
if the personal attribute is a unique identifier (uid), false
otherwise.@Nonnull public String marshal(@Nonnull AttributeValue<T> value) throws AttributeValueMarshallingException
@Nonnull public AttributeValue<T> unmarshal(@Nonnull String value, boolean isNonLatinScriptAlternateVersion) throws AttributeValueMarshallingException
public int compareTo(@Nonnull AttributeDefinition<?> o)
compareTo
in interface Comparable<AttributeDefinition<?>>
Copyright © 2020. All Rights Reserved.