|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.propertytree.XMLPropertyBuilder
Field Summary | |
protected static String |
VALUE_ATTRIBUTE
|
static String |
XML_EXTENSION
|
Constructor Summary | |
XMLPropertyBuilder()
|
|
XMLPropertyBuilder(boolean getValueFromAttribute)
|
Method Summary | |
ReadOnlyProperty |
buildProperties(String aFilepath)
this method accepts a full filepath and then parses that file to return a Property hierarchy. |
boolean |
canParse(String aPathname)
this method accepts a filename and then determines if this property builder can build properties from that file, based on its extension. |
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 |
Field Detail |
public static String XML_EXTENSION
protected static String VALUE_ATTRIBUTE
Constructor Detail |
public XMLPropertyBuilder()
public XMLPropertyBuilder(boolean getValueFromAttribute)
Method Detail |
public boolean canParse(String aPathname)
canParse
in interface PropertyBuilder
public ReadOnlyProperty buildProperties(String aFilepath)
buildProperties
in interface PropertyBuilder
aFilepath
- full filepath of a file to parse.public void startDocument()
startDocument
in interface XMLHandler
public void characters(char[] buffer, int start, int length)
characters
in interface XMLHandler
buffer
- buffer containing plain text charactersstart
- start index of plain text characters in bufferlength
- number of characters in plain textpublic void startElement(String name, Map attributes)
startElement
in interface XMLHandler
attributes
- a map of attribute names and values found in this elementpublic void endElement(String name)
endElement
in interface XMLHandler
name
- the tag of the element that is endingpublic void endDocument()
endDocument
in interface XMLHandler
public void error(String message, String source, int line, int column)
error
in interface XMLHandler
message
- 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 XMLHandler
message
- 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 warning(String message, String source, int line, int column)
warning
in interface XMLHandler
message
- 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 |