|
||||||||||
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
Class Attributes are collections of attributes.
Field Summary | |
---|---|
protected java.util.Map |
m_attributes
Stores attributes. |
Constructor Summary | |
---|---|
Attributes()
Constructor creates a new instance. |
|
Attributes(java.util.Collection attributes)
Constructor creates a new instance. |
Method Summary | |
---|---|
boolean |
containsAttribute(java.lang.String key)
Returns true if an attribute with the given key is present. |
boolean |
equals(java.lang.Object o)
Method equals. |
Attribute |
getAttribute(java.lang.String key)
Gets an Attribute for a given key. |
java.util.Set |
getAttributeNames()
Gets the attribute names. |
java.util.Collection |
getAttributes()
Gets the attributes. |
java.lang.String |
getStringAttributeValue(java.lang.String key)
Gets the value of an Attribute with StringAttributeValue. |
int |
hashCode()
Method hashCode. |
boolean |
isEmpty()
Method says if environment is empty. |
Attributes |
putAttribute(Attribute attribute)
Method puts an attribute in the environment. |
Attributes |
putAttribute(java.lang.String key,
java.lang.String value)
Method puts a simple StringAttribute in the environment. |
Attributes |
putAttributes(java.util.Collection attributes)
Method puts a collection of attributes in the environment. |
Attributes |
removeAttribute(Attribute attribute)
Method removes the attribute from the environment. |
Attributes |
removeAttribute(java.lang.String key)
Method removes the attribute with the given key. |
Attributes |
removeAttributes(java.util.Collection attributes)
Method removes all attributes in the collection. |
int |
size()
Method gets the size. |
java.lang.String |
toString()
Method toString. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map m_attributes
Constructor Detail |
---|
public Attributes()
public Attributes(java.util.Collection attributes)
attributes
- the attributes.Method Detail |
---|
public java.util.Collection getAttributes()
public java.util.Set getAttributeNames()
public boolean isEmpty()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Attribute getAttribute(java.lang.String key)
key
- the key of the attribute.
public java.lang.String getStringAttributeValue(java.lang.String key)
key
- the key of the attribute.
public boolean containsAttribute(java.lang.String key)
key
- a key, asserted to be not null.
public Attributes putAttribute(Attribute attribute)
attribute
- the attribute.
public Attributes putAttribute(java.lang.String key, java.lang.String value)
key
- the key.value
- the value.
public Attributes putAttributes(java.util.Collection attributes)
attributes
- the attributes.
public Attributes removeAttribute(java.lang.String key)
key
- the key.
public Attributes removeAttributes(java.util.Collection 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 |