Utilities methods for all aXBench classes. More...
Static Public Member Functions | |
static Collection < IConfigurationElement > | getOperations () |
Returns a flat collection of all registered operations. | |
static Map< String, IConfigurationElement > | getOperationsWithClass () |
Returns a map of all registered operations with their classname as key. | |
static Map < IConfigurationElement, Collection < IConfigurationElement > > | getRegisteredOperations () |
Returns the provided operations with their group. | |
Static Private Attributes | |
static Comparator < IConfigurationElement > | compGroup |
Group comparator. | |
static Comparator < IConfigurationElement > | compOperation |
Operation comparator. | |
static Map < IConfigurationElement, Collection < IConfigurationElement > > | mapRegisteredOperations = null |
Singleton storage for registered operations, therefore the registered operations are read only once. |
Utilities methods for all aXBench classes.
static Collection<IConfigurationElement> de.fraunhofer.isst.axbench.AXBenchUtilities.getOperations | ( | ) | [static] |
Returns a flat collection of all registered operations.
static Map<String, IConfigurationElement> de.fraunhofer.isst.axbench.AXBenchUtilities.getOperationsWithClass | ( | ) | [static] |
Returns a map of all registered operations with their classname as key.
static Map<IConfigurationElement, Collection<IConfigurationElement> > de.fraunhofer.isst.axbench.AXBenchUtilities.getRegisteredOperations | ( | ) | [static] |
Returns the provided operations with their group.
The map is sorted according to the comparators.
Comparator<IConfigurationElement> de.fraunhofer.isst.axbench.AXBenchUtilities.compGroup [static, private] |
new Comparator<IConfigurationElement>() { public int compare(IConfigurationElement elm1, IConfigurationElement elm2) { return elm1.getName().compareToIgnoreCase(elm2.getName()); } }
Group comparator.
Comparison bases on group name.
Comparator<IConfigurationElement> de.fraunhofer.isst.axbench.AXBenchUtilities.compOperation [static, private] |
new Comparator<IConfigurationElement>() { public int compare(IConfigurationElement elm1, IConfigurationElement elm2) { String sCompare1 = elm1.getAttribute(ExtensionAttributes.LABEL.getLabel()); String sCompare2 = elm2.getAttribute(ExtensionAttributes.LABEL.getLabel()); if (sCompare1.compareToIgnoreCase(sCompare2) != 0) { return sCompare1.compareToIgnoreCase(sCompare2); } sCompare1 = elm1.getAttribute(ExtensionAttributes.PROVIDER.getLabel()); sCompare2 = elm2.getAttribute(ExtensionAttributes.PROVIDER.getLabel()); if (sCompare1.compareToIgnoreCase(sCompare2) != 0) { return sCompare1.compareToIgnoreCase(sCompare2); } sCompare1 = elm1.getAttribute(ExtensionAttributes.OPERATIONCLASS.getLabel()); sCompare2 = elm2.getAttribute(ExtensionAttributes.OPERATIONCLASS.getLabel()); return sCompare1.compareTo(sCompare2); } }
Operation comparator.
Comparison bases on name, then on provider.
Map<IConfigurationElement, Collection<IConfigurationElement> > de.fraunhofer.isst.axbench.AXBenchUtilities.mapRegisteredOperations = null [static, private] |
Singleton storage for registered operations, therefore the registered operations are read only once.