javax.xml.bind.helpers

Class ValidationEventLocatorImpl

Implemented Interfaces:
ValidationEventLocator

public class ValidationEventLocatorImpl
extends java.lang.Object
implements ValidationEventLocator

Default implementation of a ValidationEventLocator.
Author:
JSR-31
Since:
JAXB1.0

Constructor Summary

ValidationEventLocatorImpl()
Creates a new instance of ValidationEventLocatorImpl.
ValidationEventLocatorImpl(Locator pLocator)
Creates a new instance of ValidationEventLocatorImpl by copying data from the given org.xml.sax.Locator.
ValidationEventLocatorImpl(Node pNode)
Creates a new instance of ValidationEventLocatorImpl by setting the node property.
ValidationEventLocatorImpl(Object pObject)
Creates a new instance of ValidationEventLocatorImpl by setting the object property.
ValidationEventLocatorImpl(SAXParseException pException)
Creates a new instance of ValidationEventLocatorImpl by copying data from the given org.xml.sax.SAXParseException.

Method Summary

int
getColumnNumber()
int
getLineNumber()
Node
getNode()
Object
getObject()
int
getOffset()
URL
getURL()
void
setColumnNumber(int pColumnNumber)
Sets the column number.
void
setLineNumber(int pLineNumber)
Sets the line number.
void
setNode(Node pNode)
Sets the node.
void
setObject(Object pObject)
Sets the object.
void
setOffset(int pOffset)
Sets the offset.
void
setURL(URL pURL)
Sets the URL.

Constructor Details

ValidationEventLocatorImpl

public ValidationEventLocatorImpl()
Creates a new instance of ValidationEventLocatorImpl.

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Locator pLocator)
Creates a new instance of ValidationEventLocatorImpl by copying data from the given org.xml.sax.Locator.
Parameters:
pLocator - The SAX locator where to copy from.

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Node pNode)
Creates a new instance of ValidationEventLocatorImpl by setting the node property.
Parameters:
pNode - The node being referenced.

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Object pObject)
Creates a new instance of ValidationEventLocatorImpl by setting the object property.
Parameters:
pObject - The object being referenced.

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(SAXParseException pException)
Creates a new instance of ValidationEventLocatorImpl by copying data from the given org.xml.sax.SAXParseException.
Parameters:
pException - The SAX exception where to copy from.

Method Details

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface ValidationEventLocator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface ValidationEventLocator

getNode

public Node getNode()
Specified by:
getNode in interface ValidationEventLocator

getObject

public Object getObject()
Specified by:
getObject in interface ValidationEventLocator

getOffset

public int getOffset()
Specified by:
getOffset in interface ValidationEventLocator

getURL

public URL getURL()
Specified by:
getURL in interface ValidationEventLocator

setColumnNumber

public void setColumnNumber(int pColumnNumber)
Sets the column number.

setLineNumber

public void setLineNumber(int pLineNumber)
Sets the line number.

setNode

public void setNode(Node pNode)
Sets the node.

setObject

public void setObject(Object pObject)
Sets the object.

setOffset

public void setOffset(int pOffset)
Sets the offset.

setURL

public void setURL(URL pURL)
Sets the URL.