public class StringAttributeValue extends Object implements IdPAttributeValue<String>
IdPAttribute values that are strings.| Modifier and Type | Field and Description |
|---|---|
private String |
value
The attribute value.
|
| Constructor and Description |
|---|
StringAttributeValue(String attributeValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDisplayValue()
Get a displayable form of the value for user interfaces and similar purposes.
|
String |
getValue()
Get the value of this attribute.
|
int |
hashCode() |
String |
toString() |
static IdPAttributeValue<?> |
valueOf(String value)
Returns an
EmptyAttributeValue or StringAttributeValue as appropriate. |
public StringAttributeValue(@Nonnull@NotEmpty@ParameterName(name="attributeValue") String attributeValue)
attributeValue - the attribute value@Nonnull @NotEmpty public final String getValue()
getValue in interface IdPAttributeValue<String>@Nonnull @NotEmpty public String getDisplayValue()
getDisplayValue in interface IdPAttributeValue<String>@Nonnull public static IdPAttributeValue<?> valueOf(@Nullable String value)
EmptyAttributeValue or StringAttributeValue as appropriate. This method should be
preferred over the constructor when the value may be null or empty.value - to inspectEmptyAttributeValue or StringAttributeValueCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.