|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.webdav.xml.DAVNode
public class DAVNode
Field Summary | |
---|---|
static java.lang.String |
ACTIVELOCK_NODE
|
static java.lang.String |
ALLPROP_NODE
|
static java.lang.String |
COLLECTION_NODE
|
static java.lang.String |
CREATIONDATE_NODE
|
static java.lang.String |
DEPTH_NODE
|
static java.lang.String |
DISPLAYNAME_NODE
|
static java.lang.String |
DST_NODE
|
protected org.w3c.dom.Element |
element
|
static java.lang.String |
EXCLUSIVE_NODE
|
static java.lang.String |
GETCONTENTLANGUAGE_NODE
|
static java.lang.String |
GETCONTENTLENGTH_NODE
|
static java.lang.String |
GETCONTENTTYPE_NODE
|
static java.lang.String |
GETETAG_NODE
|
static java.lang.String |
GETLASTMODIFIED_NODE
|
static java.lang.String |
HREF_NODE
|
static java.lang.String |
ISCOLLECTION_NODE
|
static java.lang.String |
ISFOLDER_NODE
|
static java.lang.String |
ISHIDDEN_NODE
|
static java.lang.String |
ISSHARED_NODE
|
static java.lang.String |
KEEPALIVE_NODE
|
static java.lang.String |
LINK_NODE
|
static java.lang.String |
LOCKDISCOVERY_NODE
|
static java.lang.String |
LOCKENTRY_NODE
|
static java.lang.String |
LOCKINFO_NODE
|
static java.lang.String |
LOCKSCOPE_NODE
|
static java.lang.String |
LOCKTOKEN_NODE
|
static java.lang.String |
LOCKTYPE_NODE
|
static java.lang.String |
MULTISTATUS_NODE
|
static java.lang.String |
OMIT_NODE
|
static java.lang.String |
OWNER_NODE
|
static java.lang.String |
PROP_NODE
|
static java.lang.String |
PROPERTYBEHAVIOR_NODE
|
static java.lang.String |
PROPERTYUPDATE_NODE
|
static java.lang.String |
PROPFIND_NODE
|
static java.lang.String |
PROPNAME_NODE
|
static java.lang.String |
PROPSTAT_NODE
|
static java.lang.String |
REMOVE_NODE
|
static java.lang.String |
RESOURCETYPE_NODE
|
static java.lang.String |
RESPONSE_NODE
|
static java.lang.String |
RESPONSEDESC_NODE
|
static java.lang.String |
SET_NODE
|
static java.lang.String |
SHARED_NODE
|
static java.lang.String |
SOURCE_NODE
|
static java.lang.String |
SRC_NODE
|
static java.lang.String |
STATUS_NODE
|
static java.lang.String |
SUPPORTEDLOCK_NODE
|
static java.lang.String |
TIMEOUT_NODE
|
static java.lang.String |
WRITE_NODE
|
Method Summary | |
---|---|
void |
addDAVNode(DAVNode node)
Add the given node the our children list |
static org.w3c.dom.Element |
addDAVNode(org.w3c.dom.Node parent,
java.lang.String name,
java.lang.String textvalue)
Create a new node and add it to the parent children list. |
org.w3c.dom.Element |
addDAVNode(java.lang.String name,
java.lang.String textvalue)
Create a new node. |
void |
addDAVNodes(DAVNode[] nodes)
Add the given nodes the our children list |
void |
addNode(org.w3c.dom.Node node)
Add this node to our children |
void |
addNodeNS(org.w3c.dom.Node node)
Add the given node to our children list. |
static void |
addNodeNS(org.w3c.dom.Node parent,
org.w3c.dom.Node child)
Add the given node to the children list of the parent node and Add the Namespace definition if needed (work arround of xmlserializer bug) |
boolean |
equals(DAVNode node)
|
static void |
exportChildren(org.w3c.dom.Document newdoc,
org.w3c.dom.Node newparent,
org.w3c.dom.Node node,
boolean deep)
|
org.w3c.dom.Element[] |
getChildrenElements()
Get all the element that are chidren of the current node. |
static java.util.Vector |
getDAVElementsByTagName(org.w3c.dom.Node node,
java.lang.String tagname)
Get the list of children element that match the given tagname (and the DAV namespace) |
java.util.Vector |
getDAVElementsByTagName(java.lang.String tagname)
Just for child, not the all tree. |
static org.w3c.dom.Node |
getDAVNode(org.w3c.dom.Node node,
java.lang.String tagname)
Get the first child element that match the given tagname (and the DAV namespace) |
org.w3c.dom.Node |
getDAVNode(java.lang.String tagname)
Get the first node matching the given name |
java.lang.String[] |
getDAVNodeNames()
Get the tagnames of all our DAV children |
static java.lang.String[] |
getMultipleTextChildValue(org.w3c.dom.Node node,
java.lang.String tagname)
Get the text value of all our "DAV:" children matching the given tagname with a text value available. |
java.lang.String[] |
getMultipleTextChildValue(java.lang.String tagname)
Get the text value of all our "DAV:" children matching the given tagname with a text value available. |
org.w3c.dom.Node |
getNode()
Get our Node |
static org.w3c.dom.Node |
getNodeNS(org.w3c.dom.Node parent,
java.lang.String tagname,
java.lang.String ns)
Get the first node of the parent matchind the given tagname and namespace. |
org.w3c.dom.Node |
getNodeNS(java.lang.String tagname,
java.lang.String ns)
Get the first node matching the given name and the given namespace |
java.lang.String |
getTextChildValue(org.w3c.dom.Node node)
Get the value of the first child text node (if any) |
java.lang.String |
getTextChildValue(java.lang.String tagname)
Get the value of the first "DAV:" child text node (if any) |
java.lang.String |
getTextChildValueNS(java.lang.String tagname,
java.lang.String ns)
Get the value of the first child text node (if any) |
java.lang.String |
getTextValue()
Get the value of the fist child TEXT node. |
static org.w3c.dom.Node |
importNode(org.w3c.dom.Document newdoc,
org.w3c.dom.Element parent,
org.w3c.dom.Node node,
boolean deep)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACTIVELOCK_NODE
public static final java.lang.String LOCKSCOPE_NODE
public static final java.lang.String LOCKTYPE_NODE
public static final java.lang.String DEPTH_NODE
public static final java.lang.String OWNER_NODE
public static final java.lang.String TIMEOUT_NODE
public static final java.lang.String LOCKTOKEN_NODE
public static final java.lang.String LOCKENTRY_NODE
public static final java.lang.String LOCKINFO_NODE
public static final java.lang.String WRITE_NODE
public static final java.lang.String EXCLUSIVE_NODE
public static final java.lang.String SHARED_NODE
public static final java.lang.String HREF_NODE
public static final java.lang.String LINK_NODE
public static final java.lang.String SRC_NODE
public static final java.lang.String DST_NODE
public static final java.lang.String MULTISTATUS_NODE
public static final java.lang.String RESPONSE_NODE
public static final java.lang.String PROPSTAT_NODE
public static final java.lang.String RESPONSEDESC_NODE
public static final java.lang.String STATUS_NODE
public static final java.lang.String PROP_NODE
public static final java.lang.String PROPERTYBEHAVIOR_NODE
public static final java.lang.String OMIT_NODE
public static final java.lang.String KEEPALIVE_NODE
public static final java.lang.String PROPERTYUPDATE_NODE
public static final java.lang.String REMOVE_NODE
public static final java.lang.String SET_NODE
public static final java.lang.String PROPFIND_NODE
public static final java.lang.String ALLPROP_NODE
public static final java.lang.String PROPNAME_NODE
public static final java.lang.String COLLECTION_NODE
public static final java.lang.String CREATIONDATE_NODE
public static final java.lang.String DISPLAYNAME_NODE
public static final java.lang.String GETCONTENTLANGUAGE_NODE
public static final java.lang.String GETCONTENTLENGTH_NODE
public static final java.lang.String GETCONTENTTYPE_NODE
public static final java.lang.String GETETAG_NODE
public static final java.lang.String GETLASTMODIFIED_NODE
public static final java.lang.String LOCKDISCOVERY_NODE
public static final java.lang.String RESOURCETYPE_NODE
public static final java.lang.String SOURCE_NODE
public static final java.lang.String SUPPORTEDLOCK_NODE
public static final java.lang.String ISCOLLECTION_NODE
public static final java.lang.String ISSHARED_NODE
public static final java.lang.String ISHIDDEN_NODE
public static final java.lang.String ISFOLDER_NODE
protected org.w3c.dom.Element element
Method Detail |
---|
public static org.w3c.dom.Node getNodeNS(org.w3c.dom.Node parent, java.lang.String tagname, java.lang.String ns)
parent
- the parent nodetagname
- the tagname to findns
- the namespace
public static void addNodeNS(org.w3c.dom.Node parent, org.w3c.dom.Node child)
parent
- the parent nodechild
- the new childpublic static void exportChildren(org.w3c.dom.Document newdoc, org.w3c.dom.Node newparent, org.w3c.dom.Node node, boolean deep) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public static org.w3c.dom.Node importNode(org.w3c.dom.Document newdoc, org.w3c.dom.Element parent, org.w3c.dom.Node node, boolean deep)
public org.w3c.dom.Node getNode()
public org.w3c.dom.Element[] getChildrenElements()
public org.w3c.dom.Node getNodeNS(java.lang.String tagname, java.lang.String ns)
tagname
- the node namens
- the namespace
public java.lang.String getTextValue()
public java.lang.String getTextChildValue(org.w3c.dom.Node node)
node
- the parent node (can be null)
public java.lang.String getTextChildValueNS(java.lang.String tagname, java.lang.String ns)
tagname
- the parent node namens
- the namespace to match
public void addNode(org.w3c.dom.Node node)
node
- the new nodepublic void addNodeNS(org.w3c.dom.Node node)
parent
- the parent nodechild
- the new childpublic static java.util.Vector getDAVElementsByTagName(org.w3c.dom.Node node, java.lang.String tagname)
node
- the parent nodetagname
- the tagname to match
public static org.w3c.dom.Node getDAVNode(org.w3c.dom.Node node, java.lang.String tagname)
node
- the parent nodetagname
- the tagname to match
public static org.w3c.dom.Element addDAVNode(org.w3c.dom.Node parent, java.lang.String name, java.lang.String textvalue) throws org.w3c.dom.DOMException
parent
- the parent nodename
- the tagname of the new nodetextvalue
- the nodevalue of the TextNode (child of the new node)
org.w3c.dom.DOMException
public static java.lang.String[] getMultipleTextChildValue(org.w3c.dom.Node node, java.lang.String tagname)
node
- the parent nodetagname
- the tagname to search
public java.util.Vector getDAVElementsByTagName(java.lang.String tagname)
tagname
- the tagname
public org.w3c.dom.Node getDAVNode(java.lang.String tagname)
tagname
- the node name
public java.lang.String getTextChildValue(java.lang.String tagname)
tagname
- the parent node name
public java.lang.String[] getMultipleTextChildValue(java.lang.String tagname)
tagname
- the tagname to search
public java.lang.String[] getDAVNodeNames()
public org.w3c.dom.Element addDAVNode(java.lang.String name, java.lang.String textvalue) throws org.w3c.dom.DOMException
name
- the tagname of the new nodetextvalue
- the nodevalue of the TextNode (child of the new node)
org.w3c.dom.DOMException
public void addDAVNode(DAVNode node)
node
- the new childpublic void addDAVNodes(DAVNode[] nodes)
nodes
- the new childrenpublic boolean equals(DAVNode node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |