public final class AttributeInfo extends Object
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.Modifier and Type | Class and Description |
---|---|
static class |
AttributeInfo.Flags
Enum of modifier flags to use for attributes.
|
static class |
AttributeInfo.Subtypes
Enumeration of pre-defined attribute subtypes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<AttributeInfo.Flags> |
getFlags()
Returns the set of flags associated with the attribute.
|
String |
getName()
The name of the attribute.
|
String |
getNativeName()
The native name of the attribute.
|
String |
getSubtype()
Optional subtype of the attribute.
|
Class<?> |
getType()
The basic type associated with this attribute.
|
int |
hashCode() |
boolean |
is(String name)
Determines if the name parameter matches this
AttributeInfo . |
boolean |
isCreateable()
Determines if the attribute is writable on create.
|
boolean |
isMultiValued()
Determines if this attribute can handle multiple values.
|
boolean |
isReadable()
Determines if the attribute is readable.
|
boolean |
isRequired()
Determines whether this attribute is required for creates.
|
boolean |
isReturnedByDefault()
Determines if the attribute is returned by default.
|
boolean |
isUpdateable()
Determines if the attribute is writable on update.
|
String |
toString() |
public String getName()
public Class<?> getType()
public String getSubtype()
public String getNativeName()
public Set<AttributeInfo.Flags> getFlags()
public boolean isReadable()
public boolean isCreateable()
public boolean isUpdateable()
public boolean isRequired()
public boolean isMultiValued()
public boolean isReturnedByDefault()
Attribute
will be returned during
SearchApiOp
, SyncApiOp
or GetApiOp
inside a
ConnectorObject
by default. The default value is
true
.public boolean is(String name)
AttributeInfo
.Copyright © 2022. All rights reserved.