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.gexf.SpellsXML.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.gexf.SpellXML.java

License:Open Source License

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

From source file:com.ohnosequences.xml.model.gexf.viz.VizColorXML.java

License:Open Source License

public VizColorXML() {
    super(new Element(TAG_NAME));
    this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
}

From source file:com.ohnosequences.xml.model.gexf.viz.VizColorXML.java

License:Open Source License

public VizColorXML(int r, int g, int b, int a) {
    super(new Element(TAG_NAME));
    this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
    setR(r);/*from  w  ww  . j ava 2s.c o  m*/
    setG(g);
    setB(b);
    setA(a);
}

From source file:com.ohnosequences.xml.model.gexf.viz.VizPositionXML.java

License:Open Source License

public VizPositionXML() {
    super(new Element(TAG_NAME));
    this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
}

From source file:com.ohnosequences.xml.model.gexf.viz.VizPositionXML.java

License:Open Source License

public VizPositionXML(double x, double y, double z) {
    super(new Element(TAG_NAME));
    this.setX(x);
    this.setY(y);
    this.setZ(z);
}

From source file:com.ohnosequences.xml.model.gexf.viz.VizSizeXML.java

License:Open Source License

public VizSizeXML() {
    super(new Element(TAG_NAME));
    this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
}

From source file:com.ohnosequences.xml.model.gexf.viz.VizSizeXML.java

License:Open Source License

public VizSizeXML(double value) {
    super(new Element(TAG_NAME));
    this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
    setValue(value);/* ww  w. j a v  a  2 s.c o  m*/
}

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

License:Open Source License

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

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

License:Open Source License

private void initProteinAnnotatiosTag() {
    Element proteins = root.getChild(PROTEIN_ANNOTATIONS_TAG_NAME);
    if (proteins == null) {
        proteins = new Element(PROTEIN_ANNOTATIONS_TAG_NAME);
        root.addContent(proteins);/*from  ww  w  .j a v a 2  s. c om*/
    }
}