Example usage for org.jdom2 Element getName

List of usage examples for org.jdom2 Element getName

Introduction

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

Prototype

public String getName() 

Source Link

Document

Returns the (local) name of the element (without any namespace prefix).

Usage

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

License:Open Source License

public NodeXML(Element elem) throws XMLElementException {
    super(elem);/*from  w  w w .j  a  va 2  s .co  m*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public SpellsXML(Element elem) throws XMLElementException {
    super(elem);/*from www.  j  a  v a2s  .c  o  m*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public SpellXML(Element elem) throws XMLElementException {
    super(elem);//w ww  .ja v a 2 s  .  c o  m
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public VizColorXML(Element elem) throws XMLElementException {
    super(elem);/*from  w w w . j  a  va2 s.  c  o m*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    } else {
        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(Element elem) throws XMLElementException {
    super(elem);/* w ww .  j  a va 2s.  c  om*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    } else {
        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(Element elem) throws XMLElementException {
    super(elem);/*from  w  w w  .  j  av a2s  . c o m*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    } else {
        this.setNameSpace(new NameSpace(VIZ_NAMESPACE, VIZ_NAMESPACE));
    }
}

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

License:Open Source License

public DataXML(Element elem) throws XMLElementException {
    super(elem);//from w w  w.  j av  a  2 s .c  o m
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public GraphmlXML(Element elem) throws XMLElementException {
    super(elem);/*from   w w  w  .  java 2 s  .  c  o  m*/
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public KeyXML(Element elem) throws XMLElementException {
    super(elem);//from  www .j a  v a2  s.c  om
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}

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

License:Open Source License

public Hit(Element elem) throws XMLElementException {
    super(elem);//w  ww  . j a v  a2 s  .  c o m
    if (!elem.getName().equals(TAG_NAME)) {
        throw new XMLElementException(XMLElementException.WRONG_TAG_NAME, new XMLElement(elem));
    }
}