@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public abstract class AbstractAttribute extends Object implements Attribute
Attribute.Attribute.RemoveOnceSwitchingAttributes| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAttribute()
Creates a new abstract attribute.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAll(Collection<?> values)
Indicates whether this attribute contains all the values in the
collection.
|
boolean |
equals(Object o)
Indicates whether the provided object is an attribute that is
equal to this attribute.
|
String |
getName()
Retrieves the user-provided name for this attribute.
|
String |
getNameWithOptions()
Retrieves the user-provided name of this attribute, along with
any options that might have been provided.
|
int |
hashCode()
Retrieves the hash code for this attribute.
|
boolean |
hasOption(String option)
Indicates whether this attribute has the specified option.
|
boolean |
hasOptions()
Indicates whether this attribute has any options at all.
|
boolean |
isEmpty()
Returns
true if this attribute contains no
attribute values. |
boolean |
isReal()
Indicates whether this is a real attribute (persisted) rather than a virtual attribute
(dynamically computed).
|
String |
toString()
Retrieves a one-line string representation of this attribute.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitapproximatelyEqualTo, contains, getAttributeDescription, greaterThanOrEqualTo, isVirtual, iterator, lessThanOrEqualTo, matchesEqualityAssertion, matchesSubstring, size, toStringprotected AbstractAttribute()
public boolean containsAll(Collection<?> values)
AttributecontainsAll in interface Attributevalues - The set of values for which to make the determination.true if this attribute contains all the
values in the provided collection, or false
if it does not contain at least one of them.public final boolean equals(Object o)
Attributepublic String getName()
This implementation returns the primary name associated with this attribute's attribute type or, if there is no primary name, the attribute type's OID.
public String getNameWithOptions()
This implementation returns this attribute's name if there are no attribute options, otherwise it constructs a string comprising of this attribute's name followed by a semi-colon and a semi-colon separated list of its attribute options.
getNameWithOptions in interface Attributepublic int hashCode()
Attributepublic boolean hasOption(String option)
Attributepublic boolean hasOptions()
This implementation retrieves the set of options associated with this attribute and tests to see if it is empty.
hasOptions in interface Attributetrue if this attribute has at least one
option, or false if not.public boolean isEmpty()
true if this attribute contains no
attribute values.
This implementation returns true if the
Attribute.size() of this attribute is zero.
public boolean isReal()
AttributeCopyright © 2010-2018 ForgeRock AS. All Rights Reserved.