com.microsoft.tfs.core.clients.sharepoint
Class WSSNode

java.lang.Object
  extended by com.microsoft.tfs.core.clients.sharepoint.WSSNode
All Implemented Interfaces:
Hierarchical, Labelable, java.lang.Comparable
Direct Known Subclasses:
WSSDocument, WSSFolder

public class WSSNode
extends java.lang.Object
implements Hierarchical, Labelable, java.lang.Comparable

An object (document, folder, etc.) in a Sharepoint installation.

Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Constructor Summary
WSSNode()
           
WSSNode(org.w3c.dom.Element element)
           
 
Method Summary
 void addChild(java.lang.Object child)
           
static WSSNode buildWSSNode(org.w3c.dom.Element element)
          Create a strongly typed WssNode from data passed back from the WSS Web Service.
 int compareTo(java.lang.Object compare)
           
 java.lang.Object[] getChildren()
           
 java.lang.String getEditor()
           
 java.lang.String getFullPath()
           
 java.lang.String getLabel()
           
 java.lang.Object getParent()
           
 java.lang.String getPath()
           
 java.lang.String getWSSObjectType()
           
 boolean hasChildren()
          This method is included because it's often less expensive to check for the existence of children than to retrieve the children.
 void setEditor(java.lang.String editor)
           
 void setFullPath(java.lang.String fullPath)
           
 void setLabel(java.lang.String label)
           
 void setParent(java.lang.Object parent)
           
 void setPath(java.lang.String path)
           
 void setWSSObjectType(java.lang.String wssObjectType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSNode

public WSSNode()

WSSNode

public WSSNode(org.w3c.dom.Element element)
Method Detail

getParent

public java.lang.Object getParent()
Specified by:
getParent in interface Hierarchical
Returns:
Returns the parent.

setParent

public void setParent(java.lang.Object parent)
Parameters:
parent - The parent to set.

addChild

public void addChild(java.lang.Object child)

getChildren

public java.lang.Object[] getChildren()
Specified by:
getChildren in interface Hierarchical
Returns:
the children of this object, or null if this object has no children

hasChildren

public boolean hasChildren()
Description copied from interface: Hierarchical
This method is included because it's often less expensive to check for the existence of children than to retrieve the children.

Specified by:
hasChildren in interface Hierarchical
Returns:
true if this object has children, false if not

getEditor

public java.lang.String getEditor()
Returns:
Returns the editor.

setEditor

public void setEditor(java.lang.String editor)
Parameters:
editor - The editor to set.

getFullPath

public java.lang.String getFullPath()
Returns:
Returns the fullPath.

setFullPath

public void setFullPath(java.lang.String fullPath)
Parameters:
fullPath - The fullPath to set.

getWSSObjectType

public java.lang.String getWSSObjectType()
Returns:
Returns the wssObjectType.

setWSSObjectType

public void setWSSObjectType(java.lang.String wssObjectType)
Parameters:
wssObjectType - The wssObjectType to set.

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Labelable
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - The label to set.

buildWSSNode

public static WSSNode buildWSSNode(org.w3c.dom.Element element)
Create a strongly typed WssNode from data passed back from the WSS Web Service.

Returns:
WssDocument or WssFolder representing point on node.

getPath

public java.lang.String getPath()
Returns:
Returns the path.

setPath

public void setPath(java.lang.String path)
Parameters:
path - The path to set.

compareTo

public int compareTo(java.lang.Object compare)
Specified by:
compareTo in interface java.lang.Comparable


© 2015 Microsoft. All rights reserved.