ValidationEventLocatorEx, javax.xml.bind.ValidationEventLocatorpublic class ValidationEventLocatorExImpl extends javax.xml.bind.helpers.ValidationEventLocatorImpl implements ValidationEventLocatorEx
| Constructor | Description |
|---|---|
ValidationEventLocatorExImpl(java.lang.Object target,
java.lang.String fieldName) |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ValidationEventLocatorExImpl(java.lang.Object target,
java.lang.String fieldName)
public java.lang.String getFieldName()
ValidationEventLocatorEx
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.
getFieldName in interface ValidationEventLocatorExpublic java.lang.String toString()
toString in class javax.xml.bind.helpers.ValidationEventLocatorImplCopyright © 2017 Oracle Corporation. All rights reserved.