|
|||||||||
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
public class DebugProcessor
Extends the Processor
with debug features.
Nested Class Summary |
---|
Nested classes/interfaces 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 |
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 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)
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
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)
SAXException
public DebugProcessor(InputSource src, ParseContext pContext) throws IOException, SAXException
Processor.Processor(org.xml.sax.InputSource, ParseContext)
IOException
SAXException
public DebugProcessor(XMLReader reader, InputSource src, ParseContext pContext, StxEmitter messageEmitter) throws IOException, SAXException
Processor.Processor(XMLReader, InputSource, ParseContext)
IOException
SAXException
public DebugProcessor(XMLReader reader, InputSource src, ParseContext pContext) throws IOException, SAXException
Processor.Processor(XMLReader, InputSource, ParseContext)
IOException
SAXException
Method Detail |
---|
public Processor copy() throws SAXException
Processor.copy()
copy
in class Processor
SAXException
public void setDocumentLocator(Locator locator)
Processor
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class Processor
public Locator getDocumentLocator()
protected Emitter initializeEmitter(Context ctx)
initializeEmitter
in class Processor
ctx
- The current context
protected int processInstruction(AbstractInstruction inst, SAXEvent event) throws SAXException
processInstruction
in class Processor
inst
- 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 ContentHandler
startDocument
in class Processor
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class Processor
SAXException
public void startElement(String uri, String lName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class Processor
SAXException
public void endElement(String uri, String lName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class Processor
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class Processor
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class Processor
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class Processor
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class Processor
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |