Class AttributeInfo
java.lang.Object
org.identityconnectors.framework.common.objects.AttributeInfo
AttributeInfo is meta data responsible for describing an
Attribute
. It can be programmatically determined at runtime or
statically constructed. The class determines if an Attribute
is
required, readable, writable, or nullable. In also includes the native type
and name. It is recommended that date fields be represented as a long with
time zone UTC. It should be up to the display or separate attributes if the
time zone is necessary.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum of modifier flags to use for attributes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFlags()
Returns the set of flags associated with the attribute.getName()
The native name of the attribute.Class<?>
getType()
The basic type associated with this attribute.int
hashCode()
boolean
Determines if the name parameter matches thisAttributeInfo
.boolean
Determines if the attribute is writable on create.boolean
Determines if this attribute can handle multiple values.boolean
Determines if the attribute is readable.boolean
Determines whether this attribute is required for creates.boolean
Determines if the attribute is returned by default.boolean
Determines if the attribute is writable on update.toString()
-
Method Details
-
getName
The native name of the attribute.- Returns:
- the native name of the attribute its describing.
-
getType
The basic type associated with this attribute. All primitives are supported.- Returns:
- the native type if uses.
-
getFlags
Returns the set of flags associated with the attribute.- Returns:
- the set of flags associated with the attribute
-
isReadable
public boolean isReadable()Determines if the attribute is readable.- Returns:
- true if the attribute is readable else false.
-
isCreateable
public boolean isCreateable()Determines if the attribute is writable on create.- Returns:
- true if the attribute is writable on create else false.
-
isUpdateable
public boolean isUpdateable()Determines if the attribute is writable on update.- Returns:
- true if the attribute is writable on update else false.
-
isRequired
public boolean isRequired()Determines whether this attribute is required for creates.- Returns:
- true if the attribute is required for an object else false.
-
isMultiValued
public boolean isMultiValued()Determines if this attribute can handle multiple values. There is a special case with byte[] since in most instances this denotes a single object.- Returns:
- true if the attribute is multi-value otherwise false.
-
isReturnedByDefault
public boolean isReturnedByDefault()Determines if the attribute is returned by default. Indicates if anAttribute
will be returned duringSearchApiOp
,SyncApiOp
orGetApiOp
inside aConnectorObject
by default. The default value istrue
.- Returns:
- false if the attribute should not be returned by default.
-
is
Determines if the name parameter matches thisAttributeInfo
. -
equals
-
hashCode
public int hashCode() -
toString
-