|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VComposite
The Composite interface for VNodes which have 'child nodes' (for example: VDir).
The method VNode.isComposite() can be used to check wether a node has child nodes and implements this interface. Or use the (... instanceof VComposite) construction.
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 |
VNode |
getChild(java.lang.String name)
Returns Child Node. |
VAttribute[][] |
getChildAttributes(java.lang.String[] attributeNames)
Returns attributes for all childs |
VAttribute[][] |
getChildAttributes(java.lang.String[] childNames,
java.lang.String[] attrNames)
Return attribute matrix for given childs. |
VNode[] |
getChilds()
Returns Child Nodes. |
long |
getNrOfChilds()
Returns number of child nodes. |
java.lang.String[] |
getResourceTypes()
Returns allowed resource types which this node can have as child and/or create. |
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()
|
Method Detail |
---|
java.lang.String[] getResourceTypes()
long getNrOfChilds() throws VlException
VlException
VNode[] getChilds() throws VlException
VlException
VNode getChild(java.lang.String name) throws VlException
VlException
VNode addNode(VNode node, boolean isMove) throws VlException
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.
node
- isMove
-
VlException
VNode addNode(VNode node, java.lang.String newName, boolean isMove) throws VlException
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.
node
- isMove
-
VlException
VNode[] addNodes(VNode[] nodes, boolean isMove) throws VlException
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems.
VlException
boolean delNode(VNode node) throws VlException
VlException
boolean delNodes(VNode[] nodes) throws VlException
VlException
VNode createChild(java.lang.String type, java.lang.String name, boolean force) throws VlException
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
boolean delete(boolean recurse) throws VlException
recurse
- whether to delete its children also.
VlException
boolean isDeletable() throws VlException
VlException
boolean hasChild(java.lang.String name) throws VlException
VlException
VAttribute[][] getChildAttributes(java.lang.String[] childNames, java.lang.String[] attrNames) throws VlException
childNames
- list of child namesattrNames
- list of attribute names
VlException
VlException
VAttribute[][] getChildAttributes(java.lang.String[] attributeNames) throws VlException
VlException
boolean isAccessable() throws VlException
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |