Class ValidationEventLocatorExImpl

  • All Implemented Interfaces:
    ValidationEventLocatorEx, javax.xml.bind.ValidationEventLocator

    public class ValidationEventLocatorExImpl
    extends javax.xml.bind.helpers.ValidationEventLocatorImpl
    implements ValidationEventLocatorEx
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationEventLocatorExImpl​(java.lang.Object target, java.lang.String fieldName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()
      Returns the field name of the object where the error occured.
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.xml.bind.ValidationEventLocator

        getColumnNumber, getLineNumber, getNode, getObject, getOffset, getURL
    • Constructor Detail

      • ValidationEventLocatorExImpl

        public ValidationEventLocatorExImpl​(java.lang.Object target,
                                            java.lang.String fieldName)
    • Method Detail

      • getFieldName

        public java.lang.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 java.lang.String toString()
        Returns a nice string representation for better debug experience.
        Overrides:
        toString in class javax.xml.bind.helpers.ValidationEventLocatorImpl