|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.moyoman.helper.HelperName
This class represents a helper name, e.g, org.moyoman.helper.joseki.dictionary.dict1.Dict1.
| Field Summary | |
private String |
full
The full name of the helper name. |
private static HashMap |
helperNames
The key is either the simple or full name, and the value is the HelperName object. |
private String |
simple
The simple name of the helper name. |
private HelperType |
type
The HelperType that this helper name is associated with. |
| Constructor Summary | |
protected |
HelperName(String simpleName,
String fullName,
HelperType helperType)
Create a new HelperName object. |
| Method Summary | |
boolean |
equals(Object o)
Compare this object with another one for equality. |
String |
getFullName()
Get the fully qualified name, e.g, org.moyoman.helper.joseki.dictionary.dict1.Dict1. |
static HelperName |
getHelperName(String name)
Get the helper name object with the given name. |
HelperType |
getHelperType()
Return the helper type that this helper name is associated with. |
String |
getSimpleName()
The helper name, e.g, Dict1. |
int |
hashCode()
Get the hash code for this object. |
String |
toString()
Return a String representation of this object. |
String |
typeAndNameString()
Return a string representing the helper name and associated helper type. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static HashMap helperNames
private HelperType type
private String simple
private String full
| Constructor Detail |
protected HelperName(String simpleName,
String fullName,
HelperType helperType)
simpleName - The helper name, e.g, Dict1,fullName - The full helper name, e.g, org.moyoman.joseki.dictionary.dict1.Dict1.helperType - The helper type.| Method Detail |
public static HelperName getHelperName(String name)
throws NoSuchDataException
name - Either the simple or full name.
NoSuchDataException - Thrown if the helper name does not exist.public String getFullName()
public String getSimpleName()
public HelperType getHelperType()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - The object to be compared with this one.
public String typeAndNameString()
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||