|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.EntityWithAttributes
public abstract class EntityWithAttributes
Base class for any entity that can have attributes.
Constructor Summary | |
---|---|
EntityWithAttributes(Map<String,Set<String>> attributes)
|
Method Summary | |
---|---|
Set<String> |
getKeys()
Gets all the keys of the attributes. |
String |
getValue(String name)
Returns any value associated with the given key, returns null if there is no value. |
Set<String> |
getValues(String name)
Get all the values associated with a given key. |
boolean |
isEmpty()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityWithAttributes(Map<String,Set<String>> attributes)
Method Detail |
---|
public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values for
public String getValue(String name)
Attributes
null
if there is no value.
getValue
in interface Attributes
name
- the key to retrieve the value for
null
if there is no valuepublic boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |