public class ObjectPath extends java.lang.Object implements Identifier
| Constructor and Description |
|---|
ObjectPath(java.lang.String path)
Constructs a new object identifier
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the object IDs are equal.
|
java.lang.String |
getName()
Gets the name of the object (the last path component)
|
int |
hashCode()
Returns a hash code for this object id.
|
boolean |
isDirectory()
Returns true if this path represents a directory object.
|
java.lang.String |
toString()
Returns the identifier as a string
|
public ObjectPath(java.lang.String path)
path - the object ID as a stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isDirectory()