|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jolene.html.Attributes
public class Attributes
Map wrapper to handle html attributes. It's a case insensitive sorted map.
Constructor Summary | |
---|---|
Attributes()
|
Method Summary | |
---|---|
void |
clear()
Clears the attributes. |
java.lang.String |
getAttribute(java.lang.String key)
Gets an attribute from the attribute map or NULL if not found. |
boolean |
hasAttribute(java.lang.String key)
Indicates whether or not an attribute exists. |
java.util.Set<java.lang.String> |
keySet()
Returns the attributes as a Set. |
java.lang.String |
removeAttribute(java.lang.String key)
Remove an attribute. |
java.lang.String |
setAttribute(java.lang.String key,
java.lang.String value)
Sets an attribute. |
java.lang.String |
toString()
|
java.util.Collection<java.lang.String> |
values()
Returns the attribute values as a Collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attributes()
Method Detail |
---|
public java.lang.String setAttribute(java.lang.String key, java.lang.String value)
setAttribute
in interface IAttributes
key
- - attribute namevalue
- - attribute value
public java.lang.String getAttribute(java.lang.String key)
getAttribute
in interface IAttributes
key
- - attribute name
public java.lang.String removeAttribute(java.lang.String key)
removeAttribute
in interface IAttributes
key
- - attribute name
public boolean hasAttribute(java.lang.String key)
hasAttribute
in interface IAttributes
key
- - attribute name
public java.util.Set<java.lang.String> keySet()
keySet
in interface ICollection
public java.util.Collection<java.lang.String> values()
public void clear()
clear
in interface ICollection
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |