public class CollectiveVirtualAttribute extends AbstractAttribute
Attribute.RemoveOnceSwitchingAttributes
Constructor and Description |
---|
CollectiveVirtualAttribute(Attribute attribute)
Creates a new collective virtual attribute.
|
Modifier and Type | Method and Description |
---|---|
ConditionResult |
approximatelyEqualTo(ByteString assertionValue)
Indicates whether this attribute has any value(s) that are approximately equal to the provided value.
|
boolean |
contains(ByteString value)
Indicates whether this attribute contains the specified value.
|
AttributeDescription |
getAttributeDescription()
Retrieves the attribute description for this attribute.
|
ConditionResult |
greaterThanOrEqualTo(ByteString assertionValue)
Indicates whether this attribute has any value(s) that are greater than or equal to the provided value.
|
int |
hashCode()
Retrieves the hash code for this attribute.
|
boolean |
isVirtual()
Indicates whether this is a virtual attribute (dynamically computed) rather than a real attribute (persisted).
|
Iterator<ByteString> |
iterator()
Returns an iterator over the attribute values in this attribute.
|
ConditionResult |
lessThanOrEqualTo(ByteString assertionValue)
Indicates whether this attribute has any value(s) that are less than or equal to the provided value.
|
ConditionResult |
matchesEqualityAssertion(ByteString assertionValue)
Indicates whether this attribute matches the specified assertion value.
|
ConditionResult |
matchesSubstring(ByteString subInitial,
List<ByteString> subAny,
ByteString subFinal)
Indicates whether this attribute has any value(s) that match the provided substring.
|
int |
size()
Returns the number of attribute values in this attribute.
|
void |
toString(StringBuilder buffer)
Appends a one-line string representation of this attribute to the provided buffer.
|
containsAll, equals, isEmpty, isReal, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public CollectiveVirtualAttribute(Attribute attribute)
attribute
- The attribute this collective virtual attribute is based on.public ConditionResult approximatelyEqualTo(ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have an approximate matching rule,
ConditionResult.TRUE
if at least one value is approximately equal to the provided value, or
ConditionResult.FALSE
otherwise.public boolean contains(ByteString value)
Attribute
value
- The value for which to make the determination.true
if this attribute has the specified value, or false
if not.public ConditionResult matchesEqualityAssertion(ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.true
if this attribute matches the specified assertion value, or false
if not.public AttributeDescription getAttributeDescription()
Attribute
public ConditionResult greaterThanOrEqualTo(ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have an ordering matching rule,
ConditionResult.TRUE
if at least one value is greater than or equal to the provided assertion
value, or ConditionResult.FALSE
otherwise.public boolean isVirtual()
Attribute
true
if this is a virtual attribute.public Iterator<ByteString> iterator()
Attribute
Iterator.remove()
.public ConditionResult lessThanOrEqualTo(ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have an ordering matching rule,
ConditionResult.TRUE
if at least one value is less than or equal to the provided assertion value,
or ConditionResult.FALSE
otherwise.public ConditionResult matchesSubstring(ByteString subInitial, List<ByteString> subAny, ByteString subFinal)
Attribute
subInitial
- The subInitial component to use in the determination.subAny
- The subAny components to use in the determination.subFinal
- The subFinal component to use in the determination.ConditionResult.UNDEFINED
if this attribute does not have a substring matching rule,
ConditionResult.TRUE
if at least one value matches the provided substring, or
ConditionResult.FALSE
otherwise.public int size()
Attribute
public int hashCode()
Attribute
hashCode
in interface Attribute
hashCode
in class AbstractAttribute
public void toString(StringBuilder buffer)
Attribute
buffer
- The buffer to which the information should be appended.Copyright 2010-2020 ForgeRock AS.