|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.XMLToken
A token that contains a xml document. Currently, no operations between function tokens (add, multiply, etc.) are supported.
| Red (cxh) |
| Red (neuendor) |
| Constructor Summary | |
XMLToken()
Construct an empty token. |
|
XMLToken(java.lang.String xmlStr)
Construct an XmlToken from the specified string. |
|
| Method Summary | |
protected BooleanToken |
_isCloseTo(Token rightArgument,
double epsilon)
Test for closeness of the values of this Token and the argument Token. |
protected BooleanToken |
_isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument Token. |
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, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XMLToken()
public XMLToken(java.lang.String xmlStr)
throws java.lang.Exception
xmlStr - A string.
IllegalActionException - If the string
is not parsable.
java.lang.Exception| 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 Tokenpublic java.lang.String toString()
toString in class Token
protected BooleanToken _isCloseTo(Token rightArgument,
double epsilon)
throws IllegalActionException
rightArgument - The token to compare to.
IllegalActionException - If this method is not
supported by the derived class.
protected BooleanToken _isEqualTo(Token rightArgument)
throws IllegalActionException
rightArgument - The token to compare to.
IllegalActionException - If this method is not
supported by the derived class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||