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.uniprot.ProteinXML.java

License:Open Source License

private void initComponentTag() {
    initGoTermsTag();/*from  w  ww  .j av a  2 s. com*/
    Element temp = root.getChild(GO_TERMS_TAG_NAME).getChild(COMPONENT_GO_TERMS_TAG_NAME);
    if (temp == null) {
        root.getChild(GO_TERMS_TAG_NAME).addContent(new Element(COMPONENT_GO_TERMS_TAG_NAME));
    }
}

From source file:com.ohnosequences.xml.model.uniprot.ProteinXML.java

License:Open Source License

private void initFunctionTag() {
    initGoTermsTag();// www  .  j a  v  a2 s.co  m
    Element temp = root.getChild(GO_TERMS_TAG_NAME).getChild(FUNCTION_GO_TERMS_TAG_NAME);
    if (temp == null) {
        root.getChild(GO_TERMS_TAG_NAME).addContent(new Element(FUNCTION_GO_TERMS_TAG_NAME));
    }
}

From source file:com.ohnosequences.xml.model.uniprot.ProteinXML.java

License:Open Source License

private void initProcessTag() {
    initGoTermsTag();//from   w w  w.  j  a v  a  2  s .c om
    Element temp = root.getChild(GO_TERMS_TAG_NAME).getChild(PROCESS_GO_TERMS_TAG_NAME);
    if (temp == null) {
        root.getChild(GO_TERMS_TAG_NAME).addContent(new Element(PROCESS_GO_TERMS_TAG_NAME));
    }
}

From source file:com.ohnosequences.xml.model.uniprot.ProteinXML.java

License:Open Source License

private void initTag(String tagName) {
    Element temp = root.getChild(tagName);
    if (temp == null) {
        root.addContent(new Element(tagName));
    }//from w ww  .j  a v a 2  s.  c  om
}

From source file:com.ohnosequences.xml.model.uniprot.SubcellularLocationXML.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.util.Argument.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.util.Arguments.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.util.Error.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.util.Execution.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.util.ScheduledExecutions.java

License:Open Source License

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