| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bill.util.xml.SimpleXMLAttribute
Stores information related to an XML object's attributes. This includes the name of the attribute and its value.
| Constructor Summary | |
SimpleXMLAttribute(SimpleXMLAttribute attr)
Copy constructor that makes a new instance based on the values of an existing one.  | 
|
SimpleXMLAttribute(String name,
                   String value)
Main creator, sets the attribute's name and value to the values passed in and defaults the value surrounder to a double quote.  | 
|
SimpleXMLAttribute(String name,
                   String value,
                   char surrounder)
Alternate creator, sets the attribute's name and value to the values passed in.  | 
|
| Method Summary | |
 boolean | 
equals(Object other)
Checks if two SimpleXMLAttribute objects are equal.  | 
 String | 
getName()
Retrieves the name of this object.  | 
 char | 
getSurrounder()
Retrieves the character that acts as the attribute value's surrounder.  | 
 String | 
getValue()
Retrieves the value of this object.  | 
 void | 
setName(String name)
Sets the name of this object.  | 
 void | 
setValue(String value)
Sets the value of this object.  | 
 String | 
toXML()
Dumps out the object in valid XML string representation.  | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SimpleXMLAttribute(String name,
                          String value)
name - The name of the attribute.value - The value of the attribute.
public SimpleXMLAttribute(String name,
                          String value,
                          char surrounder)
name - The name of the attribute.value - The value of the attribute.surrounder - The character to surround the attribute value with.
 Should be either a quote (') or a double quote (").public SimpleXMLAttribute(SimpleXMLAttribute attr)
attr - The attribute object to make a copy of| Method Detail | 
public String getName()
public void setName(String name)
name - The new name of this object.public String getValue()
public void setValue(String value)
value - The new value of this object.public char getSurrounder()
public String toXML()
public boolean equals(Object other)
equals in class Objectother - The other object to check for equality.true if the object are equal, returns
 false otherwise.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||