public final class AttributeDescriptor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeDescriptor.DataType
Defines the set of well known SCIM supported datatypes.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributeValueResolver<AttributeDescriptor> |
ATTRIBUTE_DESCRIPTOR_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from AttributeDescriptor instances. |
| Modifier and Type | Method and Description |
|---|---|
static AttributeDescriptor |
createAttribute(String name,
AttributeDescriptor.DataType dataType,
String description,
String schema,
boolean readOnly,
boolean required,
boolean caseExact,
AttributeDescriptor... subAttributes)
Create a new singular attribute descriptor with the provided information.
|
static AttributeDescriptor |
createMultiValuedAttribute(String name,
String multiValuedChildName,
String description,
String schema,
boolean readOnly,
boolean required,
boolean caseExact,
AttributeDescriptor... subAttributes)
Create a new multi-valued attribute descriptor with the provided
information.
|
static AttributeDescriptor |
createSubAttribute(String name,
AttributeDescriptor.DataType dataType,
String description,
String schema,
boolean readOnly,
boolean required,
boolean caseExact,
String... canonicalValues)
Create a new sub-attribute descriptor with the provided information.
|
boolean |
equals(Object obj) |
Collection<Entry<String>> |
getCanonicalValues()
Retrieves a list of canonical type values.
|
AttributeDescriptor.DataType |
getDataType()
Retrieve the data type for this attribute.
|
Collection<AttributeDescriptor> |
getDeclaredSubAttributes()
Retrieves the set of descriptors for subordinate attributes of a
complex attribute.
|
String |
getDescription()
Retrieves this attribute's human readable description.
|
String |
getMultiValuedChildName()
The child XML element name for multi-valued attributes; e.g., the
'emails' attribute value is 'email', 'phoneNumbers', is 'phoneNumber'.
|
String |
getName()
The attribute name to be used in any external representation of the SCIM
attribute.
|
String |
getSchema()
The URI for the schema that defines the SCIM attribute.
|
AttributeDescriptor |
getSubAttribute(String externalName)
Retrieves the attribute descriptor for a specified subordinate attribute
of a complex attribute.
|
Collection<AttributeDescriptor> |
getSubAttributes()
Retrieves the set of descriptors for subordinate attributes of a complex
attribute.
|
int |
hashCode() |
boolean |
isCaseExact()
Specifies if the string attribute is case sensitive.
|
boolean |
isMultiValued()
Indicates whether the attribute is a multi-valued attribute.
|
boolean |
isReadOnly()
Specifies if this attribute is mutable.
|
boolean |
isRequired()
Specifies if this attribute is required.
|
String |
toString() |
public static final AttributeValueResolver<AttributeDescriptor> ATTRIBUTE_DESCRIPTOR_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from AttributeDescriptor instances.public String getSchema()
null.public String getName()
null.public boolean isMultiValued()
true if the attribute is multi-valued.public String getMultiValuedChildName()
null if this attribute
is not multi-valued.public Collection<AttributeDescriptor> getSubAttributes()
null if the attribute is not a complex
attribute.public Collection<AttributeDescriptor> getDeclaredSubAttributes()
null if the attribute is not a complex
attribute.public AttributeDescriptor getSubAttribute(String externalName) throws InvalidResourceException
externalName - The external name of the subordinate attribute for
which a descriptor is required.InvalidResourceException - if there is no such attribute.public Collection<Entry<String>> getCanonicalValues()
null if the
attribute is not a multi-valued attribute or if they are not
specified.public AttributeDescriptor.DataType getDataType()
null if the attribute
is not a simple attribute.public String getDescription()
public boolean isReadOnly()
false if this attribute is mutable or
true otherwise.public boolean isRequired()
true if this attribute is required for
false otherwise.public boolean isCaseExact()
true if this attribute is case sensitive or
false otherwise.public static AttributeDescriptor createSubAttribute(String name, AttributeDescriptor.DataType dataType, String description, String schema, boolean readOnly, boolean required, boolean caseExact, String... canonicalValues)
name - The attribute's name.dataType - The attribute's data type.description - The attribute's human readable description.schema - The attribute's associated schema.readOnly - Whether the attribute is mutable.required - Whether the attribute is required.caseExact - Whether the string attribute is case sensitive.canonicalValues - A collection of canonical values.public static AttributeDescriptor createAttribute(String name, AttributeDescriptor.DataType dataType, String description, String schema, boolean readOnly, boolean required, boolean caseExact, AttributeDescriptor... subAttributes)
name - The attribute's name.dataType - The attribute's data type.description - The attribute's human readable description.schema - The attribute's associated schema.readOnly - Whether the attribute is mutable.required - Whether the attribute is required.caseExact - Whether the string attribute is case sensitive.subAttributes - A list specifying the contained attributes.public static AttributeDescriptor createMultiValuedAttribute(String name, String multiValuedChildName, String description, String schema, boolean readOnly, boolean required, boolean caseExact, AttributeDescriptor... subAttributes)
name - The attribute's name.multiValuedChildName - The child XML element name for multi-valued
attributes.description - The attribute's human readable description.schema - The attribute's associated schema.readOnly - Whether the attribute is mutable.required - Whether the attribute is required.caseExact - Whether the string attribute is case sensitive.subAttributes - A list specifying the contained attributes.Copyright © 2011–2016 UnboundID. All rights reserved.