|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.ResourceIDImpl
public class ResourceIDImpl
This represent a resource id. This keep the path which used to identify that resource in the present state in a unique way. In addition to that it keep the more drilled down details of the path, the path id and resource name. If the resource is a collection pathID = REG_PATH_ID(path) name = null If the resource is not a collection pathId = REG_PATH_ID(parentPath(path)) name = the name component of the path id so path = parentPath(path) + "/" + name component of the path.
Constructor Summary | |
---|---|
ResourceIDImpl()
|
Method Summary | |
---|---|
String |
getName()
Method to get the name. |
String |
getPath()
Returning the full path, i.e. |
int |
getPathID()
Method to get the path id, If the resource is a collection, pathID = REG_PATH_ID(path) name = null If the resource is not a collection, pathId = REG_PATH_ID(parentPath(path)) |
boolean |
isCollection()
Method to check whether the resource is a collection. |
void |
setCollection(boolean collection)
Method to set whether the resource is a collection. |
void |
setName(String name)
Method to set the name. |
void |
setPath(String path)
Setting the full path i.e. |
void |
setPathID(int pathID)
Method to set the path id. |
String |
toString()
The string value of the resource ID = getPath(); |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceIDImpl()
Method Detail |
---|
public String getPath()
public void setPath(String path)
path
- the path.public boolean isCollection()
public void setCollection(boolean collection)
collection
- whether this is a collection or not.public int getPathID()
public void setPathID(int pathID)
pathID
- the path id.public String getName()
public void setName(String name)
name
- the name.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |