|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FIM.Util.XML.XMLString
Encodes a string as an XML element. The name of the element is always "XMLString".
Constructor Summary | |
XMLString()
Create an empty XMLString object. |
|
XMLString(Element elem)
Creates a new XMLString object from an element. |
|
XMLString(String str)
Creates a new XMLString object from a string. |
Method Summary | |
void |
decodeXMLElement(Element elem)
Restores the contained string from an element. |
boolean |
equals(Object obj)
Compares two XMLString objects |
Serializable |
getAsSerializable()
Retrieve the string as a Serializable . |
Element |
getAsXMLElement(Document doc)
Returns the string encoded as an XML element with the name "XMLString". |
String |
getString()
Retrieve the contained string. |
void |
setString(String str)
Set the contained string to a new value. |
String |
toString()
Retrieve the contained string. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public XMLString()
public XMLString(String str)
str
- the content of the XMLString (may not be null
)public XMLString(Element elem)
elem
- the element to parseMethod Detail |
public String getString()
public void setString(String str)
str
- the string to setpublic Serializable getAsSerializable()
Serializable
.getAsSerializable
in interface XMLEncodeable
public Element getAsXMLElement(Document doc)
getAsXMLElement
in interface XMLEncodeable
public void decodeXMLElement(Element elem) throws IllegalArgumentException
decodeXMLElement
in interface XMLEncodeable
elem
- the element containing the stringIllegalArgumentException
- if the element is wrong or ill-formed (tag name not "XMLString"
or does not contain only a CDATASection)public String toString()
toString
in interface XMLEncodeable
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object to compare to this one
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |