Package org.jvnet.jaxb2_commons.locator
Class DefaultItemObjectLocator
- java.lang.Object
-
- org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
-
- org.jvnet.jaxb2_commons.locator.DefaultItemObjectLocator
-
- All Implemented Interfaces:
ValidationEventLocator,Reportable,ItemObjectLocator,ObjectLocator
public final class DefaultItemObjectLocator extends AbstractObjectLocator implements ItemObjectLocator
Locator for the collection item.
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexItem index.-
Fields inherited from class org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
object, parentLocator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultItemObjectLocator(ObjectLocator parentLocator, int itemIndex, Object itemValue)Constructs a new item locator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDefaultMessage()intgetIndex()Returns item index.Object[]getMessageParameters()Returns parameters used to format the message.protected StringgetStepAsString()-
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.ItemObjectLocator
getObject
-
Methods inherited from interface org.jvnet.jaxb2_commons.locator.ObjectLocator
getParentLocator, getPath, getPathAsString, item, property
-
Methods inherited from interface org.jvnet.jaxb2_commons.i18n.Reportable
getMessage, getMessage, getMessageCode
-
Methods inherited from interface javax.xml.bind.ValidationEventLocator
getColumnNumber, getLineNumber, getNode, getOffset, getURL
-
-
-
-
Constructor Detail
-
DefaultItemObjectLocator
protected DefaultItemObjectLocator(ObjectLocator parentLocator, int itemIndex, Object itemValue)
Constructs a new item locator.- Parameters:
parentLocator- parent locator.itemIndex- item index.itemValue- item value.
-
-
Method Detail
-
getIndex
public int getIndex()
Returns item index.- Specified by:
getIndexin interfaceItemObjectLocator- Returns:
- Index of the item.
-
getMessageParameters
public Object[] 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
protected String getDefaultMessage()
- Specified by:
getDefaultMessagein classAbstractObjectLocator
-
getStepAsString
protected String getStepAsString()
- Specified by:
getStepAsStringin classAbstractObjectLocator
-
-