public class XMLFunctions extends Object
Constructor and Description |
---|
XMLFunctions() |
Modifier and Type | Method and Description |
---|---|
protected static Bead |
getBead(Element beadElement,
int id)
I take a bead element and read the values in, create
an Bead object and return it
|
protected static double |
getDoubleValue(Element ele,
String tagName)
Calls getTextValue and returns a int value
|
protected static String |
getTextValue(Element ele,
String tagName)
I take a xml element and the tag name, look for the tag and get
the text content
i.e for >employee<>name<John>/name<>/employee< xml snippet if
the Element points to employee node and tagName is name I will return John
|
static void |
main(String[] args) |
protected static ArrayList<Bead> |
parseBeadXMLDocument(Document dom,
String viewName) |
static void |
parseXMLBeadFile(String xmlFile,
String viewName,
int viewID,
String outputDirectory) |
static Document |
parseXMLFile(String xmlFile) |
public static void main(String[] args)
public static void parseXMLBeadFile(String xmlFile, String viewName, int viewID, String outputDirectory)
protected static ArrayList<Bead> parseBeadXMLDocument(Document dom, String viewName)
protected static Bead getBead(Element beadElement, int id)
beadElement
- Bead
protected static String getTextValue(Element ele, String tagName)
ele
- tagName
- protected static double getDoubleValue(Element ele, String tagName)
ele
- tagName
- Copyright © 2015–2021 Fiji. All rights reserved.