public class ReferenceSequenceAnnotation extends SequenceAnnotation
SequenceAnnotation that contains a reference
sequence. This sequence can be obtained using the method
getReferenceSequence().| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
The type of a
ReferenceSequenceAnnotation. |
| Constructor and Description |
|---|
ReferenceSequenceAnnotation(StringBuffer representation)
The standard constructor for the interface
Storable. |
ReferenceSequenceAnnotation(String identifier,
Sequence ref,
Result... results)
Creates a new
ReferenceSequenceAnnotation with identifier
identifier, reference sequence ref, and
additional annotation (that does not fit the SequenceAnnotation
definitions) given as a Result result. |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
getReferenceSequence()
Returns the reference sequence.
|
int |
hashCode() |
String |
toString() |
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
fromXML, getAnnotations, getIdentifier, getSubAnnotations, getTypefindColumn, getNumberOfResults, getResultAt, getResultForName, getResultspublic static final String TYPE
ReferenceSequenceAnnotation.public ReferenceSequenceAnnotation(String identifier, Sequence ref, Result... results)
ReferenceSequenceAnnotation with identifier
identifier, reference sequence ref, and
additional annotation (that does not fit the SequenceAnnotation
definitions) given as a Result result.identifier - the identifier of the annotationref - the reference sequenceresults - the additional annotationResultSet.ResultSet(Result)public ReferenceSequenceAnnotation(StringBuffer representation) throws NonParsableException
Storable.
Creates a new ReferenceSequenceAnnotation out of its XML representation.representation - the XML representation as StringBufferNonParsableException - if the ReferenceSequenceAnnotation could not be reconstructed
out of the XML representation (the StringBuffer
representation could not be parsed)SequenceAnnotation.SequenceAnnotation(StringBuffer),
Storablepublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.toXML in interface StorabletoXML in class SequenceAnnotationpublic String toString()
toString in class SequenceAnnotationpublic Sequence getReferenceSequence()
public int hashCode()
hashCode in class SequenceAnnotation