Package org.incenp.obofoundry.sssom.owl
Enum OWLHelper.UpdateMode
- java.lang.Object
-
- java.lang.Enum<OWLHelper.UpdateMode>
-
- org.incenp.obofoundry.sssom.owl.OWLHelper.UpdateMode
-
- All Implemented Interfaces:
Serializable,Comparable<OWLHelper.UpdateMode>
- Enclosing class:
- OWLHelper
public static enum OWLHelper.UpdateMode extends Enum<OWLHelper.UpdateMode>
Modes of operation for theOWLHelper.updateMappingSet(MappingSet, OWLOntology, String, boolean, EnumSet)method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_MISSINGRemoves any mapping whose subject or object does not exist in the ontology.DELETE_OBSOLETERemoves any mapping whose subject or object is marked as obsolete.ONLY_OBJECTOnly consider the object side of a mapping.ONLY_SUBJECTOnly consider the subject side of a mapping.UPDATE_LABELUpdates the object and subject labels from the labels of the corresponding entities in the ontology.UPDATE_SOURCEIf the subject (respectively the object) exists in the ontology, sets thesubject_source(respectively theobject_source) field to the ontology IRI.
-
Field Summary
Fields Modifier and Type Field Description static EnumSet<OWLHelper.UpdateMode>ALL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OWLHelper.UpdateModevalueOf(String name)Returns the enum constant of this type with the specified name.static OWLHelper.UpdateMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_LABEL
public static final OWLHelper.UpdateMode UPDATE_LABEL
Updates the object and subject labels from the labels of the corresponding entities in the ontology.
-
UPDATE_SOURCE
public static final OWLHelper.UpdateMode UPDATE_SOURCE
If the subject (respectively the object) exists in the ontology, sets thesubject_source(respectively theobject_source) field to the ontology IRI.
-
DELETE_MISSING
public static final OWLHelper.UpdateMode DELETE_MISSING
Removes any mapping whose subject or object does not exist in the ontology.
-
DELETE_OBSOLETE
public static final OWLHelper.UpdateMode DELETE_OBSOLETE
Removes any mapping whose subject or object is marked as obsolete.
-
ONLY_SUBJECT
public static final OWLHelper.UpdateMode ONLY_SUBJECT
Only consider the subject side of a mapping.
-
ONLY_OBJECT
public static final OWLHelper.UpdateMode ONLY_OBJECT
Only consider the object side of a mapping.
-
-
Field Detail
-
ALL
public static final EnumSet<OWLHelper.UpdateMode> ALL
-
-
Method Detail
-
values
public static OWLHelper.UpdateMode[] 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 (OWLHelper.UpdateMode c : OWLHelper.UpdateMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OWLHelper.UpdateMode 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
-
-