public class ReadXML extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_TYPE |
private DocumentBuilder |
db |
private DocumentBuilderFactory |
dbf |
private Document |
doc |
static int |
IMAGE_FILE_PATH |
private String |
str |
private boolean |
verbose |
Constructor and Description |
---|
ReadXML(String XMLFilePath)
Creates a new instance of ODReadXMLODD
|
Modifier and Type | Method and Description |
---|---|
void |
debugReport(String report) |
private NodeList |
getChildNodes(Element element) |
private Element |
getElement(NodeList nodeList,
int index) |
private NodeList |
getNodeListFromTag(Document doc,
String elementName) |
private String |
getValue(NodeList nodeList,
int index) |
boolean |
isVerbose() |
String |
readImgProperties(int valueID) |
private String[] |
readMarker(NodeList nodeList,
int index) |
Vector |
readMarkerData() |
private String |
readSingleValue(Document doc,
String elementName) |
private String |
readValue(NodeList nodeList,
int index) |
void |
setVerbose(boolean verbose) |
private boolean verbose
private DocumentBuilderFactory dbf
private DocumentBuilder db
private Document doc
private String str
public static final int IMAGE_FILE_PATH
public static final int CURRENT_TYPE
public ReadXML(String XMLFilePath) throws SAXException, IOException, ParserConfigurationException
public String readImgProperties(int valueID)
public Vector readMarkerData()
private String readValue(NodeList nodeList, int index) throws NullPointerException
NullPointerException
private String[] readMarker(NodeList nodeList, int index) throws NullPointerException
NullPointerException
public void debugReport(String report)
public void setVerbose(boolean verbose)
public boolean isVerbose()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.