|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.jaxb2_commons.locator.AbstractObjectLocator
public abstract class AbstractObjectLocator
Abstract base class for event locators.
| Field Summary | |
|---|---|
protected Object |
object
Object. |
protected ObjectLocator |
parentLocator
Parent locator. |
| Constructor Summary | |
|---|---|
protected |
AbstractObjectLocator(ObjectLocator parentLocator,
Object object)
Constructs a new validation event locator. |
| Method Summary | |
|---|---|
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()
|
| 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.i18n.Reportable |
|---|
getMessageParameters |
| Field Detail |
|---|
protected final ObjectLocator parentLocator
protected final Object object
| Constructor Detail |
|---|
protected AbstractObjectLocator(ObjectLocator parentLocator,
Object object)
parentLocator - parent location (may be null).object - object.propertyName - field name.| Method Detail |
|---|
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 toString()
toString in class Objectpublic String getMessageCode()
getMessageCode in interface Reportableprotected abstract String getDefaultMessage()
public String getMessage(ResourceBundle bundle)
Reportable
getMessage in interface Reportablebundle - bundle to use resources from.
public String getMessage()
getMessage in interface Reportable
public ItemObjectLocator item(int index,
Object value)
ObjectLocator
item in interface ObjectLocatorindex - index of the item.value - value of the item.
public PropertyObjectLocator property(String name,
Object value)
ObjectLocator
property in interface ObjectLocatorname - name of the property, must not be null.value - value of the property, may be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||