|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.ceryle.xml.DeclTracer
public class DeclTracer
Uses an instance of a SAX2 parser to provide a DTD declaration event trace.
| Field Summary | |
|---|---|
protected static String |
DECLARATION_HANDLER_PROPERTY_ID
Declaration handler property id (http://xml.org/sax/properties/declaration-handler). |
protected static String |
DEFAULT_PARSER_NAME
Default parser name. |
| Constructor Summary | |
|---|---|
DeclTracer(MessageHandler mh)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
attributeDecl(String elementName,
String attributeName,
String type,
String valueDefault,
String value)
Attribute declaration. |
void |
elementDecl(String name,
String model)
Element declaration. |
void |
error(SAXParseException spe)
Error. |
void |
externalEntityDecl(String name,
String publicId,
String systemId)
External entity declaration (stub). |
void |
fatalError(SAXParseException spe)
Fatal error. |
void |
internalEntityDecl(String name,
String text)
Internal entity declaration (stub). |
void |
trace(TypedInputSource source)
Parse an TypedInputSource source. |
void |
warning(SAXParseException spe)
Warning. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String DECLARATION_HANDLER_PROPERTY_ID
protected static final String DEFAULT_PARSER_NAME
| Constructor Detail |
|---|
public DeclTracer(MessageHandler mh)
| Method Detail |
|---|
public void trace(TypedInputSource source)
public void elementDecl(String name,
String model)
throws SAXException
elementDecl in interface DeclHandlerSAXException
public void attributeDecl(String elementName,
String attributeName,
String type,
String valueDefault,
String value)
throws SAXException
attributeDecl in interface DeclHandlerSAXException
public void internalEntityDecl(String name,
String text)
throws SAXException
internalEntityDecl in interface DeclHandlerSAXException
public void externalEntityDecl(String name,
String publicId,
String systemId)
throws SAXException
externalEntityDecl in interface DeclHandlerSAXExceptionpublic void warning(SAXParseException spe)
warning in interface ErrorHandlerwarning in class DefaultHandlerpublic void error(SAXParseException spe)
error in interface ErrorHandlererror in class DefaultHandlerpublic void fatalError(SAXParseException spe)
fatalError in interface ErrorHandlerfatalError in class DefaultHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||