org.jvnet.jaxb2_commons.locator
Class DefaultPropertyObjectLocator

java.lang.Object
  extended by org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
      extended by 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  String propertyName
          Field name.
 
Fields inherited from class org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
object, parentLocator
 
Constructor Summary
protected DefaultPropertyObjectLocator(ObjectLocator parentLocator, String propertyName, Object propertyValue)
          Constructs a new validation event locator.
 
Method Summary
protected  String getDefaultMessage()
           
 Object[] getMessageParameters()
          Returns parameters for message formatting.
 String getPropertyName()
           
protected  String getStepAsString()
           
 
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 org.jvnet.jaxb2_commons.locator.PropertyObjectLocator
getObject
 
Methods inherited from interface org.jvnet.jaxb2_commons.locator.ObjectLocator
getParentLocator, getPath, getPathAsString, item, property
 
Methods inherited from interface javax.xml.bind.ValidationEventLocator
getColumnNumber, getLineNumber, getNode, getOffset, getURL
 
Methods inherited from interface org.jvnet.jaxb2_commons.i18n.Reportable
getMessage, getMessage, getMessageCode
 

Field Detail

propertyName

protected final String propertyName
Field name.

Constructor Detail

DefaultPropertyObjectLocator

protected DefaultPropertyObjectLocator(ObjectLocator parentLocator,
                                       String propertyName,
                                       Object propertyValue)
Constructs a new validation event locator.

Parameters:
parentLocator - parent location (may be null).
object - object.
propertyName - field name.
Method Detail

getPropertyName

public String getPropertyName()
Specified by:
getPropertyName in interface PropertyObjectLocator
Returns:
Name of the property.

getMessageParameters

public Object[] getMessageParameters()
Returns parameters for message formatting.

Specified by:
getMessageParameters in interface Reportable
Returns:
Message formatting parameters.

getDefaultMessage

protected String getDefaultMessage()
Specified by:
getDefaultMessage in class AbstractObjectLocator

getStepAsString

protected String getStepAsString()
Specified by:
getStepAsString in class AbstractObjectLocator


Copyright © 2005-2012. All Rights Reserved.