Package net.shibboleth.idp.attribute
Interface IdPAttributeValue
- All Superinterfaces:
Comparable<IdPAttributeValue>
- All Known Implementing Classes:
ByteAttributeValue
,DateTimeAttributeValue
,EmptyAttributeValue
,ScopedStringAttributeValue
,StringAttributeValue
,XMLObjectAttributeValue
Interface for values of an
IdPAttribute
. This interface provides an explicit method for getting the value of
an attribute as opposed to any other data that may be associated with the value, as well as a displayable value.
Implementations of this interface MUST implement an appropriate Object.equals(Object)
and
Object.hashCode()
method. They should also implement Object.toString()
such that useful
representations may be written out in log messages.
Implementations are expected to implement a natively typed getValue() method. This will usually be like the
getNativeValue()
the outlier being the ScopedStringAttributeValue
which for legacy reasons returns
only the head part of the value for getValue().
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
compareTo
(IdPAttributeValue value) Get a displayable form of the value for user interfaces and similar purposes.Get the native representation of the value of this attribute.
-
Method Details
-
getNativeValue
Get the native representation of the value of this attribute.- Returns:
- the attribute value in native format.
-
getDisplayValue
Get a displayable form of the value for user interfaces and similar purposes.- Returns:
- a displayable value
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IdPAttributeValue>
-