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 TypeMethodDescriptionbooleanGet a displayable form of the value for user interfaces and similar purposes.Get the native representation of the value of this attribute.final StringgetValue()Return the value.inthashCode()toString()static IdPAttributeValueReturns anEmptyAttributeValueorStringAttributeValueas appropriate.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getNativeValuein 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:
getDisplayValuein interfaceIdPAttributeValue- Returns:
- a displayable value
-
equals
-
hashCode
public int hashCode() -
toString
-
valueOf
Returns anEmptyAttributeValueorStringAttributeValueas appropriate. This method should be preferred over the constructor when the value may be null or empty.- Parameters:
value- to inspect- Returns:
EmptyAttributeValueorStringAttributeValue
-