|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.joost.stx.Emitter
net.sf.joost.trace.DebugEmitter
Extends the Emitter with debug features.
| Nested Class Summary | |
class |
DebugEmitter.DebugWriter
|
| Field Summary | |
private LocatorImpl |
locator
handle locator information |
private static org.apache.commons.logging.Log |
log
logger |
private TraceManager |
tmgr
for dynamic tracing |
DebugEmitter.DebugWriter |
writer
|
| Fields inherited from class net.sf.joost.stx.Emitter |
contH, prev |
| 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 | |
private |
DebugEmitter(DebugEmitter prev,
StxEmitter handler)
Called from pushEmitter(StxEmitter) |
|
DebugEmitter(ErrorHandlerImpl errorHandler)
constructor see Emitter.Emitter(ErrorHandlerImpl) |
| Method Summary | |
void |
characters(char[] ch,
int start,
int length,
NodeBase instruction)
overloaded method for debug information |
void |
comment(char[] ch,
int start,
int length,
NodeBase instruction)
overloaded method for debug information |
void |
endCDATA()
overloaded method for debug information |
void |
endDocument(AbstractInstruction instruction)
overloaded method for debug information |
void |
endElement(String uri,
String lName,
String qName,
AbstractInstruction instruction)
overloaded method for debug information |
Locator |
getEmitterLocator()
|
Writer |
getResultWriter(String href,
String encoding,
String publicId,
String systemId,
int lineNo,
int colNo)
overloaded method for debug support see Emitter.getResultWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int) |
TraceManager |
getTraceManager()
getter for tmgr property |
void |
processingInstruction(String target,
String data,
NodeBase instruction)
overloaded method for debug information |
Emitter |
pushEmitter(StxEmitter handler)
Put the current emitter object on a stack and return a new emitter, which uses the given handler. |
void |
setTraceManager(TraceManager tmgr)
setter for tmgr property |
void |
startCDATA(NodeBase instruction)
overloaded method for debug information |
void |
startDocument()
overloaded method for debug information |
void |
startElement(String uri,
String lName,
String qName,
Attributes attrs,
Hashtable namespaces,
NodeBase instruction)
overloaded method for debug information |
private void |
updateLocator(String publicId,
String systemId,
int lineNo,
int colNo)
|
| Methods inherited from class net.sf.joost.stx.Emitter |
addAttribute, isEmitterActive, setContentHandler, setLexicalHandler |
| 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 TraceManager tmgr
private LocatorImpl locator
public DebugEmitter.DebugWriter writer
| Constructor Detail |
public DebugEmitter(ErrorHandlerImpl errorHandler)
Emitter.Emitter(ErrorHandlerImpl)
private DebugEmitter(DebugEmitter prev,
StxEmitter handler)
pushEmitter(StxEmitter)
prev - the previous emitterhandler - the new content handler| Method Detail |
public Emitter pushEmitter(StxEmitter handler)
Emitter
pushEmitter in class Emitterhandler - the STX handler for the new emitter
public void setTraceManager(TraceManager tmgr)
tmgr property
public TraceManager getTraceManager()
tmgr property
public Locator getEmitterLocator()
public Writer getResultWriter(String href,
String encoding,
String publicId,
String systemId,
int lineNo,
int colNo)
throws IOException,
SAXException
Emitter.getResultWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int)
getResultWriter in class Emitterhref - the filenameencoding - the requested encodingpublicId - public ID of the transformation sheetsystemId - system ID of the transformation sheetlineNo - line number of the stx:result-document
instructioncolNo - column number of the stx:result-document
instruction
IOException
SAXException
public void startDocument()
throws SAXException
startDocument in class EmitterSAXException
public void endDocument(AbstractInstruction instruction)
throws SAXException
endDocument in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void startElement(String uri,
String lName,
String qName,
Attributes attrs,
Hashtable namespaces,
NodeBase instruction)
throws SAXException
startElement in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void endElement(String uri,
String lName,
String qName,
AbstractInstruction instruction)
throws SAXException
endElement in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void characters(char[] ch,
int start,
int length,
NodeBase instruction)
throws SAXException
characters in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void processingInstruction(String target,
String data,
NodeBase instruction)
throws SAXException
processingInstruction in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void comment(char[] ch,
int start,
int length,
NodeBase instruction)
throws SAXException
comment in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void startCDATA(NodeBase instruction)
throws SAXException
startCDATA in class Emitterinstruction - the instruction that causes this method invocation
SAXException
public void endCDATA()
throws SAXException
endCDATA in class EmitterSAXException
private void updateLocator(String publicId,
String systemId,
int lineNo,
int colNo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||