|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.FaceId
public class FaceId
A class that represents the Id of a Face. It consists of the id of the
face's parent and the name of the face.
| Constructor Summary | |
|---|---|
FaceId(java.lang.String parentId,
java.lang.String faceName)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
|
java.lang.String |
getParentId()
|
int |
hashCode()
|
boolean |
isAnonymous()
|
static FaceId |
parseFaceReference(FaceId relative,
java.lang.String relativeId)
Parses a string of the form '<parentId>[<faceName>]' to generate a new faceid based on the current face. |
static FaceId |
parseFaceReference(java.lang.String string)
Parses a string of the form '<parentId>[<faceName>]'. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FaceId(java.lang.String parentId,
java.lang.String faceName)
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getParentId()
public boolean isAnonymous()
public java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public static FaceId parseFaceReference(FaceId relative,
java.lang.String relativeId)
relative - the face that defines the parent for relative ids.relativeId - the face id that is to be parsed.
public static FaceId parseFaceReference(java.lang.String string)
string - the face id of the form form '<parentId>[<faceName>]'.
java.lang.IllegalArgumentException - if the string doesn't confirm the the specified standard.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||