|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vrs.VNode
nl.uva.vlet.vrs.VCompositeNode
public abstract class VCompositeNode
Convenvience Adapter class which directly extends VNode and implements some VComposite interface methods.
Field Summary |
---|
Fields inherited from class nl.uva.vlet.vrs.VNode |
---|
ATTR_CHARSET, ATTR_HOSTNAME, ATTR_ICON, ATTR_ISVLINK, ATTR_LOCATION, ATTR_MIMETYPE, ATTR_NAME, ATTR_PATH, ATTR_PORT, ATTR_SCHEME, ATTR_TYPE, location, vrsContext |
Constructor Summary | |
---|---|
VCompositeNode(VRSContext context,
VRL vrl)
|
Method Summary | |
---|---|
VNode |
addNode(VNode node,
boolean isMove)
Add a node to the underlaying Resource. |
VNode |
addNode(VNode node,
java.lang.String newName,
boolean isMove)
Add a node to the underlaying Resource with a optional new name. |
VNode[] |
addNodes(VNode[] nodes,
boolean isMove)
Add specified nodes to the Resource. |
VNode |
createChild(java.lang.String type,
java.lang.String name,
boolean force)
VNode method to create new Child. |
boolean |
delete(boolean recurse)
Recursive delete. |
boolean |
delNode(VNode node)
VRS method to delete specified resource Node |
boolean |
delNodes(VNode[] nodes)
VRS method to delete specified resource Nodes |
boolean |
exists()
Whether this node (still) exists |
VNode |
getChild(java.lang.String name)
Returns Child Node. |
VAttribute[][] |
getChildAttributes(java.lang.String[] names)
Returns attributes for all childs |
VAttribute[][] |
getChildAttributes(java.lang.String[] childNames,
java.lang.String[] names)
Return attribute matrix for given childs. |
VRL |
getHelp()
Returns simple text file or complete HTML page. |
long |
getNrOfChilds()
Returns number of child nodes. |
VNode[] |
getParents()
Get Parents if the Node is part of a Graph. |
boolean |
hasChild(java.lang.String name)
Checks whether this node has a child with the specified name |
boolean |
isAccessable()
Override this method if your directory can be accessable but not be 'readable'. |
boolean |
isDeletable()
|
Methods inherited from class nl.uva.vlet.vrs.VNode |
---|
compareTo, getAttribute, getAttributeNames, getAttributes, getAttributes, getAttributeSet, getBasename, getCharSet, getHostname, getIconURL, getID, getLocation, getMimeType, getName, getParent, getPath, getPort, getScheme, getServerAttributes, getType, getURI, getVRL, getVRSContext, isComposite, isVirtual, isVLink, mergedGetAttributes, setLocation, setVRL, toLinkNode, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface nl.uva.vlet.vrs.VComposite |
---|
getChilds, getResourceTypes |
Constructor Detail |
---|
public VCompositeNode(VRSContext context, VRL vrl)
Method Detail |
---|
public VNode[] getParents() throws VlException
VNode
getParents
in class VNode
VlException
public long getNrOfChilds() throws VlException
VComposite
getNrOfChilds
in interface VComposite
VlException
public VNode getChild(java.lang.String name) throws VlException
VComposite
getChild
in interface VComposite
VlException
public VNode addNode(VNode node, boolean isMove) throws VlException
VComposite
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems or on the same SRB Server.
addNode
in interface VComposite
VlException
public VNode[] addNodes(VNode[] nodes, boolean isMove) throws VlException
VComposite
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems.
addNodes
in interface VComposite
VlException
public boolean delNode(VNode node) throws VlException
VComposite
delNode
in interface VComposite
VlException
public boolean delNodes(VNode[] nodes) throws VlException
VComposite
delNodes
in interface VComposite
VlException
public boolean hasChild(java.lang.String name) throws VlException
VComposite
hasChild
in interface VComposite
VlException
public VAttribute[][] getChildAttributes(java.lang.String[] childNames, java.lang.String[] names) throws VlException
VComposite
getChildAttributes
in interface VComposite
childNames
- list of child namesnames
- list of attribute names
VlException
public VAttribute[][] getChildAttributes(java.lang.String[] names) throws VlException
VComposite
getChildAttributes
in interface VComposite
VlException
public boolean isDeletable() throws VlException
isDeletable
in interface VComposite
VlException
public boolean isAccessable()
VComposite
isAccessable
in interface VComposite
public boolean exists()
VNode
exists
in class VNode
public VNode createChild(java.lang.String type, java.lang.String name, boolean force) throws VlException
VComposite
createChild
in interface VComposite
type
- must be on of the types getResourceTypes() returns.name
- may be null. The implementation might choose a default name
or prompt the user.force
- means to create the child even if it already exists.
VlException
public boolean delete(boolean recurse) throws VlException
VComposite
delete
in interface VComposite
recurse
- whether to delete its children also.
VlException
public VRL getHelp()
VNode
getHelp
in class VNode
public VNode addNode(VNode node, java.lang.String newName, boolean isMove) throws VlException
VComposite
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems or on the same SRB Server.
addNode
in interface VComposite
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |