|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.anadix.html.Attributes
public class Attributes
Class representing set of element's attributes. Contains both the attributes contained in tag and contained in style.
| Constructor Summary | |
|---|---|
Attributes(Properties attributes)
Constructor |
|
| Method Summary | |
|---|---|
String |
getAttribute(String key)
Gets the attribute by name |
String |
getAttribute(String key,
String defaultValue)
Gets the attribute by name |
Collection<String> |
getAvaliableAttributes()
Gets names of all attributes |
boolean |
hasAttribute(String key)
Determines whether attribute with given name is defined |
static Properties |
parseStyle(String style)
Parses the style into list of key - value pairs |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attributes(Properties attributes)
attributes - list of key - value pairs| Method Detail |
|---|
public String getAttribute(String key)
key - name of the attribute to get
public String getAttribute(String key,
String defaultValue)
key - name of the attribute to getdefaultValue - default value to use if attribute is not defined
public boolean hasAttribute(String key)
key - name of the attribute
public Collection<String> getAvaliableAttributes()
public static Properties parseStyle(String style)
style - String representation of style
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||