Class Attribute
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.Attribute
-
public class Attribute extends Object
Represents 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
AttributeBuilder
to construct an instance of Attribute.The precise meaning of an instance of
Attribute
depends on the context in which it occurs.- When
an object is read or is returned by
search, an
Attribute
represents the complete state of an attribute of the target object, current as of the point in time that the object was read. - When an
Attribute
is supplied to the update operation, theAttribute
represents a change to the corresponding attribute of the target object:- For calls to
update
, theAttribute
contains the complete, intended state of the attribute. - When the update type is
addAttributeValues
, theAttribute
contains values to append. - When the update type is
removeAttributeValues
, theAttribute
contains values to remove.
- For calls to
- When an
Attribute
is used to build aFilter
that is an argument to search, anAttribute
represents a subset of the current state of an attribute that will be used as a search criterion. Specifically, theAttribute
names the attribute to match and contains the values to match.
- Since:
- 1.0
- Author:
- Will Droste
- When
an object is read or is returned by
search, an
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
attributeEquals(Object obj)
Business-level equals that checks name, value and completeness.boolean
equals(Object obj)
protected void
extendToStringMap(Map<String,Object> map)
AttributeValueCompleteness
getAttributeValueCompleteness()
String
getName()
List<Object>
getValue()
int
hashCode()
boolean
is(String name)
Determines if the 'name' matches thisAttribute
.String
toString()
-
-
-
Method Detail
-
getName
public String getName()
-
getAttributeValueCompleteness
public AttributeValueCompleteness getAttributeValueCompleteness()
-
is
public boolean is(String name)
Determines if the 'name' matches thisAttribute
.- Parameters:
name
- case insensitive string representation of the attribute's name.- Returns:
true
if the case insentitive name is equal to that of the one inAttribute
.
-
attributeEquals
public final boolean attributeEquals(Object obj)
Business-level equals that checks name, value and completeness. ForAttribute
it is the same asequals(Object)
, but may ignore fields in subclasses.
-
-