org.jvnet.jaxb2_commons.locator
Class DefaultItemObjectLocator

java.lang.Object
  extended by org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
      extended by org.jvnet.jaxb2_commons.locator.DefaultItemObjectLocator
All Implemented Interfaces:
javax.xml.bind.ValidationEventLocator, Reportable, ItemObjectLocator, ObjectLocator

public final class DefaultItemObjectLocator
extends AbstractObjectLocator
implements ItemObjectLocator

Locator for the collection item.


Field Summary
protected  int index
          Item index.
 
Fields inherited from class org.jvnet.jaxb2_commons.locator.AbstractObjectLocator
object, parentLocator
 
Constructor Summary
protected DefaultItemObjectLocator(ObjectLocator parentLocator, int itemIndex, Object itemValue)
          Constructs a new item locator.
 
Method Summary
protected  String getDefaultMessage()
           
 int getIndex()
          Returns item index.
 Object[] getMessageParameters()
          Returns parameters used to format the message.
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.ItemObjectLocator
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

index

protected final int index
Item index.

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:
getIndex in interface ItemObjectLocator
Returns:
Index of the item.

getMessageParameters

public Object[] getMessageParameters()
Description copied from interface: Reportable
Returns parameters used to format the message.

Specified by:
getMessageParameters in interface Reportable
Returns:
Array of parameters used to format problem message.

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.