List of usage examples for org.jdom2 Element getChildren
public List<Element> getChildren(final String cname)
List
of all the child elements nested directly (one level deep) within this element with the given local name and belonging to no namespace, returned as Element
objects. From source file:com.ohnosequences.xml.model.bio4j.Bio4jNodeXML.java
License:Open Source License
public List<Bio4jRelationshipXML> getIncomingRelationships() throws XMLElementException { LinkedList<Bio4jRelationshipXML> list = new LinkedList<Bio4jRelationshipXML>(); Element elem = root.getChild(INCOMING_RELATIONSHIPS_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jRelationshipXML.TAG_NAME)) { list.add(new Bio4jRelationshipXML((Element) e)); }//from w ww . j ava 2 s. co m } return list; }
From source file:com.ohnosequences.xml.model.bio4j.Bio4jNodeXML.java
License:Open Source License
public List<Bio4jRelationshipXML> getOutgoingRelationships() throws XMLElementException { LinkedList<Bio4jRelationshipXML> list = new LinkedList<Bio4jRelationshipXML>(); Element elem = root.getChild(OUTGOING_RELATIONSHIPS_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jRelationshipXML.TAG_NAME)) { list.add(new Bio4jRelationshipXML((Element) e)); }// w ww .j av a2s. com } return list; }
From source file:com.ohnosequences.xml.model.bio4j.Bio4jNodeXML.java
License:Open Source License
public List<Bio4jNodeIndexXML> getIndexes() throws XMLElementException { LinkedList<Bio4jNodeIndexXML> list = new LinkedList<Bio4jNodeIndexXML>(); Element elem = root.getChild(INDEXES_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jNodeIndexXML.TAG_NAME)) { list.add(new Bio4jNodeIndexXML((Element) e)); }/*w w w. j a v a 2 s .c o m*/ } return list; }
From source file:com.ohnosequences.xml.model.bio4j.Bio4jRelationshipXML.java
License:Open Source License
public List<Bio4jNodeXML> getStartNodes() throws XMLElementException { LinkedList<Bio4jNodeXML> list = new LinkedList<Bio4jNodeXML>(); Element elem = root.getChild(START_NODES_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jNodeXML.TAG_NAME)) { list.add(new Bio4jNodeXML((Element) e)); }//w ww. j a v a 2s . c o m } return list; }
From source file:com.ohnosequences.xml.model.bio4j.Bio4jRelationshipXML.java
License:Open Source License
public List<Bio4jNodeXML> getEndNodes() throws XMLElementException { LinkedList<Bio4jNodeXML> list = new LinkedList<Bio4jNodeXML>(); Element elem = root.getChild(END_NODES_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jNodeXML.TAG_NAME)) { list.add(new Bio4jNodeXML((Element) e)); }//from w ww . j a va 2 s . c o m } return list; }
From source file:com.ohnosequences.xml.model.bio4j.Bio4jRelationshipXML.java
License:Open Source License
public List<Bio4jRelationshipIndexXML> getIndexes() throws XMLElementException { LinkedList<Bio4jRelationshipIndexXML> list = new LinkedList<Bio4jRelationshipIndexXML>(); Element elem = root.getChild(INDEXES_TAG_NAME); if (elem != null) { for (Object e : elem.getChildren(Bio4jRelationshipIndexXML.TAG_NAME)) { list.add(new Bio4jRelationshipIndexXML((Element) e)); }/*w ww .j a va2s.c o m*/ } return list; }
From source file:com.ohnosequences.xml.model.ContigXML.java
License:Open Source License
public List<Hsp> getHsps() throws XMLElementException { Element hsps = root.getChild(HSPS_TAG_NAME); if (hsps == null) { return null; } else {//from w w w .j a va2s. c om ArrayList<Hsp> array = new ArrayList<Hsp>(); for (Object hspElem : hsps.getChildren(Hsp.TAG_NAME)) { array.add(new Hsp((Element) hspElem)); } return array; } }
From source file:com.ohnosequences.xml.model.go.GoAnnotationXML.java
License:Open Source License
public List<GoTermXML> getAnnotatorGoTerms() { Element tempElem = root.getChild(ANNOTATOR_GO_TERMS_TAG_NAME); if (tempElem != null) { List<GoTermXML> result = new ArrayList<GoTermXML>(); List<Element> tempList = tempElem.getChildren(GoTermXML.TAG_NAME); for (Element element : tempList) { result.add(new GoTermXML(element)); }//from ww w . ja va 2 s . co m return result; } else { return null; } }
From source file:com.ohnosequences.xml.model.go.GOSlimXML.java
License:Open Source License
public List<GoTermXML> getGoTermsLostNotIncludedInSlimSet() { List<GoTermXML> list = new ArrayList<GoTermXML>(); Element elem = this.asJDomElement().getChild(GO_TERMS_LOST_NOT_INCLUDED_IN_SLIM_SET); if (elem != null) { List<Element> tempList = elem.getChildren(GoTermXML.TAG_NAME); for (Element element : tempList) { list.add(new GoTermXML(element)); }//from w w w . j a v a2 s . com } return list; }
From source file:com.ohnosequences.xml.model.Hit.java
License:Open Source License
public ArrayList<Hsp> getHitHsps() throws XMLElementException { ArrayList<Hsp> array = new ArrayList<Hsp>(); Element hsps = initHitHspsTag(); List<Element> tempList = hsps.getChildren(Hsp.TAG_NAME); for (Element elem : tempList) { array.add(new Hsp(elem)); }/* ww w . j av a 2s . co m*/ return array; }