|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.data.Token
ptolemy.data.XMLToken
public class XMLToken
A token that contains a xml document. Currently, no operations between function tokens (add, multiply, etc.) are supported.
Red (cxh) |
Red (neuendor) |
Field Summary | |
---|---|
private org.w3c.dom.Document |
_doc
|
private java.lang.String |
_toString
|
Fields inherited from class ptolemy.data.Token |
---|
NIL |
Constructor Summary | |
---|---|
XMLToken()
Construct an empty token. |
|
XMLToken(java.lang.String init)
Construct an XmlToken from the specified string. |
Method Summary | |
---|---|
static XMLToken |
convert(Token token)
Convert the specified token into an instance of XMLToken. |
org.w3c.dom.Document |
getDomTree()
Return the dom document parsed from the xml string. |
Type |
getType()
Return the type of this token. |
java.lang.String |
toString()
Return the value of this Token as a string. |
Methods inherited from class ptolemy.data.Token |
---|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private org.w3c.dom.Document _doc
private java.lang.String _toString
Constructor Detail |
---|
public XMLToken()
public XMLToken(java.lang.String init) throws java.lang.Exception
init
- The initialization string.
java.lang.Exception
- If the string is not parsable.Method Detail |
---|
public static XMLToken convert(Token token) throws IllegalActionException
token
- The token to be converted to a XMLToken.
IllegalActionException
- If the conversion
cannot be carried out.public org.w3c.dom.Document getDomTree()
public Type getType()
getType
in class Token
public java.lang.String toString()
toString
in class Token
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |