|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.attributes.Attribute
public class Attribute
Key-Value-Attribute. It also implements Serializable, but to be it, its value has also to be serializable.
Field Summary | |
---|---|
protected String |
m_key
Field m_key holds the key or name of the attribute. |
protected AttributeValue |
m_value
Field m_value holds thee value of this attribute. |
Constructor Summary | |
---|---|
Attribute(String key,
AttributeValue value)
Creates an Attribute. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Tests for equality. |
String |
getKey()
|
AttributeValue |
getValue()
|
int |
hashCode()
Generates a hashcode based of the hashcode of the key and value. |
String |
toString()
Generates an informal string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String m_key
protected AttributeValue m_value
org.n52.security.common.attributes.AttributeValue}
Constructor Detail |
---|
public Attribute(String key, AttributeValue value)
AttributeValue.EMPTY_VALUE
.
key
- the key or name of the attributevalue
- the value of the attribute.Method Detail |
---|
public String getKey()
public AttributeValue getValue()
public boolean equals(Object o)
equals
in class Object
o
- the test object.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |