| 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 unique id given by the repository.
| Constructor Summary | |
|---|---|
ID()
Empty constructor.  | 
|
ID(String uid)
Constructor with just the id.  | 
|
ID(String repositoryName,
   String uid)
Constructor with repositoryName and uid.  | 
|
| Method Summary | |
|---|---|
 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()
Gets the repository unique id for the content element.  | 
 int | 
hashCode()
Returns a hash code value for the object.  | 
 boolean | 
hasUid()
Returns true if the id is not null and not an 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 | 
|---|
clone, 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 Objectpublic int compareTo(Object obj)
public boolean equals(Object o)
equals in class Objecto - the object to check equality on.
public int hashCode()
hashCode in class Object
  | 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||