Package net.shibboleth.idp.attribute
Class ScopedStringAttributeValue
java.lang.Object
net.shibboleth.idp.attribute.StringAttributeValue
net.shibboleth.idp.attribute.ScopedStringAttributeValue
- All Implemented Interfaces:
Comparable<IdPAttributeValue>
,IdPAttributeValue
An attribute value with an associated scope.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScopedStringAttributeValue
(String attributeValue, String valueScope) Constructor. -
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
getScope()
Get the scope of the value.int
hashCode()
toString()
static IdPAttributeValue
Returns anEmptyAttributeValue
orScopedStringAttributeValue
as appropriate.Methods inherited from class net.shibboleth.idp.attribute.StringAttributeValue
getValue, valueOf
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
-
scope
Scope of the attribute value.
-
-
Constructor Details
-
ScopedStringAttributeValue
public ScopedStringAttributeValue(@Nonnull @NotEmpty @ParameterName(name="attributeValue") String attributeValue, @Nonnull @NotEmpty @ParameterName(name="valueScope") String valueScope) Constructor.- Parameters:
attributeValue
- the value of the attributevalueScope
- scope of the value
-
-
Method Details
-
getNativeValue
Get the native representation of the value of this attribute.- Specified by:
getNativeValue
in interfaceIdPAttributeValue
- Overrides:
getNativeValue
in classStringAttributeValue
- Returns:
- the attribute value in native format.
-
getScope
Get the scope of the value.- Returns:
- scope of the value
-
getDisplayValue
Get a displayable form of the value for user interfaces and similar purposes.- Specified by:
getDisplayValue
in interfaceIdPAttributeValue
- Overrides:
getDisplayValue
in classStringAttributeValue
- Returns:
- a displayable value
-
equals
- Overrides:
equals
in classStringAttributeValue
-
hashCode
public int hashCode()- Overrides:
hashCode
in classStringAttributeValue
-
toString
- Overrides:
toString
in classStringAttributeValue
-
valueOf
Returns anEmptyAttributeValue
orScopedStringAttributeValue
as appropriate. This method should be preferred over the constructor when the value may be null or empty.- Parameters:
value
- to inspectscope
- of the value- Returns:
EmptyAttributeValue
orScopedStringAttributeValue
-