Package org.jvnet.basicjaxb.locator
Class DefaultItemObjectLocator
java.lang.Object
org.jvnet.basicjaxb.locator.AbstractObjectLocator
org.jvnet.basicjaxb.locator.DefaultItemObjectLocator
- All Implemented Interfaces:
jakarta.xml.bind.ValidationEventLocator,Reportable,ItemObjectLocator,ObjectLocator
public final class DefaultItemObjectLocator
extends AbstractObjectLocator
implements ItemObjectLocator
Locator for the collection item.
-
Field Summary
FieldsFields inherited from class org.jvnet.basicjaxb.locator.AbstractObjectLocator
object, parentLocator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultItemObjectLocator(ObjectLocator parentLocator, int itemIndex, Object itemValue) Constructs a new item 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.ItemObjectLocator
getObjectMethods inherited from interface org.jvnet.basicjaxb.locator.ObjectLocator
getParentLocator, getPath, getPathAsString, item, propertyMethods 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
-
index
protected final int indexItem index.
-
-
Constructor Details
-
DefaultItemObjectLocator
Constructs a new item locator.- Parameters:
parentLocator- parent locator.itemIndex- item index.itemValue- item value.
-
-
Method Details
-
getIndex
public int getIndex()Returns item index.- Specified by:
getIndexin interfaceItemObjectLocator- Returns:
- Index of the item.
-
getMessageParameters
Description copied from interface:ReportableReturns parameters used to format the message.- Specified by:
getMessageParametersin interfaceReportable- Returns:
- Array of parameters used to format problem message.
-
getDefaultMessage
- Specified by:
getDefaultMessagein classAbstractObjectLocator
-
getStepAsString
- Specified by:
getStepAsStringin classAbstractObjectLocator
-