Package net.shibboleth.idp.attribute
Class EmptyAttributeValue
java.lang.Object
net.shibboleth.idp.attribute.EmptyAttributeValue
- All Implemented Interfaces:
Comparable<IdPAttributeValue>
,IdPAttributeValue
An
IdPAttributeValue
that is empty. This class defines an enum to represent the various types of empty values
that can occur.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of empty values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyAttributeValue
Instance of null empty attribute value.private final EmptyAttributeValue.EmptyType
Value of the attribute.static final EmptyAttributeValue
Instance of zero length attribute value. -
Constructor Summary
ConstructorsConstructorDescriptionEmptyAttributeValue
(EmptyAttributeValue.EmptyType attributeValue) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.shibboleth.idp.attribute.IdPAttributeValue
compareTo
-
Field Details
-
NULL
Instance of null empty attribute value. -
ZERO_LENGTH
Instance of zero length attribute value. -
value
Value of the attribute.
-
-
Constructor Details
-
EmptyAttributeValue
public EmptyAttributeValue(@Nonnull @ParameterName(name="attributeValue") EmptyAttributeValue.EmptyType attributeValue) Constructor.- Parameters:
attributeValue
- value of the attribute
-
-
Method Details
-
getNativeValue
Get the native representation of the value of this attribute.- Specified by:
getNativeValue
in interfaceIdPAttributeValue
- Returns:
- the attribute value in native format.
-
getValue
Return the value.- Returns:
- the value
-
getDisplayValue
Get a displayable form of the value for user interfaces and similar purposes.- Specified by:
getDisplayValue
in interfaceIdPAttributeValue
- Returns:
- a displayable value
-
equals
-
hashCode
public int hashCode() -
toString
-