Package org.corpus_tools.pepper.common
Enum ModuleFitness.FitnessFeature
- java.lang.Object
-
- java.lang.Enum<ModuleFitness.FitnessFeature>
-
- org.corpus_tools.pepper.common.ModuleFitness.FitnessFeature
-
- All Implemented Interfaces:
Serializable,Comparable<ModuleFitness.FitnessFeature>
- Enclosing class:
- ModuleFitness
public static enum ModuleFitness.FitnessFeature extends Enum<ModuleFitness.FitnessFeature>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_DESCRIPTIONName of fitness feature determining whetherPepperModule.getDesc()is supportedHAS_NAMEName of health feature determining whether a module's name is set.HAS_PASSED_SELFTESTName of health feature determining whether the module passes the self test, if a self test is implemented.HAS_SELFTESTName of fitness feature determining whether the module provides a self test.HAS_SUPPLIER_CONTACTName of fitness feature determining whetherPepperModule.getSupplierContact()is supported.HAS_SUPPLIER_HPName of fitness feature determining whetherPepperModule.getSupplierHomepage()is supported.HAS_SUPPORTED_FORMATSName of fitness feature determining whetherPepperImporter.getSupportedFormats()PepperExporter.getSupportedFormats()is supported.IS_IMPORTABLEName of fitness feature determining whetherPepperImporter.isImportable(org.eclipse.emf.common.util.URI)is implemented.IS_IMPORTABLE_SEFTEST_DATAName of health feature determining whether the module is able to import the self test data, if a self test is implemented and module is an importer.IS_READY_TO_RUNName of health feature determining whether the module is ready to be ran in Pepper.IS_VALID_SELFTEST_DATAName of health feature determining whether the module the self test data are valid, if a self test is implemented and module is an importer or a manipulator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<ModuleFitness.FitnessFeature>getFitnessFeatures()Returns the names of the fitness feature.static Collection<ModuleFitness.FitnessFeature>getHealthFeatures()Returns the names of the fitness features taking part at health test.static ModuleFitness.FitnessFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static ModuleFitness.FitnessFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HAS_NAME
public static final ModuleFitness.FitnessFeature HAS_NAME
Name of health feature determining whether a module's name is set.
-
IS_READY_TO_RUN
public static final ModuleFitness.FitnessFeature IS_READY_TO_RUN
Name of health feature determining whether the module is ready to be ran in Pepper.
-
HAS_PASSED_SELFTEST
public static final ModuleFitness.FitnessFeature HAS_PASSED_SELFTEST
Name of health feature determining whether the module passes the self test, if a self test is implemented.
-
IS_IMPORTABLE_SEFTEST_DATA
public static final ModuleFitness.FitnessFeature IS_IMPORTABLE_SEFTEST_DATA
Name of health feature determining whether the module is able to import the self test data, if a self test is implemented and module is an importer.
-
IS_VALID_SELFTEST_DATA
public static final ModuleFitness.FitnessFeature IS_VALID_SELFTEST_DATA
Name of health feature determining whether the module the self test data are valid, if a self test is implemented and module is an importer or a manipulator.
-
HAS_SUPPLIER_CONTACT
public static final ModuleFitness.FitnessFeature HAS_SUPPLIER_CONTACT
Name of fitness feature determining whetherPepperModule.getSupplierContact()is supported.
-
HAS_SUPPLIER_HP
public static final ModuleFitness.FitnessFeature HAS_SUPPLIER_HP
Name of fitness feature determining whetherPepperModule.getSupplierHomepage()is supported.
-
HAS_DESCRIPTION
public static final ModuleFitness.FitnessFeature HAS_DESCRIPTION
Name of fitness feature determining whetherPepperModule.getDesc()is supported
-
HAS_SUPPORTED_FORMATS
public static final ModuleFitness.FitnessFeature HAS_SUPPORTED_FORMATS
Name of fitness feature determining whetherPepperImporter.getSupportedFormats()PepperExporter.getSupportedFormats()is supported.
Only forPepperImporterandPepperExporter.
-
HAS_SELFTEST
public static final ModuleFitness.FitnessFeature HAS_SELFTEST
Name of fitness feature determining whether the module provides a self test.
-
IS_IMPORTABLE
public static final ModuleFitness.FitnessFeature IS_IMPORTABLE
Name of fitness feature determining whetherPepperImporter.isImportable(org.eclipse.emf.common.util.URI)is implemented.
Only forPepperImporter.
-
-
Method Detail
-
values
public static ModuleFitness.FitnessFeature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ModuleFitness.FitnessFeature c : ModuleFitness.FitnessFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModuleFitness.FitnessFeature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getHealthFeatures
public static Collection<ModuleFitness.FitnessFeature> getHealthFeatures()
Returns the names of the fitness features taking part at health test. These are the features which makes a module able to be ran.- Returns:
-
getFitnessFeatures
public static Collection<ModuleFitness.FitnessFeature> getFitnessFeatures()
Returns the names of the fitness feature.- Returns:
-
-