|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.joost.trax.TemplatesHandlerImpl
A SAX ContentHandler that may be used to process SAX parse events
(parsing transformation instructions) into a Templates object.
TemplatesHandlerImpl acts as a proxy to Parser
| Field Summary | |
private static org.apache.commons.logging.Log |
log
|
private Parser |
stxparser
|
private String |
systemId
|
private TransformerFactoryImpl |
tfactory
|
| Fields inherited from interface net.sf.joost.Constants |
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
| Constructor Summary | |
protected |
TemplatesHandlerImpl(TransformerFactoryImpl tfactory)
Constructor |
| Method Summary | |
void |
characters(char[] parm1,
int parm2,
int parm3)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
endDocument()
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
endElement(String parm1,
String parm2,
String parm3)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
endPrefixMapping(String parm)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
String |
getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved |
Templates |
getTemplates()
When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed. |
void |
ignorableWhitespace(char[] parm1,
int parm2,
int parm3)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
processingInstruction(String parm1,
String parm2)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
setDocumentLocator(Locator locator)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
setSystemId(String systemId)
Set the base ID (URI or system ID) from the Templates object created by this builder. |
void |
skippedEntity(String parm1)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
startDocument()
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
startElement(String parm1,
String parm2,
String parm3,
Attributes parm4)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
void |
startPrefixMapping(String parm1,
String parm2)
SAX2-Callback - Simply propagates the Call to the registered Parser - here the stxparser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log log
private Parser stxparser
private String systemId
private TransformerFactoryImpl tfactory
| Constructor Detail |
protected TemplatesHandlerImpl(TransformerFactoryImpl tfactory)
tfactory - A Reference to TransformerFactoryImpl| Method Detail |
public String getSystemId()
getSystemId in interface TemplatesHandlerpublic Templates getTemplates()
getTemplates in interface TemplatesHandlerTemplates The Templates object that was created during
the SAX event process, or null if no Templates object
has been created.public void setSystemId(String systemId)
setSystemId in interface TemplatesHandlersystemId - Necessary for document root.public void setDocumentLocator(Locator locator)
Parser - here the stxparser
setDocumentLocator in interface ContentHandler
public void startDocument()
throws SAXException
Parser - here the stxparser
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
Parser - here the stxparser
endDocument in interface ContentHandlerSAXException
public void startPrefixMapping(String parm1,
String parm2)
throws SAXException
Parser - here the stxparser
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String parm)
throws SAXException
Parser - here the stxparser
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String parm1,
String parm2,
String parm3,
Attributes parm4)
throws SAXException
Parser - here the stxparser
startElement in interface ContentHandlerSAXException
public void endElement(String parm1,
String parm2,
String parm3)
throws SAXException
Parser - here the stxparser
endElement in interface ContentHandlerSAXException
public void characters(char[] parm1,
int parm2,
int parm3)
throws SAXException
Parser - here the stxparser
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] parm1,
int parm2,
int parm3)
throws SAXException
Parser - here the stxparser
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String parm1,
String parm2)
throws SAXException
Parser - here the stxparser
processingInstruction in interface ContentHandlerSAXException
public void skippedEntity(String parm1)
throws SAXException
Parser - here the stxparser
skippedEntity in interface ContentHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||