Package org.jvnet.basicjaxb.locator
Class DefaultPropertyObjectLocator
java.lang.Object
org.jvnet.basicjaxb.locator.AbstractObjectLocator
org.jvnet.basicjaxb.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
FieldsFields inherited from class org.jvnet.basicjaxb.locator.AbstractObjectLocator
object, parentLocator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultPropertyObjectLocator(ObjectLocator parentLocator, String propertyName, Object propertyValue) Constructs a new validation event locator. -
Method Summary
Methods inherited from class org.jvnet.basicjaxb.locator.AbstractObjectLocator
getColumnNumber, getLineNumber, getMessage, getMessage, getMessageCode, getNode, getObject, getOffset, getParentLocator, getPath, getPathAsString, getURL, item, property, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jvnet.basicjaxb.locator.ObjectLocator
getParentLocator, getPath, getPathAsString, item, propertyMethods inherited from interface org.jvnet.basicjaxb.locator.PropertyObjectLocator
getObjectMethods inherited from interface org.jvnet.basicjaxb.i18n.Reportable
getMessage, getMessage, getMessageCodeMethods inherited from interface jakarta.xml.bind.ValidationEventLocator
getColumnNumber, getLineNumber, getNode, getOffset, getURL
-
Field Details
-
propertyName
Field name.
-
-
Constructor Details
-
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 Details
-
getPropertyName
- Specified by:
getPropertyNamein interfacePropertyObjectLocator- Returns:
- Name of the property.
-
getMessageParameters
Returns parameters for message formatting.- Specified by:
getMessageParametersin interfaceReportable- Returns:
- Message formatting parameters.
-
getDefaultMessage
- Specified by:
getDefaultMessagein classAbstractObjectLocator
-
getStepAsString
- Specified by:
getStepAsStringin classAbstractObjectLocator
-