Class Attribute
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.Attribute
-
public class Attribute extends java.lang.ObjectRepresents a named collection of values within a target object, although the simplest case is a name-value pair (e.g., email, employeeID). Values can be empty, null, or set with various types. Empty and null are supported because it makes a difference on some resources (in particular database resources).The developer of a Connector should use an
AttributeBuilderto construct an instance of Attribute.The precise meaning of an instance of
Attributedepends on the context in which it occurs.- When
an object is read or is returned by
search, an
Attributerepresents the complete state of an attribute of the target object, current as of the point in time that the object was read. - When an
Attributeis supplied to the update operation, theAttributerepresents a change to the corresponding attribute of the target object:- For calls to
update, theAttributecontains the complete, intended state of the attribute. - When the update type is
addAttributeValues, theAttributecontains values to append. - When the update type is
removeAttributeValues, theAttributecontains values to remove.
- For calls to
- When an
Attributeis used to build aFilterthat is an argument to search, anAttributerepresents a subset of the current state of an attribute that will be used as a search criterion. Specifically, theAttributenames the attribute to match and contains the values to match.
- Since:
- 1.0
- When
an object is read or is returned by
search, an
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()java.util.List<java.lang.Object>getValue()inthashCode()booleanis(java.lang.String name)Determines if the 'name' matches thisAttribute.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getValue
public java.util.List<java.lang.Object> getValue()
-
is
public boolean is(java.lang.String name)
Determines if the 'name' matches thisAttribute.- Parameters:
name- case insensitive string representation of the attribute's name.- Returns:
trueif the case insentitive name is equal to that of the one inAttribute.
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-