public class XMLAttrVector
extends java.lang.Object
| Constructor and Description |
|---|
XMLAttrVector()
Construct an empty XMLAttrVector.
|
| Modifier and Type | Method and Description |
|---|---|
XMLAttrVector |
add(java.lang.String attrName,
boolean attrVal)
Add a new attribute/value pair based on a boolean value.
|
XMLAttrVector |
add(java.lang.String attrName,
double attrVal)
Add a new attribute/value pair based on a double value.
|
XMLAttrVector |
add(java.lang.String attrName,
int attrVal)
Add a new attribute/value pair based on an int value.
|
XMLAttrVector |
add(java.lang.String attrName,
java.lang.Object attrVal)
Add a new attribute/value pair based on a String value.
|
void |
display(java.io.PrintWriter out,
int indent)
Displays the entire attribute/value pair list, given a PrintWriter
to which to display and an indentation level.
|
int |
size()
Returns the number of attributes.
|
public XMLAttrVector()
public int size()
public XMLAttrVector add(java.lang.String attrName, java.lang.Object attrVal)
attrName - the name of the attribute.attrVal - the String value of the attribute.public XMLAttrVector add(java.lang.String attrName, int attrVal)
attrName - the name of the attribute.attrVal - the int value of the attribute.public XMLAttrVector add(java.lang.String attrName, double attrVal)
attrName - the name of the attribute.attrVal - the double value of the attribute.public XMLAttrVector add(java.lang.String attrName, boolean attrVal)
attrName - the name of the attribute.attrVal - the boolean value of the attribute.public void display(java.io.PrintWriter out,
int indent)
out - PrintWriter to which to write output.indent - indentation level.