|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.core.model.portal.PortalObjectId
public class PortalObjectId
A composite id for a portal object in the scope of its container.
Field Summary | |
---|---|
static char |
NAMESPACE_SEPARATOR
|
Constructor Summary | |
---|---|
PortalObjectId(java.lang.String namespace,
PortalObjectPath path)
Build a new portal object id. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getNamespace()
Returns the portal object namespace. |
PortalObjectPath |
getPath()
Returns the portal object path. |
int |
hashCode()
|
static PortalObjectId |
parse(java.lang.String idValue,
PortalObjectPath.Format format)
Parse a portal object id given its string representation. |
static PortalObjectId |
parse(java.lang.String namespace,
java.lang.String pathValue,
PortalObjectPath.Format format)
Parse a portal object id given the namespace and the path string representation. |
java.lang.String |
toString()
Returns the canonical representation. |
java.lang.String |
toString(PortalObjectPath.Format format)
Returns the portal object id string value. |
static java.lang.String |
toString(java.lang.String namespace,
PortalObjectPath path,
PortalObjectPath.Format format)
Format a portal object id values to a string value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char NAMESPACE_SEPARATOR
Constructor Detail |
---|
public PortalObjectId(java.lang.String namespace, PortalObjectPath path) throws java.lang.IllegalArgumentException
namespace
- the namespace valuepath
- the path object
java.lang.IllegalArgumentException
- if any argument is nullMethod Detail |
---|
public java.lang.String getNamespace()
public PortalObjectPath getPath()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static PortalObjectId parse(java.lang.String idValue, PortalObjectPath.Format format) throws java.lang.IllegalArgumentException
idValue
- the id string valueformat
- the format
java.lang.IllegalArgumentException
- if any argument is null or not well formedpublic static PortalObjectId parse(java.lang.String namespace, java.lang.String pathValue, PortalObjectPath.Format format) throws java.lang.IllegalArgumentException
namespace
- the namespace valuepathValue
- the path valueformat
- the path format
java.lang.IllegalArgumentException
- if any argument is null or not well formedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(PortalObjectPath.Format format) throws java.lang.IllegalArgumentException
format
- the path format
java.lang.IllegalArgumentException
- if the format argument is nullpublic static java.lang.String toString(java.lang.String namespace, PortalObjectPath path, PortalObjectPath.Format format) throws java.lang.IllegalArgumentException
namespace
- the id valuepath
- the id pathformat
- the desired format
java.lang.IllegalArgumentException
- if any argument is null or not well formedpublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |