List of usage examples for org.jdom2 Element Element
public Element(final String name)
From source file:com.ohnosequences.xml.model.Hit.java
License:Open Source License
protected Element initHitHspsTag() { Element hsps = root.getChild(HIT_HSPS_TAG_NAME); if (hsps == null) { root.addContent(new Element(HIT_HSPS_TAG_NAME)); hsps = root.getChild(HIT_HSPS_TAG_NAME); }// www. j a v a 2 s.c om return hsps; }
From source file:com.ohnosequences.xml.model.Hsp.java
License:Open Source License
public Hsp() { super(new Element(TAG_NAME)); }
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());//from www.j a v a2 s . c o 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.Iteration.java
License:Open Source License
public Iteration() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.logs.LogRecordXML.java
License:Open Source License
public LogRecordXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.metagenomics.ReadResultXML.java
License:Open Source License
public ReadResultXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.metagenomics.SampleXML.java
License:Open Source License
public SampleXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.MetagenomicsDataXML.java
License:Open Source License
public MetagenomicsDataXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.mg7.MG7DataXML.java
License:Open Source License
public MG7DataXML() { super(new Element(TAG_NAME)); }
From source file:com.ohnosequences.xml.model.mg7.ReadResultXML.java
License:Open Source License
protected Element initHitsTag() { Element elem = this.root.getChild(HITS_TAG_NAME); if (elem == null) { root.addContent(new Element(HITS_TAG_NAME)); elem = this.root.getChild(HITS_TAG_NAME); }//from w ww. j av a 2 s .c o m return elem; }