public class PtalonMLHandler extends HandlerBase
Red (cxh) |
Red (cxh) |
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
PtalonMLHandler(PtalonActor actor)
Create a PtalonMLHandler, which will be used to recover the
AST and code manager specified in the PtalonML.
|
Modifier and Type | Method and Description |
---|---|
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.
|
charData, doctypeDecl, endDocument, endExternalEntity, error, ignorableWhitespace, processingInstruction, resolveEntity, startDocument, startExternalEntity
PtalonActor _actor
java.util.Hashtable<java.lang.String,java.lang.String> _attributes
public PtalonMLHandler(PtalonActor actor)
actor
- The actor to associate with this handler.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)