|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlFileBuilder
This interface intends to remove hard-bindings to a specific xml api. Implementations of this interface will: 1. optionally load a file 2. insert some elements into the current document 3. write the file to disk
| Method Summary | |
|---|---|
void |
insertElementsUnderXPath(java.lang.String elementsToParse,
java.lang.String xpath)
this will parse one or more elements from elementToParse and insert them under the xpath. |
void |
loadFile()
load the current xml file into a Document. |
void |
setFile(java.lang.String path)
sets the name of the file we will read and write. |
void |
setNamespaces(java.util.Map namespaces)
assign prefix to namespace mappings used for xpath and other xml operations. |
void |
writeFile()
write the current xml to disk. |
| Method Detail |
|---|
void setFile(java.lang.String path)
path - - where the xml file will be read from or written to.void setNamespaces(java.util.Map namespaces)
namespaces - - key is prefix value is urlvoid loadFile()
void insertElementsUnderXPath(java.lang.String elementsToParse,
java.lang.String xpath)
elementsToParse - String containing one or more elements in textual formatxpath - where to place the above elements.void writeFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||