Skip navigation links


org.identityconnectors.framework.common.objects
Class AttributeInfo

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.AttributeInfo


public final class AttributeInfo
extends java.lang.Object

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
static class AttributeInfo.Flags
          Enum of modifier flags to use for attributes.

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Set<AttributeInfo.Flags> getFlags()
          Returns the set of flags associated with the attribute.
 java.lang.String getName()
          The native name of the attribute.
 java.lang.String getObjectClassName()
          For attributes that hold an embedded object, returns the name of the object class representing that object.
 java.lang.Class<?> getType()
          The basic type associated with this attribute.
 int hashCode()
           
 boolean is(java.lang.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.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Method Detail

getName

public java.lang.String getName()
The native name of the attribute.
Returns:
the native name of the attribute its describing.

getType

public java.lang.Class<?> getType()
The basic type associated with this attribute. All primitives are supported.
Returns:
the native type if uses.

getObjectClassName

public java.lang.String getObjectClassName()
For attributes that hold an embedded object, returns the name of the object class representing that object.
Returns:
the name of the object class or null.
Since:
1.2

getFlags

public java.util.Set<AttributeInfo.Flags> 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 an Attribute will be returned during SearchApiOp, SyncApiOp or GetApiOp inside a ConnectorObject by default. The default value is true.
Returns:
false iff the attribute should not be returned by default.

is

public boolean is(java.lang.String name)
Determines if the name parameter matches this AttributeInfo.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.