public class LocatedSequenceAnnotation extends SequenceAnnotation
SequenceAnnotation
that has a position on the sequence,
e.g for transcription start sites or intron-exon junctions.Constructor and Description |
---|
LocatedSequenceAnnotation(int position,
String type,
String identifier,
Collection<Result> results)
Creates a new
LocatedSequenceAnnotation of type type
with identifier identifier and additional annotation (that
does not fit the SequenceAnnotation definitions) given as a
Collection of Result s result . |
LocatedSequenceAnnotation(int position,
String type,
String identifier,
Result... results)
Creates a new
LocatedSequenceAnnotation of type type
with identifier identifier and additional annotation (that
does not fit the SequenceAnnotation definitions) given as an
array of Result s result . |
LocatedSequenceAnnotation(int position,
String type,
String identifier,
SequenceAnnotation[] annotations,
Result... additionalAnnotation)
Creates a new
LocatedSequenceAnnotation of type type
with identifier identifier , additional annotation (that does
not fit the SequenceAnnotation definitions) given as an array of
Result s additionalAnnotation and sub-annotations
annotations . |
LocatedSequenceAnnotation(StringBuffer representation)
The standard constructor for the interface
Storable . |
LocatedSequenceAnnotation(String type,
String identifier,
LocatedSequenceAnnotation[] annotations,
Result... additionalAnnotation)
Creates a new
LocatedSequenceAnnotation of type type
with identifier identifier , additional annotation (that does
not fit the SequenceAnnotation definitions) given as an array of
Result s additionalAnnotation and sub-annotations
annotations . |
Modifier and Type | Method and Description |
---|---|
protected void |
fromXML(StringBuffer representation)
Parses the contents of a
ResultSet from its XML representation as
returned by ResultSet.toXML() . |
int |
getPosition()
Returns the position of this
LocatedSequenceAnnotation on the
sequence. |
String |
toString() |
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
getAnnotations, getIdentifier, getSubAnnotations, getType, hashCode
findColumn, getNumberOfResults, getResultAt, getResultForName, getResults
public LocatedSequenceAnnotation(int position, String type, String identifier, Result... results)
LocatedSequenceAnnotation
of type type
with identifier identifier
and additional annotation (that
does not fit the SequenceAnnotation
definitions) given as an
array of Result
s result
.position
- the position of the LocatedSequenceAnnotation
on the
sequencetype
- the type of the annotationidentifier
- the identifier of the annotationresults
- the additional annotationSequenceAnnotation.SequenceAnnotation(String, String, Result[][])
public LocatedSequenceAnnotation(int position, String type, String identifier, Collection<Result> results)
LocatedSequenceAnnotation
of type type
with identifier identifier
and additional annotation (that
does not fit the SequenceAnnotation
definitions) given as a
Collection
of Result
s result
.position
- the position of the LocatedSequenceAnnotation
on the
sequencetype
- the type of the annotationidentifier
- the identifier of the annotationresults
- the additional annotationSequenceAnnotation.SequenceAnnotation(String, String, Collection)
public LocatedSequenceAnnotation(int position, String type, String identifier, SequenceAnnotation[] annotations, Result... additionalAnnotation)
LocatedSequenceAnnotation
of type type
with identifier identifier
, additional annotation (that does
not fit the SequenceAnnotation
definitions) given as an array of
Result
s additionalAnnotation
and sub-annotations
annotations
.position
- the position of the LocatedSequenceAnnotation
on the
sequencetype
- the type of the annotationidentifier
- the identifier of the annotationannotations
- the sub-annotationsadditionalAnnotation
- the additional annotationSequenceAnnotation.SequenceAnnotation(String, String,
SequenceAnnotation[], Result...)
public LocatedSequenceAnnotation(String type, String identifier, LocatedSequenceAnnotation[] annotations, Result... additionalAnnotation)
LocatedSequenceAnnotation
of type type
with identifier identifier
, additional annotation (that does
not fit the SequenceAnnotation
definitions) given as an array of
Result
s additionalAnnotation
and sub-annotations
annotations
. The position of this
LocatedSequenceAnnotation
is the minimum of the positions of
annotations
.type
- the type of the annotationidentifier
- the identifier of the annotationannotations
- the sub-annotationsadditionalAnnotation
- the additional annotationSequenceAnnotation.SequenceAnnotation(String, String,
SequenceAnnotation[], Result...)
public LocatedSequenceAnnotation(StringBuffer representation) throws NonParsableException
Storable
.
Creates a new LocatedSequenceAnnotation
out of its XML
representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the LocatedSequenceAnnotation
could not be
reconstructed out of the XML representation (the
StringBuffer
representation
could not be
parsed)SequenceAnnotation.SequenceAnnotation(StringBuffer)
,
Storable
protected void fromXML(StringBuffer representation) throws NonParsableException
ResultSet
ResultSet
from its XML representation as
returned by ResultSet.toXML()
.fromXML
in class SequenceAnnotation
representation
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedpublic StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.toXML
in interface Storable
toXML
in class SequenceAnnotation
public int getPosition()
LocatedSequenceAnnotation
on the
sequence.public String toString()
toString
in class SequenceAnnotation