ValidationEventLocator, Reportable, ObjectLocatorDefaultItemObjectLocator, DefaultPropertyObjectLocator, DefaultRootObjectLocatorpublic abstract class AbstractObjectLocator extends Object implements ObjectLocator
| Modifier and Type | Field | Description |
|---|---|---|
protected Object |
object |
Object.
|
protected ObjectLocator |
parentLocator |
Parent locator.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractObjectLocator(ObjectLocator parentLocator,
Object object) |
Constructs a new validation event locator.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getColumnNumber() |
|
protected abstract String |
getDefaultMessage() |
|
int |
getLineNumber() |
|
String |
getMessage() |
Returns location message.
|
String |
getMessage(ResourceBundle bundle) |
Formats the message using given resource bundle.
|
String |
getMessageCode() |
Returns message code.
|
Node |
getNode() |
|
Object |
getObject() |
|
int |
getOffset() |
|
ObjectLocator |
getParentLocator() |
Returns parent locator.
|
ObjectLocator[] |
getPath() |
|
String |
getPathAsString() |
|
protected abstract String |
getStepAsString() |
|
URL |
getURL() |
|
ItemObjectLocator |
item(int index,
Object value) |
Creates a locator for the item (like list or array item) relative to this
locator.
|
PropertyObjectLocator |
property(String name,
Object value) |
Creates a locator for the property, relative to this locator.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessageParametersprotected final ObjectLocator parentLocator
protected final Object object
protected AbstractObjectLocator(ObjectLocator parentLocator, Object object)
parentLocator - parent location (may be null).object - object.public ObjectLocator getParentLocator()
getParentLocator in interface ObjectLocatorpublic ObjectLocator[] getPath()
getPath in interface ObjectLocatorpublic String getPathAsString()
getPathAsString in interface ObjectLocatorprotected abstract String getStepAsString()
public Object getObject()
getObject in interface ValidationEventLocatorpublic int getColumnNumber()
getColumnNumber in interface ValidationEventLocatorpublic int getLineNumber()
getLineNumber in interface ValidationEventLocatorpublic int getOffset()
getOffset in interface ValidationEventLocatorpublic URL getURL()
getURL in interface ValidationEventLocatorpublic Node getNode()
getNode in interface ValidationEventLocatorpublic String getMessageCode()
getMessageCode in interface Reportableprotected abstract String getDefaultMessage()
public String getMessage(ResourceBundle bundle)
ReportablegetMessage in interface Reportablebundle - bundle to use resources from.public String getMessage()
getMessage in interface Reportablepublic ItemObjectLocator item(int index, Object value)
ObjectLocatoritem in interface ObjectLocatorindex - index of the item.value - value of the item.public PropertyObjectLocator property(String name, Object value)
ObjectLocatorproperty in interface ObjectLocatorname - name of the property, must not be null.value - value of the property, may be null.Copyright © 2005–2018. All rights reserved.