Enum Class Option
- All Implemented Interfaces:
Serializable
,Comparable<Option>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies whether to always use ontology prefix (if available) when generating vocabulary and model.Name of context which should be processed by the tool.Whether to automatically generate name (rdfs:label) and description (dc:description) fields.Whether to generate Javadoc from values ofrdfs:comment
annotations.Whether to automatically generate an entity class corresponding to owl:Thing.Whether to ignore failed imports.Configures annotation whose value should be used as name of the target Java class.Mapping file path.Property whose value represents the ontology IRI prefix.Target package for the generated classes.Configures whether properties with RDF langString range should be mapped toMultilingualString
typed fields.Specifies file containing ontology prefix mapping.Generic type of theProperties
attribute.Output directory name.Whether to interpret the whole ontology as integrity constraints.Whether to generate vocabulary constants as instances of OWLAPIIRI
. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
MAPPING_FILE
Mapping file path.Mapping file allows to map logical ontology IRI to its physical location (e.g. IRI to a local file path)
-
CONTEXT
Name of context which should be processed by the tool.Context is specified by annotating an axiom with
Constants.P_IS_INTEGRITY_CONSTRAINT_FOR
containing the name of the context. When it is specified, only axioms annotated with the context name are considered for transformation/vocabulary generation. -
WITH_IRIS
Whether to generate vocabulary constants as instances of OWLAPIIRI
.By default, they are String.
-
TARGET_DIR
Output directory name.Note that the generator will create subdirectories corresponding to the package into which the target classes are generated.
-
PACKAGE
Target package for the generated classes.Note that when generating the model, a
Constants.MODEL_PACKAGE
subpackage is put into the configured package for model classes. E.g., when generating intocz.cvut.kbss
, theVocabulary
will be in this package, but the model classes will be incz.cvut.kbss.model
. -
WHOLE_ONTOLOGY_AS_IC
Whether to interpret the whole ontology as integrity constraints.This supersedes
CONTEXT
and processes all axioms in the ontology. -
IGNORE_FAILED_IMPORTS
Whether to ignore failed imports.By default, the transformation/vocabulary generation will fail if an import cannot be resolved.
-
JAVA_CLASSNAME_ANNOTATION
Configures annotation whose value should be used as name of the target Java class.By default, the Java class name is derived from the class IRI.
-
PREFER_MULTILINGUAL_STRINGS
Configures whether properties with RDF langString range should be mapped toMultilingualString
typed fields.Defaults to
Defaults.PREFER_MULTILINGUAL_STRINGS
. If false, the fields will have typeString
. -
PROPERTIES_TYPE
Generic type of theProperties
attribute.Possible options are
PropertiesType.string
for<String, Set<String>>
orPropertiesType.object
for<String, Set<Object>>
. -
GENERATE_JAVADOC_FROM_COMMENT
Whether to generate Javadoc from values ofrdfs:comment
annotations.By default, OWL2Java will generate Javadoc from the first rdfs:comment it finds for each axiom. This leads to documentation being created for classes, their attributes and vocabulary constants.
-
GENERATE_ANNOTATION_FIELDS
Whether to automatically generate name (rdfs:label) and description (dc:description) fields. -
GENERATE_THING
Whether to automatically generate an entity class corresponding to owl:Thing. -
ONTOLOGY_PREFIX_PROPERTY
Property whose value represents the ontology IRI prefix. -
ALWAYS_USE_ONTOLOGY_PREFIX
Specifies whether to always use ontology prefix (if available) when generating vocabulary and model. -
PREFIX_MAPPING_FILE
Specifies file containing ontology prefix mapping.
-
-
Field Details
-
arg
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-