|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.xml.XMLAction
public class XMLAction
Support class for XML output.
Field Summary | |
---|---|
static String |
DELIMITER0
|
static String |
DELIMITER1
|
static String |
DELIMITER2
|
static String |
DELIMITER3
|
static String |
DELIMITER4
|
static String |
DELIMITER5
|
static String |
DELIMITER6
|
Constructor Summary | |
---|---|
XMLAction()
|
Method Summary | |
---|---|
static Node |
appendChild(Document doc,
Node nodeTo,
String delimiter,
String nodeName)
Appends child to node. |
static Node |
appendChild(Document doc,
Node nodeTo,
String delimiter,
String nodeName,
String nodeValue)
Appends child to node. |
static boolean |
getBoolLegacy(Node _node,
String _name)
Returns value of node from branch as boolean. |
static Node |
getFirstChildElement(Node _parent)
Returns first child Element. |
static boolean |
getFlag(Node _node,
String _name)
Returns boolean flag (presence of the given tag, the shortest variant is name ). |
static Integer |
getIntegerValue(Node _node,
String _name)
Returns value of node from branch as Integer. |
static int |
getIntValue(Node _node,
String _name)
Returns value of node from branch as integer. |
static Node |
getNextSiblingElement(Node _node)
Returns next sibling Element. |
static Node |
getNode(Node _node,
String _name)
Returns node from branch. |
static String |
getValue(Node _node,
String _name)
Returns value of node from branch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DELIMITER0
public static final String DELIMITER1
public static final String DELIMITER2
public static final String DELIMITER3
public static final String DELIMITER4
public static final String DELIMITER5
public static final String DELIMITER6
Constructor Detail |
---|
public XMLAction()
Method Detail |
---|
public static Node getFirstChildElement(Node _parent)
_parent
- branch of data.public static Node getNextSiblingElement(Node _node)
_node
- branch of data.public static String getValue(Node _node, String _name)
_node
- branch of data._name
- name of node.public static boolean getFlag(Node _node, String _name)
name
).
_node
- Data node._name
- Tag name to be looked for.
public static boolean getBoolLegacy(Node _node, String _name)
getFlag(org.w3c.dom.Node, java.lang.String)
code after a while..
_node
- branch of data._name
- name of node.public static int getIntValue(Node _node, String _name)
_node
- branch of data._name
- name of node.public static Integer getIntegerValue(Node _node, String _name)
_node
- branch of data._name
- name of node.public static Node getNode(Node _node, String _name)
_node
- branch of data._name
- name of node.public static Node appendChild(Document doc, Node nodeTo, String delimiter, String nodeName, String nodeValue)
doc
- Document.nodeTo
- branch for new node.delimiter
- For formating XML document - Human readable.public static Node appendChild(Document doc, Node nodeTo, String delimiter, String nodeName)
doc
- Document.nodeTo
- branch for new node.delimiter
- For formating XML document - Human readable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |