|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.information.metadata.PathUrl
This class encapsulates the SBIP formatted URL. IT has a protocol of SBIP, and has a repository name, a root tree name, the path, the entity name, and the type. Instances can be set as write-protected, so the URL can't be changed out from under an object that may be using it to represent a specific entity in the repository. The clone method can be used to create a copy of an instance that can be modified.
| Constructor Summary | |
PathUrl(String url)
Construct a new PathUrl from a URL string. |
|
PathUrl(String repository,
String rootTree,
String path,
String name,
String type)
Construct a new PathUrl from the URL components. |
|
| Method Summary | |
Object |
clone()
Create a copy of this object. |
String |
getName()
Get the name of the object. |
String |
getPath()
Get the path for this object. |
String |
getRepository()
Get the string with the repository name. |
String |
getRootTree()
Get the name of the root Tree for this item. |
String |
getType()
Get the type of the object. |
boolean |
isWritable()
Return the flag indicating if this instance is write-protected. |
void |
setName(String name)
Set the name of the object. |
void |
setPath(String path)
Set the path from the root folder to the object. |
void |
setRepository(String repository)
Set the name of the repository for this object. |
void |
setRootTree(String tree)
Set the root tree for this item. |
void |
setType(String type)
Set the type for the object. |
void |
setUnwritable()
Make this instance write-protected. |
String |
toString()
Return the string representation of this URL. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PathUrl(String url)
url - A string of the form SBIP://repository/root[/path]/name[(type)]
public PathUrl(String repository,
String rootTree,
String path,
String name,
String type)
repository - The name of the repository the entity resides in.rootTree - The name of the tree where the entity resides.path - The path to the object.type - The type string for the object.| Method Detail |
public Object clone()
clone in class Objectpublic boolean isWritable()
public void setUnwritable()
public String getRepository()
public void setRepository(String repository)
repository - The name of the repository this object resides in.IllegalStateException - If the instance is write-protected.public String getRootTree()
public void setRootTree(String tree)
tree - The root tree name under which this item resides.IllegalStateException - if the instance is write-protected.public String getPath()
public void setPath(String path)
path - The path of the object.IllegalStateException - If the instance is write-protected.public String getName()
public void setName(String name)
name - The repository name of the objectIllegalStateException - If the instance is write-protected.public String getType()
public void setType(String type)
type - The type for the object.IllegalStateException - If the instance is write-protected.public String toString()
toString in class Object
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||