|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microstar.xml.HandlerBase
ptolemy.actor.ptalon.PtalonMLHandler
public class PtalonMLHandler
XML handler to be used for "configure" code when parsing a MoML model that contains a PtalonActor.
Red (cxh) |
Red (cxh) |
Field Summary | |
---|---|
(package private) PtalonActor |
_actor
The actor that created this handler. |
(package private) java.util.Hashtable<java.lang.String,java.lang.String> |
_attributes
Each element in this hashtable maps a name to a value. |
Constructor Summary | |
---|---|
PtalonMLHandler(PtalonActor actor)
Create a PtalonMLHandler, which will be used to recover the AST and code manager specified in the PtalonML. |
Method Summary | |
---|---|
void |
attribute(java.lang.String aname,
java.lang.String value,
boolean isSpecified)
Process a PtalonML attribute. |
void |
endElement(java.lang.String elname)
Process the end of a PtalonML element. |
void |
startElement(java.lang.String elname)
Process the start of a PtalonML element. |
Methods inherited from class com.microstar.xml.HandlerBase |
---|
charData, doctypeDecl, endDocument, endExternalEntity, error, ignorableWhitespace, processingInstruction, resolveEntity, startDocument, startExternalEntity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PtalonActor _actor
java.util.Hashtable<java.lang.String,java.lang.String> _attributes
Constructor Detail |
---|
public PtalonMLHandler(PtalonActor actor)
actor
- The actor to associate with this handler.Method Detail |
---|
public void attribute(java.lang.String aname, java.lang.String value, boolean isSpecified) throws java.lang.Exception
attribute
in interface XmlHandler
attribute
in class HandlerBase
aname
- The name of the attribute.value
- The value of the attribute, or null if the
attribute is #IMPLIED
.isSpecified
- True if the value was specified, false if
it was defaulted from the DTD.
java.lang.Exception
- If there is any trouble
creating the AST or code manager,XmlHandler.attribute(java.lang.String, java.lang.String, boolean)
public void endElement(java.lang.String elname) throws java.lang.Exception
endElement
in interface XmlHandler
endElement
in class HandlerBase
elname
- The element type name.
java.lang.Exception
- If there is any trouble creating
the AST or code manager.XmlHandler.endElement(java.lang.String)
public void startElement(java.lang.String elname) throws java.lang.Exception
startElement
in interface XmlHandler
startElement
in class HandlerBase
elname
- The element type name.
java.lang.Exception
- If there is any trouble creating
the AST or code manager,XmlHandler.startElement(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |