public class SinglePositionSequenceAnnotation extends LocatedSequenceAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
SinglePositionSequenceAnnotation.Type
This
enum defines possible types of a
SinglePositionSequenceAnnotation . |
Constructor and Description |
---|
SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type,
String identifier,
int position)
Creates a new
SinglePositionSequenceAnnotation of type
type with identifier identifier and position
position . |
SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type,
String identifier,
int position,
Result... additionalAnnotation)
Creates a new
SinglePositionSequenceAnnotation of type
type with identifier identifier , position
position and additional annotations
additionalAnnotation . |
SinglePositionSequenceAnnotation(StringBuffer representation)
The standard constructor for the interface
Storable . |
fromXML, getPosition, toString, toXML
getAnnotations, getIdentifier, getSubAnnotations, getType, hashCode
findColumn, getNumberOfResults, getResultAt, getResultForName, getResults
public SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type, String identifier, int position)
SinglePositionSequenceAnnotation
of type
type
with identifier identifier
and position
position
.position
- the position of the SinglePositionSequenceAnnotation
on the sequencetype
- the type of the annotationidentifier
- the identifier of the annotationLocatedSequenceAnnotation.LocatedSequenceAnnotation(int, String,
String, Result...)
public SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type, String identifier, int position, Result... additionalAnnotation)
SinglePositionSequenceAnnotation
of type
type
with identifier identifier
, position
position
and additional annotations
additionalAnnotation
.position
- the position of the SinglePositionSequenceAnnotation
on the sequencetype
- the type of the annotationidentifier
- the identifier of the annotationadditionalAnnotation
- the additional annotationLocatedSequenceAnnotation.LocatedSequenceAnnotation(int, String,
String, Result...)
public SinglePositionSequenceAnnotation(StringBuffer representation) throws NonParsableException
Storable
.
Creates a new SinglePositionSequenceAnnotation
out of its XML
representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the SinglePositionSequenceAnnotation
could not be
reconstructed out of the XML representation (the
StringBuffer
representation
could not be
parsed)LocatedSequenceAnnotation.LocatedSequenceAnnotation(StringBuffer)
,
Storable