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 SummaryConstructors Constructor Description PtalonMLHandler(PtalonActor actor)Create a PtalonMLHandler, which will be used to recover the AST and code manager specified in the PtalonML.
 - 
Method SummaryAll 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.HandlerBasecharData, doctypeDecl, endDocument, endExternalEntity, error, ignorableWhitespace, processingInstruction, resolveEntity, startDocument, startExternalEntity
 
- 
 
- 
- 
- 
Constructor Detail- 
PtalonMLHandlerpublic 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- 
attributepublic void attribute(java.lang.String aname, java.lang.String value, boolean isSpecified) throws java.lang.ExceptionProcess a PtalonML attribute.- Specified by:
- attributein interface- XmlHandler
- Overrides:
- attributein class- HandlerBase
- 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)
 
 - 
endElementpublic void endElement(java.lang.String elname) throws java.lang.ExceptionProcess the end of a PtalonML element.- Specified by:
- endElementin interface- XmlHandler
- Overrides:
- endElementin class- HandlerBase
- 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)
 
 - 
startElementpublic void startElement(java.lang.String elname) throws java.lang.ExceptionProcess the start of a PtalonML element.- Specified by:
- startElementin interface- XmlHandler
- Overrides:
- startElementin class- HandlerBase
- 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)
 
 
- 
 
-