Example usage for org.jdom2 Element Element

List of usage examples for org.jdom2 Element Element

Introduction

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

Prototype

public Element(final String name) 

Source Link

Document

Create a new element with the supplied (local) name and no namespace.

Usage

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

License:Open Source License

private void initAnnotatorGoTermsTag() {
    Element annotators = root.getChild(ANNOTATOR_GO_TERMS_TAG_NAME);
    if (annotators == null) {
        annotators = new Element(ANNOTATOR_GO_TERMS_TAG_NAME);
        root.addContent(annotators);// www . java 2 s .  c  om
    }
}

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

License:Open Source License

public GOSlimXML() {
    super(new Element(TAG_NAME));
}

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

License:Open Source License

private Element initGoTermLostNotIncludedInSlimSetTag() {
    Element elem = this.asJDomElement().getChild(GO_TERMS_LOST_NOT_INCLUDED_IN_SLIM_SET);
    if (elem == null) {
        this.asJDomElement().addContent(new Element(GO_TERMS_LOST_NOT_INCLUDED_IN_SLIM_SET));
        elem = this.asJDomElement().getChild(GO_TERMS_LOST_NOT_INCLUDED_IN_SLIM_SET);
    }//  www. j  a v  a  2  s. c om
    return elem;
}

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

License:Open Source License

public GoTermXML() {
    super(new Element(TAG_NAME));
}

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

License:Open Source License

private void initProteinAnnotationLeadingToSlimTermTag() {
    Element elem = root.getChild(PROTEIN_ANNOTATION_LEADING_TO_SLIM_TERM);
    if (elem == null) {
        elem = new Element(PROTEIN_ANNOTATION_LEADING_TO_SLIM_TERM);
        root.addContent(elem);/*  w w  w  . jav a2  s . c o m*/
    }
}

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

License:Open Source License

public SlimSetXML() {
    super(new Element(TAG_NAME));
}

From source file:com.ohnosequences.xml.model.graphml.DataXML.java

License:Open Source License

public DataXML() {
    super(new Element(TAG_NAME));
}

From source file:com.ohnosequences.xml.model.graphml.GraphmlXML.java

License:Open Source License

public GraphmlXML() {
    super(new Element(TAG_NAME));
}

From source file:com.ohnosequences.xml.model.graphml.KeyXML.java

License:Open Source License

public KeyXML() {
    super(new Element(TAG_NAME));
}

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

License:Open Source License

public Hit() {
    super(new Element(TAG_NAME));
}