|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
net.sf.joost.stx.Processor
net.sf.joost.trace.DebugProcessor
Extends the Processor with debug features.
| Nested Class Summary |
| Nested classes inherited from class net.sf.joost.stx.Processor |
Processor.Data, Processor.DataStack |
| Field Summary | |
private Locator |
locator
|
private static org.apache.commons.logging.Log |
log
logger |
private ParserListener |
parserListener
the ParserListener for static tracing |
Parser |
stxparser
the Joost-transformation-sheet parser |
private TraceManager |
tmgr
the TraceManager for dynamic tracing |
private TransformerImpl |
transformer
the TrAX-Transformer |
| Fields inherited from class net.sf.joost.stx.Processor |
outputProperties, PASS_THROUGH_ALL, PASS_THROUGH_ATTRIBUTE, PASS_THROUGH_COMMENT, PASS_THROUGH_ELEMENT, PASS_THROUGH_NONE, PASS_THROUGH_PI, PASS_THROUGH_TEXT |
| Fields inherited from class org.xml.sax.helpers.XMLFilterImpl |
|
| 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 | |
DebugProcessor(InputSource src,
ParseContext pContext)
See Processor.Processor(org.xml.sax.InputSource, ParseContext) |
|
DebugProcessor(Parser stxParser)
See Processor.Processor(net.sf.joost.stx.Parser) |
|
DebugProcessor(Processor proc)
See Processor.Processor(net.sf.joost.stx.Processor) |
|
DebugProcessor(XMLReader reader,
InputSource src,
ParseContext pContext)
See Processor.Processor(XMLReader, InputSource, ParseContext) |
|
DebugProcessor(XMLReader reader,
InputSource src,
ParseContext pContext,
StxEmitter messageEmitter)
See Processor.Processor(XMLReader, InputSource, ParseContext) |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
overloaded method of ContentHandler for debug information |
void |
comment(char[] ch,
int start,
int length)
overloaded method of LexicalHandler for debug information |
Processor |
copy()
See Processor.copy() |
void |
endDocument()
overloaded method of ContentHandler for debug information |
void |
endElement(String uri,
String lName,
String qName)
overloaded method of ContentHandler for debug information |
Locator |
getDocumentLocator()
|
ParserListener |
getParserListener()
getter for property parserListener |
TraceManager |
getTraceManager()
getter for property tmgr |
TransformerImpl |
getTransformer()
getter for property transformer |
protected Emitter |
initializeEmitter(Context ctx,
Parser parser)
Overriden method for debug purpose |
void |
processingInstruction(String target,
String data)
overloaded method of ContentHandler for debug information |
protected int |
processInstruction(AbstractInstruction inst,
SAXEvent event)
Overriden method for the execution of a given instruction. |
void |
setDocumentLocator(Locator locator)
Store the locator in the context object |
void |
setTraceManager(TraceManager tmgr)
setter for property tmgr |
void |
setTransformer(TransformerImpl transformer)
setter for property transformer |
void |
startDocument()
overloaded method of ContentHandler for debug information |
void |
startElement(String uri,
String lName,
String qName,
Attributes attrs)
overloaded method of ContentHandler for debug information |
void |
startPrefixMapping(String prefix,
String uri)
overloaded method of ContentHandler for debug information |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, skippedEntity, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private TraceManager tmgr
private TransformerImpl transformer
private ParserListener parserListener
public Parser stxparser
private Locator locator
private static org.apache.commons.logging.Log log
| Constructor Detail |
public DebugProcessor(Processor proc)
throws SAXException
Processor.Processor(net.sf.joost.stx.Processor)
SAXException
public DebugProcessor(Parser stxParser)
throws SAXException
Processor.Processor(net.sf.joost.stx.Parser)
public DebugProcessor(InputSource src,
ParseContext pContext)
throws IOException,
SAXException
Processor.Processor(org.xml.sax.InputSource, ParseContext)
public DebugProcessor(XMLReader reader,
InputSource src,
ParseContext pContext,
StxEmitter messageEmitter)
throws IOException,
SAXException
Processor.Processor(XMLReader, InputSource, ParseContext)
public DebugProcessor(XMLReader reader,
InputSource src,
ParseContext pContext)
throws IOException,
SAXException
Processor.Processor(XMLReader, InputSource, ParseContext)
| Method Detail |
public Processor copy()
throws SAXException
Processor.copy()
copy in class ProcessorSAXExceptionpublic void setDocumentLocator(Locator locator)
Processor
setDocumentLocator in interface ContentHandlersetDocumentLocator in class Processorpublic Locator getDocumentLocator()
protected Emitter initializeEmitter(Context ctx,
Parser parser)
initializeEmitter in class Processorctx - The current contextparser - The stx-parser
protected int processInstruction(AbstractInstruction inst,
SAXEvent event)
throws SAXException
processInstruction in class Processorinst - the instruction to be executedevent - the current saxevent from source-document
Constants
SAXException - in case of errors.public ParserListener getParserListener()
parserListener
public void setTraceManager(TraceManager tmgr)
tmgr
public TraceManager getTraceManager()
tmgr
public TransformerImpl getTransformer()
transformer
public void setTransformer(TransformerImpl transformer)
transformer
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class ProcessorSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ProcessorSAXException
public void startElement(String uri,
String lName,
String qName,
Attributes attrs)
throws SAXException
startElement in interface ContentHandlerstartElement in class ProcessorSAXException
public void endElement(String uri,
String lName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class ProcessorSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class ProcessorSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class ProcessorSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class ProcessorSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class ProcessorSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||