- java.lang.Object
-
- jakarta.xml.bind.helpers.ValidationEventLocatorImpl
-
- org.glassfish.jaxb.runtime.util.ValidationEventLocatorExImpl
-
- All Implemented Interfaces:
jakarta.xml.bind.ValidationEventLocator,ValidationEventLocatorEx
public class ValidationEventLocatorExImpl extends jakarta.xml.bind.helpers.ValidationEventLocatorImpl implements ValidationEventLocatorEx
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ValidationEventLocatorExImpl(Object target, String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()Returns the field name of the object where the error occured.StringtoString()Returns a nice string representation for better debug experience.-
Methods inherited from class jakarta.xml.bind.helpers.ValidationEventLocatorImpl
getColumnNumber, getLineNumber, getNode, getObject, getOffset, getURL, setColumnNumber, setLineNumber, setNode, setObject, setOffset, setURL
-
-
-
-
Method Detail
-
getFieldName
public String getFieldName()
Description copied from interface:ValidationEventLocatorExReturns 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:
getFieldNamein interfaceValidationEventLocatorEx
-
toString
public String toString()
Returns a nice string representation for better debug experience.- Overrides:
toStringin classjakarta.xml.bind.helpers.ValidationEventLocatorImpl
-
-