|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.smf.impl.qualify.ElementTypeManager
ElementTypeManager keeps track of which types are associated with which subclass of AcceleratorNode. It is used for filtering nodes by type.
| Constructor Summary | |
ElementTypeManager()
Creates new ElementTypeManager |
|
| Method Summary | |
static ElementTypeManager |
defaultManager()
default element type manager |
boolean |
match(AcceleratorNode node,
java.lang.String type)
Check if the node is of the specified type. |
boolean |
match(java.lang.Class cls,
java.lang.String type)
Check if the class or one of its superclasses is associated with the type. |
void |
registerType(java.lang.Class cls,
java.lang.String type)
Register the type to specified class to be of the specified type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementTypeManager()
| Method Detail |
public static ElementTypeManager defaultManager()
public void registerType(java.lang.Class cls,
java.lang.String type)
public boolean match(AcceleratorNode node,
java.lang.String type)
public boolean match(java.lang.Class cls,
java.lang.String type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||