com.sun.xml.bind.util
Class ValidationEventLocatorExImpl
java.lang.Object
javax.xml.bind.helpers.ValidationEventLocatorImpl
com.sun.xml.bind.util.ValidationEventLocatorExImpl
- All Implemented Interfaces:
- ValidationEventLocatorEx, ValidationEventLocator
public class ValidationEventLocatorExImpl
- extends ValidationEventLocatorImpl
- implements ValidationEventLocatorEx
Method Summary |
String |
getFieldName()
Returns the field name of the object where the error occured. |
String |
toString()
Returns a nice string representation for better debug experience. |
Methods inherited from class javax.xml.bind.helpers.ValidationEventLocatorImpl |
getColumnNumber, getLineNumber, getNode, getObject, getOffset, getURL, setColumnNumber, setLineNumber, setNode, setObject, setOffset, setURL |
ValidationEventLocatorExImpl
public ValidationEventLocatorExImpl(Object target,
String fieldName)
getFieldName
public String getFieldName()
- Description copied from interface:
ValidationEventLocatorEx
- Returns the field name of the object where the error occured.
This method always returns null when you are doing
a validation during unmarshalling.
When not null, the field name indicates the field of the object
designated by the ValidationEventLocator.getObject()
method where the error
occured.
- Specified by:
getFieldName
in interface ValidationEventLocatorEx
toString
public String toString()
- Returns a nice string representation for better debug experience.
- Overrides:
toString
in class ValidationEventLocatorImpl