superwaba.ext.xplat.xml
Class AttributeList
java.lang.Object
|
+--waba.util.Hashtable
|
+--superwaba.ext.xplat.xml.AttributeList
- public class AttributeList
- extends Hashtable
This class describes the attributes attached to a start-tag.
The AttributeListIterator() class provides an iterator over
the components of each attribute
in this AttributeList instance:
- the attribute name
- the unquoted value
- the quote, if one exist
|
Inner Class Summary |
static interface |
AttributeList.Filter
interface to filter each attribute before to enter it
in this AttributeList |
class |
AttributeList.Iterator
class to iterate over each attribute if an AttributeList |
|
Method Summary |
void |
addAttribute(java.lang.String attrName,
java.lang.String attrValue,
byte dlm)
Add a new attribute to this AttributeList |
boolean |
exists(java.lang.String name)
Find if an attribute exists. |
java.lang.String |
getAttributeValue(java.lang.String name)
Get the attribute value for a given name |
| Methods inherited from class waba.util.Hashtable |
clear,
exists,
get,
get,
getKeys,
getKeyValuePairs,
getValues,
put,
rehash,
remove,
size |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AttributeList
public AttributeList()
- Constructor (package only)
AttributeList
public AttributeList(AttributeList source)
- Clone
addAttribute
public final void addAttribute(java.lang.String attrName,
java.lang.String attrValue,
byte dlm)
- Add a new attribute to this AttributeList
- Parameters:
attrName - name of the attributeattrValue - unquoted value of the attributedlm - delimiter that started the attribute value (' or ").
'\0' if none
exists
public final boolean exists(java.lang.String name)
- Find if an attribute exists. Its value can be null.
- Parameters:
name - attribute name- Returns:
- true if the attribute exists.
getAttributeValue
public final java.lang.String getAttributeValue(java.lang.String name)
- Get the attribute value for a given name
- Parameters:
name - attribute name- Returns:
- the value, or null if it wasn't specified