|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceid.saml20.adapter.attribute.AttributeValue
public class AttributeValue
A representation the value(s) of an attribute. This class is intended to allow for multi-valued attributes yet still enable simple usage of single valued attributes.
Constructor Summary | |
---|---|
AttributeValue(java.util.Collection<java.lang.String> values)
|
|
AttributeValue(java.lang.String value)
|
Method Summary | |
---|---|
java.lang.Iterable<? extends java.lang.Object> |
getAllObjectValues()
Gets all the values for this attribute as raw objects. |
java.lang.Object |
getObjectValue()
Gets the value of this attribute as a raw object. |
java.lang.String |
getValue()
Gets the value of this attribute. |
java.lang.String |
getValue(java.lang.String nullMask)
Gets the value of this attribute. |
java.lang.String |
getValueMaskNull()
Gets the value of this attribute. |
java.lang.Iterable<java.lang.String> |
getValues()
Gets all the values for this attribute. |
boolean |
hasValue(java.lang.String value)
Determines if this attribute value has the indicated value. |
boolean |
isMasked()
Has this attribute value been flagged as masked? |
boolean |
isMultiValue()
Determines if this is a multi-valued attribute. |
java.lang.String |
sensitiveToString()
If this is considered a 'masked' attribute (because it contains sensitive user info), the actual value of the attribute will be concealed with this method only. |
java.lang.String |
toString()
If this is a single value attribute, this method returns that value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeValue(java.util.Collection<java.lang.String> values)
public AttributeValue(java.lang.String value)
Method Detail |
---|
public boolean isMultiValue()
getValues()
would return
an Iterable having more than one item.
public java.lang.String getValue()
public java.lang.String getValue(java.lang.String nullMask)
nullMask
-
public java.lang.String getValueMaskNull()
public java.lang.Iterable<java.lang.String> getValues()
public boolean hasValue(java.lang.String value)
value
- the value of interest.
public java.lang.Iterable<? extends java.lang.Object> getAllObjectValues()
public java.lang.Object getObjectValue()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String sensitiveToString()
public boolean isMasked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |