|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--de.zeigermann.xpa.DefaultXMLFragmentHandler
This class implements XMLFragmentHandler with empty
method bodies for convenience.
| Constructor Summary | |
DefaultXMLFragmentHandler()
|
|
| Method Summary | |
void |
cdata(String cdata)
Receives notification of character data. |
void |
comment(String comment)
Receives notification of a comment. |
void |
doctype(String rootElement,
String pubId,
String sysId,
String internalDTD)
Receives notification of the document type declaration of the XML document. |
void |
emptyElement(String name,
AttributesImpl attributes)
Receives notification of the empty element. |
void |
endElement(String name)
Receives notification of the end of an element. |
void |
endFragment()
Receives notification of the end of a fragment. |
void |
pcdata(String pcdata)
Receives notification of parseable character data. |
void |
pi(String target,
AttributesImpl attributes)
Receives notification of a processing instruction. |
void |
startElement(String name,
AttributesImpl attributes)
Receives notification of the beginning of an element. |
void |
startFragment()
Receives notification of the beginning of a fragment. |
void |
xmlDeclaration(String target,
AttributesImpl attributes)
Receives notification of the XML declaration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultXMLFragmentHandler()
| Method Detail |
public void xmlDeclaration(String target,
AttributesImpl attributes)
XMLFragmentHandler
xmlDeclaration in interface XMLFragmentHandlertarget - xml or XMLattributes - all additional information for this
declaration (as version, encoding) put into
attribtues as name/value pairs
public void doctype(String rootElement,
String pubId,
String sysId,
String internalDTD)
XMLFragmentHandler
doctype in interface XMLFragmentHandlerrootElement - the root element of the XML documentpubId - the public id of the DTD or null
if there is nonesysId - the system id of the DTD or null
if there is noneinternalDTD - the internal DTD or null
if there is none; it will be notified as a single completely
unparsed text blockpublic void startFragment()
XMLFragmentHandler
startFragment in interface XMLFragmentHandlerpublic void endFragment()
XMLFragmentHandler
endFragment in interface XMLFragmentHandler
public void startElement(String name,
AttributesImpl attributes)
XMLFragmentHandler
startElement in interface XMLFragmentHandlername - the full name of this elementattributes - the attributes associated with this elementXMLFragmentHandler.emptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
XMLFragmentHandler.endElement(java.lang.String)
public void emptyElement(String name,
AttributesImpl attributes)
XMLFragmentHandler<empty/> will
create this notification while <empty></empty> will
call XMLFragmentHandler.startElement(java.lang.String, org.xml.sax.helpers.AttributesImpl) followed XMLFragmentHandler.endElement(java.lang.String).
emptyElement in interface XMLFragmentHandlername - the full name of this elementattributes - the attributes associated with this elementXMLFragmentHandler.startElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
XMLFragmentHandler.endElement(java.lang.String)public void endElement(String name)
XMLFragmentHandlerXMLFragmentHandler.emptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl) before.
endElement in interface XMLFragmentHandlername - the full name of this elementXMLFragmentHandler.emptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
XMLFragmentHandler.startElement(java.lang.String, org.xml.sax.helpers.AttributesImpl)public void pcdata(String pcdata)
XMLFragmentHandlerXMLFragmentParser has no means to identify
ignorable whitespace, it will be notified here as well.
pcdata in interface XMLFragmentHandlerpcdata - parseable character data from XML documentpublic void cdata(String cdata)
XMLFragmentHandler
cdata in interface XMLFragmentHandler
public void pi(String target,
AttributesImpl attributes)
XMLFragmentHandler
pi in interface XMLFragmentHandlertarget - identifies the application or purpose this PI is forattributes - all additional information for this PI put into
attribtues as name/value pairspublic void comment(String comment)
XMLFragmentHandler
comment in interface XMLFragmentHandlercomment - the text of the comment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||