Package org.aksw.qa.annotation.util
Enum Class NifEverything.NifProperty
- All Implemented Interfaces:
Serializable,Comparable<NifEverything.NifProperty>,java.lang.constant.Constable
- Enclosing class:
- NifEverything
Wraps implementations of
Marking. For the annotations we do here,
we only need annotations with (offset, length and uriList) This Enum
helps to get some means of generalization.- Author:
- Jonathan
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWill annotate in NIF with:Will annotate in NIF with: -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.aksw.gerbil.transfer.nif.MarkinggetInstanceWith(int offset, int len, List<String> uris)static NifEverything.NifPropertyReturns the enum constant of this class with the specified name.static NifEverything.NifProperty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TAIDENTREF
Will annotate in NIF with:itsrdf:taIdentRef
-
TACLASSREF
Will annotate in NIF with:itsrdf:taClassRef
-
-
Constructor Details
-
NifProperty
private NifProperty()
-
-
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
-
getInstanceWith
public abstract org.aksw.gerbil.transfer.nif.Marking getInstanceWith(int offset, int len, List<String> uris)- Parameters:
offset- Offset of the annotated word respective to sentence startlen- length of annotated worduris- list of annotations- Returns:
- a new instance of
Marking
-