|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.arch4j.xml.XMLHandlerAdapter
This class implements the XMLHandler interface and allows you to only override methods you care about.
| Constructor Summary | |
XMLHandlerAdapter()
Creates a new instance of XMLHandlerAdapter |
|
| Method Summary | |
void |
characters(char[] buffer,
int start,
int length)
this method is called when the parser encounters plain text outside of a bracketed tag. |
void |
endDocument()
called when parser reaches the end of the document |
void |
endElement(String name)
this method is called whenever the parser encounters the end of an element |
void |
error(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a recoverable error. |
void |
fatalError(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a non-recoverable error. |
void |
startDocument()
this method is called by the parser at the start of a document |
void |
startElement(String name,
Map attributes)
this method is called when the parser encounters a starting element tag. |
void |
warning(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a warning situation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLHandlerAdapter()
| Method Detail |
public void characters(char[] buffer,
int start,
int length)
characters in interface XMLHandlerbuffer - buffer containing plain text charactersstart - start index of plain text characters in bufferlength - number of characters in plain textpublic void endDocument()
endDocument in interface XMLHandlerpublic void endElement(String name)
endElement in interface XMLHandlername - the tag of the element that is ending
public void error(String message,
String source,
int line,
int column)
error in interface XMLHandlermessage - error message generated by parsersource - source of XML document - generally a file nameline - line number of document on which error occurred.column - column number at which error occurred.
public void fatalError(String message,
String source,
int line,
int column)
fatalError in interface XMLHandlermessage - error message generated by parsersource - source of XML document - generally a file nameline - line number of document on which error occurred.column - column number at which error occurred.public void startDocument()
startDocument in interface XMLHandler
public void startElement(String name,
Map attributes)
startElement in interface XMLHandlerattributes - a map of attribute names and values found in this element
public void warning(String message,
String source,
int line,
int column)
warning in interface XMLHandlermessage - error message generated by parsersource - source of XML document - generally a file nameline - line number of document on which error occurred.column - column number at which error occurred.
|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||