|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.graphml.support.XmlSupport
Support classes for handling xml elements.
| Method Summary | |
static String |
getAttributeValue(Node node,
String attributeName)
Returns the value of an attribute |
static Node |
getChildNode(Node node,
String name,
String namespace)
Returns a child element of the given node. |
static Node[] |
getChildNodes(Node node,
String name,
String namespace)
Returns all child elements of the given node with the given name and namespace. |
static Node |
getFirstChildElement(Node node)
Returns the first child node of the given node that is of type Node.ELEMENT_NODE. |
static String |
getTextContext(Node node)
Returns the node value of the first child of the given node that is of type Node.TEXT_NODE
or of type Node.CDATA_SECTION_NODE.
|
static void |
setAttribute(Node node,
String attributeName,
String value)
Sets the value of an existing attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void setAttribute(Node node,
String attributeName,
String value)
node - The node to set the attribute forattributeName - The name of the attributevalue - The new attribute valuepublic static String getTextContext(Node node)
Node.TEXT_NODE
or of type Node.CDATA_SECTION_NODE.
Returns null, if no such node exists.
public static String getAttributeValue(Node node,
String attributeName)
node - The node to return the attribute value forattributeName - The name of the attribute
null, if the attribute does not exist.
public static Node getChildNode(Node node,
String name,
String namespace)
node - The parent nodename - The name of the child nodenamespace - The child node's namespace.
null, if no child element with the given name and namespace exists.public static Node getFirstChildElement(Node node)
Node.ELEMENT_NODE.
node - The parent node.
null, if the given node has no child elements.
public static Node[] getChildNodes(Node node,
String name,
String namespace)
node - The parent nodename - The name of the childrennamespace - The children's namespace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||