|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.helper.HelperConfigTool
This application provides the user with an interface for editing the helper configuration files. Specifically, the names of helper types, and the names and order of helper implementions for each module type can be edited, as well as the association of a helper type with a component type.
Field Summary | |
private HelperConfig |
hc
The HelperConfig object. |
Constructor Summary | |
HelperConfigTool()
Create the HelperConfigTool object. |
Method Summary | |
HelperName |
addHelperName(String simple,
String full,
HelperType type)
Add a helper name for the helper type. |
HelperType |
addHelperType(String simple,
String full,
ComponentType parent)
Add a new helper type. |
void |
addMode(Mode newMode,
Mode oldMode)
Create entries for the new user defined mode. |
void |
cancel()
Undo all operations performed since the last save() or cancel() call. |
void |
deleteAllHelperTypes(ModuleType mt)
Delete all the helper types associated with a given module type. |
void |
deleteHelperName(HelperName hn)
Delete the helper name. |
void |
deleteHelperType(HelperType ht)
Delete the helper type. |
void |
deleteMode(Mode mode)
Delete the mode. |
HelperType[] |
getAllHelperTypes()
Return all HelperType objects. |
HelperType[] |
getAllHelperTypes(HelperType ht)
Return all HelperType objects which have the given helper type as their parent. |
HelperType[] |
getAllHelperTypes(ModuleType mt)
Return all HelperType objects which have the given module type as their parent. |
HelperName[] |
getHelperNames(HelperType ht,
Mode m)
Get the ordered helper names for a specific helper type and mode. |
void |
orderHelperNames(HelperName[] hn,
HelperType ht,
Mode mode)
Set the order of helper names for a given helper type and mode. |
void |
save()
Save the results of all operations performed since the last save() or cancel() call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private HelperConfig hc
Constructor Detail |
public HelperConfigTool()
Method Detail |
public HelperType[] getAllHelperTypes()
public HelperType[] getAllHelperTypes(HelperType ht)
ht
- The HelperType for which the associated HelperType objects are being retrieved.
public HelperType[] getAllHelperTypes(ModuleType mt)
mt
- The ModuleType for which the associated HelperType objects are being retrieved.
public HelperName[] getHelperNames(HelperType ht, Mode m)
ht
- The HelperType in question.m
- The mode in question.
public HelperType addHelperType(String simple, String full, ComponentType parent) throws NoSuchDataException, InconsistentStateException
simple
- The simple name.full
- The full nameparent
- The component type with which this helper type is associated.
NoSuchDataException
- Thrown if the parent has been deleted.
InconsistentStateException
- Thrown if internal inconsistencies prevent
this operation from succeeding.public void deleteHelperType(HelperType ht) throws PermissionsException, NoSuchDataException
ht
- The helper type to be deleted.
PermissionsException
- Thrown if the helper type has helper names associated with it.
NoSuchDataException
- Thrown if the helper type has already been deleted.public void deleteAllHelperTypes(ModuleType mt) throws PermissionsException, NoSuchDataException
mt
- The module type.
PermissionsException
- Thrown if the helper type has helper names associated with it.
NoSuchDataException
- Thrown if the module type has already been deleted.public HelperName addHelperName(String simple, String full, HelperType type) throws NoSuchDataException, DataAlreadyExistsException
simple
- The simple name.full
- The full name.type
- The helper type with which this helper name is associated.
NoSuchDataException
- Thrown if the helper type has already been deleted.
DataAlreadyExistsException
- Thrown if the helper name is not unique.public void deleteHelperName(HelperName hn)
hn
- The helper name to delete.public void orderHelperNames(HelperName[] hn, HelperType ht, Mode mode)
hn
- The helper names in order from most to least preferred.ht
- The helper type with which these helper names are associated.mode
- The mode for which the order is being set.public void addMode(Mode newMode, Mode oldMode) throws NoSuchDataException
newMode
- The new mode.oldMode
- The old mode.
Exception
- Thrown if the old mode does not exist,
or if the new mode already exists.
NoSuchDataException
public void deleteMode(Mode mode) throws NoSuchDataException
mode
- The mode to be deleted.
NoSuchDataException
- Thrown if there is no such mode.public void cancel() throws InternalErrorException
InternalErrorException
- Thrown if the operation fails for any reason.public void save() throws InternalErrorException
InternalErrorException
- Thrown if the operation fails for any reason.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |