|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resource
Define a resource holding some attributes and other resources.
| Method Summary | |
|---|---|
void |
attachAttribute(Path attribute,
Attribute attr)
Attach an attribute at specified location. |
void |
attachResource(Path resource,
Resource res)
Attach Resource at specified location. |
void |
createAttribute(Path attribute,
java.lang.Object value)
Create an attribute at specified location. |
void |
createResource(Path resource)
Creates resources along a path |
void |
detachAttribute(Path attribute)
Detach an attribute at specified location. |
void |
detachResource(Path resource)
Detach a resource at specified location. |
Attribute |
getAttribute(Path path)
Return the attribute at specified location. |
Resource |
getResource(Path res)
Return the resource at specified location. |
java.lang.Object |
getValue(Path path)
Fetch attribute value. |
java.util.Set<java.lang.String> |
list(Path resource)
List resources and attributes. |
java.lang.Object |
setValue(Path path,
java.lang.Object value)
Set Attribute's value. |
| Methods inherited from interface org.ow2.wildcat.hierarchy.Mountable |
|---|
isMount, mount, unMount |
| Method Detail |
|---|
void attachAttribute(Path attribute,
Attribute attr)
throws ResourceException
attribute - path of the Attributeattr - the Attribute
ResourceException - if the attribute cannot be attached
void createAttribute(Path attribute,
java.lang.Object value)
throws ResourceException
attribute - path of the attributevalue - attribute initial value
ResourceException - if the attribute cannot be created
Attribute getAttribute(Path path)
throws ResourceException
path - path of the attribute
ResourceException - if the attribute cannot be retrieved
void detachAttribute(Path attribute)
throws ResourceException
attribute - path of the attribute
ResourceException - if the attribute cannot be detached
java.lang.Object getValue(Path path)
throws ResourceException
path - attribute's path
ResourceException - if the attribute cannot be accessed
java.lang.Object setValue(Path path,
java.lang.Object value)
throws ResourceException
path - path of the Attributevalue - new value of the Attribute
ResourceException - if the attribute cannot be accessed
void createResource(Path resource)
throws ResourceException
resource - path of resource
ResourceException - if the resource cannot be created
void attachResource(Path resource,
Resource res)
throws ResourceException
resource - path of the Resourceres - the Resource
ResourceException - if the resource cannot be attached
void detachResource(Path resource)
throws ResourceException
resource - path of the Resource
ResourceException - if the resource cannot be detached
Resource getResource(Path res)
throws ResourceException
res - path of the Resource
ResourceException - if the resource cannot be accessed
java.util.Set<java.lang.String> list(Path resource)
throws ResourceException
resource - indicates the resource to inspect, or 'this' if null
ResourceException - if the resource cannot be accessed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||