List of usage examples for org.jdom2 Element Element
public Element(final String name)
From source file:com.ohnosequences.xml.model.ContigXML.java
License:Open Source License
private void initHspsTag() { Element hsps = root.getChild(HSPS_TAG_NAME); if (hsps == null) { hsps = new Element(HSPS_TAG_NAME); root.addContent(hsps);//from ww w . j a v a2 s .c om } }
From source file:com.ohnosequences.xml.model.cufflinks.CuffLinksElement.java
License:Open Source License
public CuffLinksElement() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.embl.EmblXML.java
License:Open Source License
public EmblXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.Frameshift.java
License:Open Source License
public Frameshift() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.Gap.java
License:Open Source License
public Gap() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.gb.GenBankXML.java
License:Open Source License
public GenBankXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.genome.feature.Feature.java
License:Open Source License
public void appendToSequence(String value) { Element seqElem = root.getChild(SEQUENCE_TAG_NAME); if (seqElem == null) { root.addContent(new Element(SEQUENCE_TAG_NAME)); seqElem = root.getChild(SEQUENCE_TAG_NAME); }//from w w w . ja v a 2 s . c o m seqElem.setText(seqElem.getText() + value); }
From source file:com.ohnosequences.xml.model.genome.feature.Feature.java
License:Open Source License
public void setOddAxisPalindromicityResult(PalindromicityResultXML result) { root.removeChildren(ODD_AXIS_PALINDROMICITY_TAG_NAME); Element elem = new Element(ODD_AXIS_PALINDROMICITY_TAG_NAME); elem.addContent(result.getRoot());// w w w .ja v a2 s . co m root.addContent(elem); }
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());/* w ww . ja v a2s . c o m*/ root.addContent(elem); }
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());//from w w w . ja v a2 s . c om root.addContent(elem); }