org.jvnet.jaxb2_commons.locator
Class DefaultPropertyObjectLocator
java.lang.Object
org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
org.jvnet.jaxb2_commons.locator.DefaultPropertyObjectLocator
- All Implemented Interfaces:
- javax.xml.bind.ValidationEventLocator, Reportable, ObjectLocator, PropertyObjectLocator
public final class DefaultPropertyObjectLocator
- extends AbstractObjectLocator
- implements PropertyObjectLocator
Validation event locator.
- Author:
- Aleksei Valikov
|
Field Summary |
protected java.lang.String |
propertyName
Field name. |
| Methods inherited from class org.jvnet.jaxb2_commons.locator.AbstractObjectLocator |
getColumnNumber, getLineNumber, getMessage, getMessage, getMessageCode, getNode, getObject, getOffset, getParentLocator, getPath, getPathAsString, getURL, item, property, toString |
| 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, getOffset, getURL |
propertyName
protected final java.lang.String propertyName
- Field name.
DefaultPropertyObjectLocator
protected DefaultPropertyObjectLocator(ObjectLocator parentLocator,
java.lang.String propertyName,
java.lang.Object propertyValue)
- Constructs a new validation event locator.
- Parameters:
parentLocator - parent location (may be null).object - object.propertyName - field name.
getPropertyName
public java.lang.String getPropertyName()
- Specified by:
getPropertyName in interface PropertyObjectLocator
- Returns:
- Name of the property.
getMessageParameters
public java.lang.Object[] getMessageParameters()
- Returns parameters for message formatting.
- Specified by:
getMessageParameters in interface Reportable
- Returns:
- Message formatting parameters.
getDefaultMessage
protected java.lang.String getDefaultMessage()
- Specified by:
getDefaultMessage in class AbstractObjectLocator
getStepAsString
protected java.lang.String getStepAsString()
- Specified by:
getStepAsString in class AbstractObjectLocator
Copyright © 2005-2011. All Rights Reserved.