|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.attributes.Attributes
public class Attributes
Collections of attributes.
Field Summary | |
---|---|
protected Map<String,Attribute> |
m_attributes
|
Constructor Summary | |
---|---|
Attributes()
|
|
Attributes(Collection<Attribute> attributes)
|
Method Summary | |
---|---|
boolean |
containsAttribute(String key)
Returns true if an attribute with the given key is present. |
boolean |
equals(Object o)
|
Attribute |
getAttribute(String key)
Gets an Attribute for a given key. |
Set<String> |
getAttributeNames()
Gets the attribute names. |
Collection<Attribute> |
getAttributes()
Gets the attributes. |
String |
getStringAttributeValue(String key)
Gets the value of an Attribute with StringAttributeValue. |
int |
hashCode()
|
boolean |
isEmpty()
|
Attributes |
putAttribute(Attribute attribute)
Method puts an attribute in the environment. |
Attributes |
putAttribute(String key,
String value)
Method puts a simple StringAttribute in the environment. |
Attributes |
putAttributes(Collection<Attribute> attributes)
Method puts a collection of attributes in the environment. |
Attributes |
removeAttribute(Attribute attribute)
Method removes the attribute from the environment. |
Attributes |
removeAttribute(String key)
Method removes the attribute with the given key. |
Attributes |
removeAttributes(Collection<Attribute> attributes)
Method removes all attributes in the collection. |
int |
size()
Method gets the size. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Map<String,Attribute> m_attributes
Constructor Detail |
---|
public Attributes()
public Attributes(Collection<Attribute> attributes)
Method Detail |
---|
public Collection<Attribute> getAttributes()
public Set<String> getAttributeNames()
public boolean isEmpty()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Attribute getAttribute(String key)
key
- the key of the attribute.
public String getStringAttributeValue(String key)
key
- the key of the attribute.
public boolean containsAttribute(String key)
key
- a key, asserted to be not null.
public Attributes putAttribute(Attribute attribute)
attribute
- the attribute.
public Attributes putAttribute(String key, String value)
key
- the key.value
- the value.
public Attributes putAttributes(Collection<Attribute> attributes)
attributes
- the attributes.
public Attributes removeAttribute(String key)
key
- the key.
public Attributes removeAttributes(Collection<Attribute> attributes)
attributes
- the attributes.
public Attributes removeAttribute(Attribute attribute)
attribute
- the attribute.
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |