|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.helper.HelperType
This class represents a helper type, e.g, RulesHelper. Only one instance is created for each type.
Field Summary | |
private String |
full
The full name, e.g, org.moyoman.helper.board.rules.RulesHelper. |
private static HashMap |
hm
The key is the simple or full name, and the value is the HelperType object. |
private ComponentType |
parent
The parent type of this one. |
private String |
simple
The simple name, e.g, RulesHelper. |
Constructor Summary | |
protected |
HelperType(String s,
String f)
Create a new HelperType object. |
protected |
HelperType(String s,
String f,
ComponentType comp)
|
Method Summary | |
boolean |
equals(Object o)
Compare this object with another for equality. |
String |
getFullName()
Return the full type, e.g, org.moyoman.helper.board.rules.RulesHelper. |
static HelperType |
getHelperType(String name)
Get the helper type object of the given name. |
ComponentType |
getParent()
Get the ComponentType with which this HelperType is associated. |
String |
getSimpleName()
Return the interface name, e.g, RulesHelper. |
int |
hashCode()
Get a hash code for this object. |
protected void |
setParent(ComponentType comp)
Set the parent type of this helper type. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static HashMap hm
private String simple
private String full
private ComponentType parent
Constructor Detail |
protected HelperType(String s, String f) throws IllegalArgumentException, DataAlreadyExistsException
s
- The simple namef
- The full name.
IllegalArgumentException
- Thrown if either s or f is null.
DataAlreadyExistsException
protected HelperType(String s, String f, ComponentType comp) throws IllegalArgumentException, DataAlreadyExistsException
Method Detail |
protected void setParent(ComponentType comp)
comp
- The parent of this helper type.public String getFullName()
public ComponentType getParent()
public String getSimpleName()
public static HelperType getHelperType(String name) throws NoSuchDataException
name
- The name of the helper type object.
NoSuchDataException
- Thrown if there is not HelperType object by that name.public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
o
- The object being compared with this one.
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |