|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.BaseAttribute<ValueType>
edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute<ValueType>
ValueType
- value typepublic class BasicAttribute<ValueType>
An attribute implementation that operates on simple value types.
Constructor Summary | |
---|---|
BasicAttribute()
Constructor. |
|
BasicAttribute(String attributeId)
Constructor. |
Method Summary | |
---|---|
BasicAttribute<ValueType> |
clone()
|
List<AttributeEncoder> |
getEncoders()
Gets the list of attribute encoders usable with this attribute. |
String |
getId()
Gets the unique ID of the attribute. |
Comparator<ValueType> |
getValueComparator()
Gets the compartor used to sort values. |
Collection<ValueType> |
getValues()
Gets the values of the attribute. |
void |
setId(String newID)
Set id of this attribute. |
void |
setValueComparator(Comparator<ValueType> newComparator)
Set value comparator for this attribute. |
void |
setValues(Collection<ValueType> newValues)
Replace the current set of values with the given set. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.BaseAttribute |
---|
compareTo, equals, getDisplayDescriptions, getDisplayNames, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicAttribute()
public BasicAttribute(String attributeId)
attributeId
- the ID of this attributeMethod Detail |
---|
public List<AttributeEncoder> getEncoders()
getEncoders
in class BaseAttribute<ValueType>
public String getId()
getId
in class BaseAttribute<ValueType>
public void setId(String newID)
newID
- new IDpublic Comparator<ValueType> getValueComparator()
getValueComparator
in class BaseAttribute<ValueType>
public void setValueComparator(Comparator<ValueType> newComparator)
newComparator
- new value comparatorpublic Collection<ValueType> getValues()
getValues
in class BaseAttribute<ValueType>
public void setValues(Collection<ValueType> newValues)
newValues
- new values to replace existing onespublic BasicAttribute<ValueType> clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |