Package ptolemy.actor.ptalon
Class PtalonMLHandler
- java.lang.Object
-
- com.microstar.xml.HandlerBase
-
- ptolemy.actor.ptalon.PtalonMLHandler
-
- All Implemented Interfaces:
XmlHandler
public class PtalonMLHandler extends HandlerBase
XML handler to be used for "configure" code when parsing a MoML model that contains a PtalonActor.- Since:
- Ptolemy II 6.1
- Version:
- $Id$
- Author:
- Adam Cataldo, Elaine Cheong
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description PtalonMLHandler(PtalonActor actor)Create a PtalonMLHandler, which will be used to recover the AST and code manager specified in the PtalonML.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(java.lang.String aname, java.lang.String value, boolean isSpecified)Process a PtalonML attribute.voidendElement(java.lang.String elname)Process the end of a PtalonML element.voidstartElement(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
-
-
-
-
Constructor Detail
-
PtalonMLHandler
public PtalonMLHandler(PtalonActor actor)
Create a PtalonMLHandler, which will be used to recover the AST and code manager specified in the PtalonML.- Parameters:
actor- The actor to associate with this handler.
-
-
Method Detail
-
attribute
public void attribute(java.lang.String aname, java.lang.String value, boolean isSpecified) throws java.lang.ExceptionProcess a PtalonML attribute.- Specified by:
attributein interfaceXmlHandler- Overrides:
attributein classHandlerBase- Parameters:
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.- Throws:
java.lang.Exception- If there is any trouble creating the AST or code manager,- See Also:
XmlHandler.attribute(java.lang.String, java.lang.String, boolean)
-
endElement
public void endElement(java.lang.String elname) throws java.lang.ExceptionProcess the end of a PtalonML element.- Specified by:
endElementin interfaceXmlHandler- Overrides:
endElementin classHandlerBase- Parameters:
elname- The element type name.- Throws:
java.lang.Exception- If there is any trouble creating the AST or code manager.- See Also:
XmlHandler.endElement(java.lang.String)
-
startElement
public void startElement(java.lang.String elname) throws java.lang.ExceptionProcess the start of a PtalonML element.- Specified by:
startElementin interfaceXmlHandler- Overrides:
startElementin classHandlerBase- Parameters:
elname- The element type name.- Throws:
java.lang.Exception- If there is any trouble creating the AST or code manager,- See Also:
XmlHandler.startElement(java.lang.String)
-
-