|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.ID
public class ID
The ID of a content element. The id includes the name of the Repository where it resides and also the opaque unique id given by the repository. When VCR client code creates a ContentEntity, such as an ObjectClass, the repositoryName must be set, but the uid would be null (since it hasn't been created yet).
Constructor Summary | |
---|---|
ID()
Empty constructor. |
|
ID(String uid)
Constructor with just the id. |
|
ID(String repositoryName,
String uid)
Constructor with repositoryName and opaque uid. |
Method Summary | |
---|---|
Object |
clone()
Clones an ID. |
int |
compareTo(Object obj)
Compares this ID to obj |
boolean |
equals(Object o)
Checks equality. |
static ID |
fromString(String id)
Parses an id in path format and creates an ID instance from it. |
String |
getRepositoryName()
Gets the name of the repository where the content element resides. |
String |
getUid()
Retrieve the opaque repository unique id, as configured by the repository, for the content element. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
hasUid()
Returns true if the uid is neither null nor the empty String. |
void |
setRepositoryName(String repositoryName)
Sets the name of the repository where the content element resides. |
void |
setUid(String uid)
Sets the repository unique id for the content element. |
String |
toString()
Returns ID in unix-path like format. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ID()
public ID(String uid)
public ID(String repositoryName, String uid)
Method Detail |
---|
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
public String getUid()
public void setUid(String uid)
public boolean hasUid()
public static ID fromString(String id)
id
- in the format /repository/uid
public String toString()
toString
in class Object
public int compareTo(Object obj)
public boolean equals(Object o)
equals
in class Object
o
- the object to check equality on.
public int hashCode()
hashCode
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If the clone fails.
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |