|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.attributes.AttributeSet
public class AttributeSet
This class implements a container for AttributeValues. AttributeSet also manages the attribute name mappings with the help of AttributeNameMapper implementations.
| Field Summary | |
|---|---|
private AttributeNameMapper |
attributeNameMapper
AttributeNameMapper which is used to manage attribute name mappings. |
private java.util.Map<java.lang.String,AttributeValues> |
attributes
Map for storing Attributes. |
private static java.lang.String |
DEFAULT_ATTRIBUTENAMESPACE
Default attributeNameSpace. |
private org.apache.log4j.Logger |
log
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AttributeSet()
Creates an empty set. |
|
AttributeSet(AttributeNameMapper mapper)
Creates an empty set with the specified AttributeNameMapper. |
|
AttributeSet(java.util.List<AttributeValues> attributeList)
Creates a set from a list of AttributeValues. |
|
AttributeSet(java.util.List<AttributeValues> attributeList,
AttributeNameMapper mapper)
Creates a set from a list of AttributeValues. |
|
| Method Summary | |
|---|---|
boolean |
add(AttributeValues newAttribute)
Add a new attribute to the set. |
protected java.lang.Object |
clone()
|
boolean |
contains(java.lang.String id)
Determines if the set contains an AttriubuteValue with a given ID. |
void |
debugOutput()
|
void |
filterOut(java.lang.String id,
java.util.List<java.lang.String> values)
Filters out Attribute Values from this set. |
AttributeValues |
get(java.lang.String id)
Return an attribute from the set. |
AttributeNameMapper |
getAttributeNameMapper()
|
java.util.Set<java.lang.String> |
getAttributeNames()
Get all attribute IDs. |
java.util.List<AttributeValues> |
getAttributeValues()
Get all AttributeValues. |
AttributeValues |
remove(java.lang.String id)
Remove an attribute from the set. |
void |
setAttributeNameMapper(AttributeNameMapper attributeNameMapper)
|
int |
size()
Returns the size of the set. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String DEFAULT_ATTRIBUTENAMESPACE
private java.util.Map<java.lang.String,AttributeValues> attributes
private AttributeNameMapper attributeNameMapper
private static final long serialVersionUID
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public AttributeSet()
public AttributeSet(AttributeNameMapper mapper)
mapper - public AttributeSet(java.util.List<AttributeValues> attributeList)
attributeList -
public AttributeSet(java.util.List<AttributeValues> attributeList,
AttributeNameMapper mapper)
attributeList - list of AttributeValuesmapper - specific AttributeNameMapper implementation to use| Method Detail |
|---|
public boolean add(AttributeValues newAttribute)
newAttribute - attributeValue to add.
public AttributeValues remove(java.lang.String id)
id - ID of the attribute to be removed
public AttributeValues get(java.lang.String id)
id - ID of the attribute
public boolean contains(java.lang.String id)
id - Attribute ID
public int size()
public java.util.Set<java.lang.String> getAttributeNames()
public java.util.List<AttributeValues> getAttributeValues()
public void filterOut(java.lang.String id,
java.util.List<java.lang.String> values)
id - String identifier of the attributevalues - Listpublic AttributeNameMapper getAttributeNameMapper()
public void setAttributeNameMapper(AttributeNameMapper attributeNameMapper)
protected java.lang.Object clone()
clone in class java.lang.Objectpublic void debugOutput()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||