Package org.apache.uima.tools.cvd
Class MarkupExtent
java.lang.Object
org.apache.uima.tools.cvd.MarkupExtent
Represents an element in a list of markup extents. Knows about the length of the extent, as well
as the depth of markup. Depth of markup means, how many annotations cover this extent?
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The end.private int
The markup depth.private int
The start. -
Constructor Summary
ConstructorsConstructorDescriptionMarkupExtent
(int start, int end, int markupDepth) Instantiates a new markup extent. -
Method Summary
-
Field Details
-
start
private int startThe start. -
end
private int endThe end. -
markupDepth
private int markupDepthThe markup depth.
-
-
Constructor Details
-
MarkupExtent
public MarkupExtent(int start, int end, int markupDepth) Instantiates a new markup extent.- Parameters:
start
- the startend
- the endmarkupDepth
- the markup depth
-
-
Method Details
-
getLength
public int getLength()Gets the length.- Returns:
- the length
-
getMarkupDepth
public int getMarkupDepth()Gets the markup depth.- Returns:
- the markup depth
-
getEnd
public int getEnd()Gets the end.- Returns:
- int
-
getStart
public int getStart()Gets the start.- Returns:
- int
-