com.vividsolutions.jtstest.util.LineNumberElement Maven / Gradle / Ivy
package com.vividsolutions.jtstest.util;
import org.jdom.Element;
import org.jdom.Namespace;
/**
* This class extends a normal Element with a traceback to its
* beginning and endling line number, if available and reported.
*
* Each instance is created using a factory internal to the
* LineNumberSAXBuilder class.
*
* @author Per Norrman
*
*/
public class LineNumberElement extends Element
{
private int _startLine;
private int _endLine;
public LineNumberElement(String name) {
super(name);
}
public LineNumberElement()
{
super();
}
public LineNumberElement(String name, String uri)
{
super(name, uri);
}
public LineNumberElement(String name, String prefix, String uri)
{
super(name, prefix, uri);
}
public LineNumberElement(String name, Namespace namespace) {
super(name, namespace);
}
public int getEndLine()
{
return _endLine;
}
public int getStartLine()
{
return _startLine;
}
public void setEndLine(int i)
{
_endLine = i;
}
public void setStartLine(int i)
{
_startLine = i;
}
}