public class Attributes extends Object
| Constructor and Description |
|---|
Attributes() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String get(String key)
key - the attribute keyhasKey(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 checkedpublic int size()
public Iterator<String> getKeyIterator()
public void clear()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.