Package org.jvnet.jaxb.locator
Class DefaultPropertyObjectLocator
- java.lang.Object
-
- org.jvnet.jaxb.locator.AbstractObjectLocator
-
- org.jvnet.jaxb.locator.DefaultPropertyObjectLocator
-
- All Implemented Interfaces:
jakarta.xml.bind.ValidationEventLocator,Reportable,ObjectLocator,PropertyObjectLocator
public final class DefaultPropertyObjectLocator extends AbstractObjectLocator implements PropertyObjectLocator
Validation event locator.- Author:
- Aleksei Valikov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringpropertyNameField name.-
Fields inherited from class org.jvnet.jaxb.locator.AbstractObjectLocator
object, parentLocator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultPropertyObjectLocator(ObjectLocator parentLocator, String propertyName, Object propertyValue)Constructs a new validation event locator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDefaultMessage()Object[]getMessageParameters()Returns parameters for message formatting.StringgetPropertyName()protected StringgetStepAsString()-
Methods inherited from class org.jvnet.jaxb.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.jaxb.locator.ObjectLocator
getParentLocator, getPath, getPathAsString, item, property
-
Methods inherited from interface org.jvnet.jaxb.locator.PropertyObjectLocator
getObject
-
Methods inherited from interface org.jvnet.jaxb.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- locator of the parent object.propertyName- name of the property.propertyValue- value of the property.
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyNamein interfacePropertyObjectLocator- Returns:
- Name of the property.
-
getMessageParameters
public Object[] getMessageParameters()
Returns parameters for message formatting.- Specified by:
getMessageParametersin interfaceReportable- Returns:
- Message formatting parameters.
-
getDefaultMessage
protected String getDefaultMessage()
- Specified by:
getDefaultMessagein classAbstractObjectLocator
-
getStepAsString
protected String getStepAsString()
- Specified by:
getStepAsStringin classAbstractObjectLocator
-
-