Package net.shibboleth.idp.attribute
Class StringAttributeValue
java.lang.Object
net.shibboleth.idp.attribute.StringAttributeValue
- All Implemented Interfaces:
Comparable<IdPAttributeValue>
,IdPAttributeValue
- Direct Known Subclasses:
ScopedStringAttributeValue
Base class for
IdPAttribute
values that are strings.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get a displayable form of the value for user interfaces and similar purposes.Get the native representation of the value of this attribute.final String
getValue()
Return the value.int
hashCode()
toString()
static IdPAttributeValue
Returns anEmptyAttributeValue
orStringAttributeValue
as appropriate.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
-
value
The attribute value.
-
-
Constructor Details
-
StringAttributeValue
public StringAttributeValue(@Nonnull @NotEmpty @ParameterName(name="attributeValue") String attributeValue) Constructor.- Parameters:
attributeValue
- the attribute value
-
-
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
-
valueOf
Returns anEmptyAttributeValue
orStringAttributeValue
as appropriate. This method should be preferred over the constructor when the value may be null or empty.- Parameters:
value
- to inspect- Returns:
EmptyAttributeValue
orStringAttributeValue
-