Package net.shibboleth.idp.attribute
Class EmptyAttributeValue
- java.lang.Object
-
- net.shibboleth.idp.attribute.EmptyAttributeValue
-
- All Implemented Interfaces:
Comparable<IdPAttributeValue>,IdPAttributeValue
public final class EmptyAttributeValue extends Object implements IdPAttributeValue
AnIdPAttributeValuethat is empty. This class defines an enum to represent the various types of empty values that can occur.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmptyAttributeValue.EmptyTypeTypes of empty values.
-
Field Summary
Fields Modifier and Type Field Description static EmptyAttributeValueNULLInstance of null empty attribute value.private EmptyAttributeValue.EmptyTypevalueValue of the attribute.static EmptyAttributeValueZERO_LENGTHInstance of zero length attribute value.
-
Constructor Summary
Constructors Constructor Description EmptyAttributeValue(EmptyAttributeValue.EmptyType attributeValue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDisplayValue()Get a displayable form of the value for user interfaces and similar purposes.ObjectgetNativeValue()Get the native representation of the value of this attribute.EmptyAttributeValue.EmptyTypegetValue()Return the value.inthashCode()StringtoString()-
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 Detail
-
NULL
public static final EmptyAttributeValue NULL
Instance of null empty attribute value.
-
ZERO_LENGTH
public static final EmptyAttributeValue ZERO_LENGTH
Instance of zero length attribute value.
-
value
@Nonnull @NotEmpty private final EmptyAttributeValue.EmptyType value
Value of the attribute.
-
-
Constructor Detail
-
EmptyAttributeValue
public EmptyAttributeValue(@Nonnull @ParameterName(name="attributeValue") EmptyAttributeValue.EmptyType attributeValue)
Constructor.- Parameters:
attributeValue- value of the attribute
-
-
Method Detail
-
getNativeValue
public Object getNativeValue()
Get the native representation of the value of this attribute.- Specified by:
getNativeValuein interfaceIdPAttributeValue- Returns:
- the attribute value in native format.
-
getValue
public EmptyAttributeValue.EmptyType getValue()
Return the value.- Returns:
- the value
-
getDisplayValue
@Nonnull @NotEmpty public String getDisplayValue()
Get a displayable form of the value for user interfaces and similar purposes.- Specified by:
getDisplayValuein interfaceIdPAttributeValue- Returns:
- a displayable value
-
-