Example usage for org.jdom2 Element addContent

List of usage examples for org.jdom2 Element addContent

Introduction

In this page you can find the example usage for org.jdom2 Element addContent.

Prototype

@Override
public Element addContent(final Collection<? extends Content> newContent) 

Source Link

Document

Appends all children in the given collection to the end of the content list.

Usage

From source file:com.ohnosequences.xml.model.genome.feature.Feature.java

License:Open Source License

public void setEvenAxisPalindromicityResult(PalindromicityResultXML result) {
    root.removeChildren(EVEN_AXIS_PALINDROMICITY_TAG_NAME);
    Element elem = new Element(EVEN_AXIS_PALINDROMICITY_TAG_NAME);
    elem.addContent(result.getRoot());
    root.addContent(elem);//from   w  w  w.j  a v  a  2s.co  m
}

From source file:com.ohnosequences.xml.model.genome.feature.Feature.java

License:Open Source License

public void setMaxWordLengthOddAxisPalindromicityResult(PalindromicityResultXML result) {
    root.removeChildren(MAX_WORD_LENGTH_ODD_AXIS_PALINDROMICITY_TAG_NAME);
    Element elem = new Element(MAX_WORD_LENGTH_ODD_AXIS_PALINDROMICITY_TAG_NAME);
    elem.addContent(result.getRoot());
    root.addContent(elem);//  w  ww  .  j  a  v a  2  s .  c o m
}

From source file:com.ohnosequences.xml.model.genome.feature.Feature.java

License:Open Source License

public void setMaxWordLengthEvenAxisPalindromicityResult(PalindromicityResultXML result) {
    root.removeChildren(MAX_WORD_LENGTH_EVEN_AXIS_PALINDROMICITY_TAG_NAME);
    Element elem = new Element(MAX_WORD_LENGTH_EVEN_AXIS_PALINDROMICITY_TAG_NAME);
    elem.addContent(result.getRoot());
    root.addContent(elem);/*from   w  ww  .jav  a  2  s.  c o  m*/
}

From source file:com.ohnosequences.xml.model.go.GoAnnotationXML.java

License:Open Source License

public void addAnnotatorGoTerm(GoTermXML term) {
    initAnnotatorGoTermsTag();//ww  w.j av a2  s .c  o m
    Element annotators = root.getChild(ANNOTATOR_GO_TERMS_TAG_NAME);
    annotators.addContent(term.asJDomElement());
}

From source file:com.ohnosequences.xml.model.go.GoAnnotationXML.java

License:Open Source License

public void addProteinAnnotation(ProteinXML protein) {
    initProteinAnnotatiosTag();//from ww w .  jav a  2 s .  c  om
    Element proteins = root.getChild(PROTEIN_ANNOTATIONS_TAG_NAME);
    proteins.addContent(protein.asJDomElement());
}

From source file:com.ohnosequences.xml.model.go.GOSlimXML.java

License:Open Source License

public void addGoTermLostNotIncludedInSlimSet(GoTermXML term) {
    Element elem = initGoTermLostNotIncludedInSlimSetTag();
    elem.addContent(term.asJDomElement());
}

From source file:com.ohnosequences.xml.model.go.GoTermXML.java

License:Open Source License

public void setProteinAnnotationLeadingToSlimTerm(GoTermXML goTerm) {
    initProteinAnnotationLeadingToSlimTermTag();
    Element elem = this.root.getChild(PROTEIN_ANNOTATION_LEADING_TO_SLIM_TERM);
    elem.removeChildren(GoTermXML.TAG_NAME);
    elem.addContent(goTerm.asJDomElement());
}

From source file:com.ohnosequences.xml.model.Hit.java

License:Open Source License

public void addHsp(Hsp hsp) {
    Element hsps = initHitHspsTag();
    hsps.addContent(hsp.getRoot());
}

From source file:com.ohnosequences.xml.model.HspSet.java

License:Open Source License

public XMLElement toXML() {
    XMLElement temp = new XMLElement(new Element(TAG_NAME));
    Hit tempHit = new Hit();
    tempHit.setHitDef(hit.getHitDef());/*  w  w w .ja  v a 2s  . co m*/
    tempHit.setUniprotID(hit.getUniprotID());
    temp.addChild(tempHit);
    temp.addChild(new XMLElement(new Element(HSPS_TAG_NAME)));
    Element hsps = temp.getRoot().getChild(HSPS_TAG_NAME);
    for (Hsp hsp : array) {
        hsps.addContent(hsp.getRoot());
    }

    return temp;
}

From source file:com.ohnosequences.xml.model.mg7.ReadResultXML.java

License:Open Source License

public void addHit(Hit hit) {
    Element hits = initHitsTag();
    hits.addContent(hit.getRoot());
}