Package org.snpeff.nextProt
Class NextProtXmlAnnotation
- java.lang.Object
-
- org.snpeff.nextProt.NextProtXmlNode
-
- org.snpeff.nextProt.NextProtXmlAnnotation
-
public class NextProtXmlAnnotation extends NextProtXmlNode
Mimics the 'annotation' tag in a NextProt XML file- Author:
- Pablo Cingolani
-
-
Constructor Summary
Constructors Constructor Description NextProtXmlAnnotation(NextProtXmlEntry entry, java.lang.String category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMarkers(NextProtMarkerFactory markersFactory)Create all markers for this annotationjava.lang.Stringdescription()java.lang.StringgetCategory()CvTermgetCvTerm()java.lang.StringgetDescription()java.util.List<Location>getLocations()booleanhasCvTerm()booleanisEmpty()voidlocationBeginPos(org.xml.sax.Attributes attributes)voidlocationEnd()End of location tagvoidlocationEndPos(org.xml.sax.Attributes attributes)voidlocationIsoformStart(java.lang.String accession)voidlocationStart(org.xml.sax.Attributes attributes)java.lang.Stringname()Return an annotation "name" Clean up characters to make them compatible with VCF annotationsvoidsetCvTerm(CvTerm cvTerm)voidsetDescription(java.lang.String description)java.lang.StringtoString()java.lang.StringtoString(java.lang.String prefix)-
Methods inherited from class org.snpeff.nextProt.NextProtXmlNode
getAccession
-
-
-
-
Constructor Detail
-
NextProtXmlAnnotation
public NextProtXmlAnnotation(NextProtXmlEntry entry, java.lang.String category)
-
-
Method Detail
-
addMarkers
public void addMarkers(NextProtMarkerFactory markersFactory)
Create all markers for this annotation
-
description
public java.lang.String description()
-
getCategory
public java.lang.String getCategory()
-
getCvTerm
public CvTerm getCvTerm()
-
setCvTerm
public void setCvTerm(CvTerm cvTerm)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getLocations
public java.util.List<Location> getLocations()
-
hasCvTerm
public boolean hasCvTerm()
-
isEmpty
public boolean isEmpty()
-
locationBeginPos
public void locationBeginPos(org.xml.sax.Attributes attributes)
-
locationEnd
public void locationEnd()
End of location tag
-
locationEndPos
public void locationEndPos(org.xml.sax.Attributes attributes)
-
locationIsoformStart
public void locationIsoformStart(java.lang.String accession)
-
locationStart
public void locationStart(org.xml.sax.Attributes attributes)
-
name
public java.lang.String name()
Return an annotation "name" Clean up characters to make them compatible with VCF annotations
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String prefix)
-
-