use of com.cosylab.logging.engine.DataNode in project ACS by ACS-Community.
the class LogEntryXML method initBody.
private void initBody(Node log) throws DOMException {
NodeList list = log.getChildNodes();
for (int i = 0; i < list.getLength(); i++) {
Node node = list.item(i);
boolean isData = node.getNodeName().equals("Data");
short type = node.getNodeType();
if (isData) {
DataNode dataNode = new DataNode(node);
if (datas == null) {
datas = new VectorNodeList(1, 2);
}
datas.add(dataNode);
} else {
if (isLogEntrySimple) {
isLogEntrySimple = !node.hasChildNodes();
}
if (isLogEntrySimple) {
// simpleLogEntryMessage = node.getNodeValue();
setField(LogField.LOGMESSAGE, node.getNodeValue());
} else {
if (complexLogEntryMessage == null)
complexLogEntryMessage = new VectorNodeList(1, 2);
complexLogEntryMessage.add(node);
}
}
}
}
Aggregations