|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.common.xmlprocessor.model.Attributes
public class Attributes
The attributes of an Node.
Attributes are treated as a map: there can be only one value associated with an attribute key. Attribute key and value comparisons are done case insensitively, and keys are normalised to lower-case.
| Constructor Summary | |
|---|---|
Attributes()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears all attributes |
String |
get(String key)
Gets an attribute value by key. |
Iterator<String> |
getKeyIterator()
Gets the KeySet iterator of attributes |
boolean |
hasKey(String key)
Checks if these attributes contain an attribute with this key. |
void |
put(String key,
String value)
Sets a new attribute, or replace an existing one by key. |
void |
remove(String key)
Removes an attribute by key. |
int |
size()
Get the number of attributes in this set. |
String |
toString()
Converts to string xml presentation of this attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attributes()
| Method Detail |
|---|
public String get(String key)
key - the attribute key
hasKey(String)
public void put(String key,
String value)
key - attribute keyvalue - attribute valuepublic void remove(String key)
key - attribute key to removepublic boolean hasKey(String key)
key - key to be checked
public int size()
public Iterator<String> getKeyIterator()
public void clear()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||