| java.lang.Object org.w3c.www.webdav.xml.DAVNode
All known Subclasses: org.w3c.www.webdav.xml.DAVPropStat, org.w3c.www.webdav.xml.DAVLockEntry, org.w3c.www.webdav.xml.DAVLink, org.w3c.www.webdav.xml.DAVPropFind, org.w3c.www.webdav.xml.DAVMultiStatus, org.w3c.www.webdav.xml.DAVResponse, org.w3c.www.webdav.xml.DAVPropertyBehavior, org.w3c.www.webdav.xml.DAVPropAction, org.w3c.www.webdav.xml.DAVLockScope, org.w3c.www.webdav.xml.DAVPropertyUpdate, org.w3c.www.webdav.xml.DAVLockType, org.w3c.www.webdav.xml.DAVProperties,
DAVNode | public class DAVNode (Code) | | version: $Revision: 1.14 $ author: Benoît Mahé (bmahe@w3.org) |
Method Summary | |
public static Element | addDAVNode(Node parent, String name, String textvalue) Create a new node and add it to the parent children list. | public Element | addDAVNode(String name, String textvalue) Create a new node. | public void | addDAVNode(DAVNode node) | public void | addDAVNodes(DAVNode nodes) | public void | addNode(Node node) | public static void | addNodeNS(Node parent, Node child) | public void | addNodeNS(Node node) Add the given node to our children list. | public boolean | equals(DAVNode node) | public static void | exportChildren(Document newdoc, Node newparent, Node node, boolean deep) | public Element[] | getChildrenElements() Get all the element that are chidren of the current node. | public static Vector | getDAVElementsByTagName(Node node, String tagname) | public Vector | getDAVElementsByTagName(String tagname) Just for child, not the all tree. | public static Node | getDAVNode(Node node, String tagname) | public Node | getDAVNode(String tagname) | public String[] | getDAVNodeNames() | public static String[] | getMultipleTextChildValue(Node node, String tagname) Get the text value of all our "DAV:" children matching the given
tagname with a text value available. | public String[] | getMultipleTextChildValue(String tagname) Get the text value of all our "DAV:" children matching the given
tagname with a text value available. | public Node | getNode() | public static Node | getNodeNS(Node parent, String tagname, String ns) Get the first node of the parent matchind the given tagname and
namespace. | public Node | getNodeNS(String tagname, String ns) | public String | getTextChildValue(Node node) | public String | getTextChildValue(String tagname) | public String | getTextChildValueNS(String tagname, String ns) | public String | getTextValue() Get the value of the fist child TEXT node. | public static Node | importNode(Document newdoc, Element parent, Node node, boolean deep) |
ACTIVELOCK_NODE | final public static String ACTIVELOCK_NODE(Code) | | |
COLLECTION_NODE | final public static String COLLECTION_NODE(Code) | | |
CREATIONDATE_NODE | final public static String CREATIONDATE_NODE(Code) | | |
DISPLAYNAME_NODE | final public static String DISPLAYNAME_NODE(Code) | | |
EXCLUSIVE_NODE | final public static String EXCLUSIVE_NODE(Code) | | |
GETCONTENTLANGUAGE_NODE | final public static String GETCONTENTLANGUAGE_NODE(Code) | | |
GETCONTENTLENGTH_NODE | final public static String GETCONTENTLENGTH_NODE(Code) | | |
GETCONTENTTYPE_NODE | final public static String GETCONTENTTYPE_NODE(Code) | | |
GETLASTMODIFIED_NODE | final public static String GETLASTMODIFIED_NODE(Code) | | |
ISCOLLECTION_NODE | final public static String ISCOLLECTION_NODE(Code) | | |
KEEPALIVE_NODE | final public static String KEEPALIVE_NODE(Code) | | |
LOCKDISCOVERY_NODE | final public static String LOCKDISCOVERY_NODE(Code) | | |
LOCKENTRY_NODE | final public static String LOCKENTRY_NODE(Code) | | |
LOCKSCOPE_NODE | final public static String LOCKSCOPE_NODE(Code) | | |
LOCKTOKEN_NODE | final public static String LOCKTOKEN_NODE(Code) | | |
MULTISTATUS_NODE | final public static String MULTISTATUS_NODE(Code) | | |
PROPERTYBEHAVIOR_NODE | final public static String PROPERTYBEHAVIOR_NODE(Code) | | |
PROPERTYUPDATE_NODE | final public static String PROPERTYUPDATE_NODE(Code) | | |
RESOURCETYPE_NODE | final public static String RESOURCETYPE_NODE(Code) | | |
RESPONSEDESC_NODE | final public static String RESPONSEDESC_NODE(Code) | | |
SUPPORTEDLOCK_NODE | final public static String SUPPORTEDLOCK_NODE(Code) | | |
addDAVNode | public static Element addDAVNode(Node parent, String name, String textvalue) throws DOMException(Code) | | Create a new node and add it to the parent children list.
Parameters: parent - the parent node Parameters: name - the tagname of the new node Parameters: textvalue - the nodevalue of the TextNode (child of the new node) the newly added Element |
addDAVNode | public Element addDAVNode(String name, String textvalue) throws DOMException(Code) | | Create a new node.
Parameters: name - the tagname of the new node Parameters: textvalue - the nodevalue of the TextNode (child of the new node) the newly added Element |
addDAVNode | public void addDAVNode(DAVNode node)(Code) | | Add the given node the our children list
Parameters: node - the new child |
addDAVNodes | public void addDAVNodes(DAVNode nodes)(Code) | | Add the given nodes the our children list
Parameters: nodes - the new children |
addNode | public void addNode(Node node)(Code) | | Add this node to our children
Parameters: node - the new node |
addNodeNS | public static void addNodeNS(Node parent, Node child)(Code) | | Add the given node to the children list of the parent node and
Add the Namespace definition if needed (work arround of xmlserializer
bug)
Parameters: parent - the parent node Parameters: child - the new child |
addNodeNS | public void addNodeNS(Node node)(Code) | | Add the given node to our children list.
Add the Namespace definition if needed (work arround of xmlserializer
bug)
Parameters: parent - the parent node Parameters: child - the new child |
getChildrenElements | public Element[] getChildrenElements()(Code) | | Get all the element that are chidren of the current node.
a array of Element |
getDAVElementsByTagName | public static Vector getDAVElementsByTagName(Node node, String tagname)(Code) | | Get the list of children element that match the given tagname
(and the DAV namespace)
Parameters: node - the parent node Parameters: tagname - the tagname to match a Vector instance |
getDAVElementsByTagName | public Vector getDAVElementsByTagName(String tagname)(Code) | | Just for child, not the all tree.
Parameters: tagname - the tagname a Vector of Node. |
getDAVNode | public static Node getDAVNode(Node node, String tagname)(Code) | | Get the first child element that match the given tagname
(and the DAV namespace)
Parameters: node - the parent node Parameters: tagname - the tagname to match a Vector instance |
getDAVNode | public Node getDAVNode(String tagname)(Code) | | Get the first node matching the given name
Parameters: tagname - the node name a Node instance or null |
getDAVNodeNames | public String[] getDAVNodeNames()(Code) | | Get the tagnames of all our DAV children
a String array |
getMultipleTextChildValue | public static String[] getMultipleTextChildValue(Node node, String tagname)(Code) | | Get the text value of all our "DAV:" children matching the given
tagname with a text value available.
Parameters: node - the parent node Parameters: tagname - the tagname to search a String array |
getMultipleTextChildValue | public String[] getMultipleTextChildValue(String tagname)(Code) | | Get the text value of all our "DAV:" children matching the given
tagname with a text value available.
Parameters: tagname - the tagname to search a String array |
getNode | public Node getNode()(Code) | | Get our Node
a Node instance |
getNodeNS | public static Node getNodeNS(Node parent, String tagname, String ns)(Code) | | Get the first node of the parent matchind the given tagname and
namespace.
Parameters: parent - the parent node Parameters: tagname - the tagname to find Parameters: ns - the namespace a Node instance of null |
getNodeNS | public Node getNodeNS(String tagname, String ns)(Code) | | Get the first node matching the given name and the given namespace
Parameters: tagname - the node name Parameters: ns - the namespace a Node instance or null |
getTextChildValue | public String getTextChildValue(Node node)(Code) | | Get the value of the first child text node (if any)
Parameters: node - the parent node (can be null) a String instance or null |
getTextChildValue | public String getTextChildValue(String tagname)(Code) | | Get the value of the first "DAV:" child text node (if any)
Parameters: tagname - the parent node name a String instance or null |
getTextChildValueNS | public String getTextChildValueNS(String tagname, String ns)(Code) | | Get the value of the first child text node (if any)
Parameters: tagname - the parent node name Parameters: ns - the namespace to match a String instance or null |
getTextValue | public String getTextValue()(Code) | | Get the value of the fist child TEXT node.
a String |
|
|