|
||||||||||
| 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 java.lang.Object |
object
Object. |
protected ObjectLocator |
parentLocator
Parent locator. |
| Constructor Summary | |
|---|---|
protected |
AbstractObjectLocator(ObjectLocator parentLocator,
java.lang.Object object)
Constructs a new validation event locator. |
| Method Summary | |
|---|---|
int |
getColumnNumber()
|
protected abstract java.lang.String |
getDefaultMessage()
|
int |
getLineNumber()
|
java.lang.String |
getMessage()
Returns location message. |
java.lang.String |
getMessage(java.util.ResourceBundle bundle)
Formats the message using given resource bundle. |
java.lang.String |
getMessageCode()
Returns message code. |
org.w3c.dom.Node |
getNode()
|
java.lang.Object |
getObject()
|
int |
getOffset()
|
ObjectLocator |
getParentLocator()
Returns parent locator. |
ObjectLocator[] |
getPath()
|
java.lang.String |
getPathAsString()
|
protected abstract java.lang.String |
getStepAsString()
|
java.net.URL |
getURL()
|
ItemObjectLocator |
item(int index,
java.lang.Object value)
Creates a locator for the item (like list or array item) relative to this locator. |
PropertyObjectLocator |
property(java.lang.String name,
java.lang.Object value)
Creates a locator for the property, relative to this locator. |
java.lang.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 java.lang.Object object
| Constructor Detail |
|---|
protected AbstractObjectLocator(ObjectLocator parentLocator,
java.lang.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 java.lang.String getPathAsString()
getPathAsString in interface ObjectLocatorprotected abstract java.lang.String getStepAsString()
public java.lang.Object getObject()
getObject in interface javax.xml.bind.ValidationEventLocatorpublic int getColumnNumber()
getColumnNumber in interface javax.xml.bind.ValidationEventLocatorpublic int getLineNumber()
getLineNumber in interface javax.xml.bind.ValidationEventLocatorpublic int getOffset()
getOffset in interface javax.xml.bind.ValidationEventLocatorpublic java.net.URL getURL()
getURL in interface javax.xml.bind.ValidationEventLocatorpublic org.w3c.dom.Node getNode()
getNode in interface javax.xml.bind.ValidationEventLocatorpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMessageCode()
getMessageCode in interface Reportableprotected abstract java.lang.String getDefaultMessage()
public java.lang.String getMessage(java.util.ResourceBundle bundle)
Reportable
getMessage in interface Reportablebundle - bundle to use resources from.
public java.lang.String getMessage()
getMessage in interface Reportable
public ItemObjectLocator item(int index,
java.lang.Object value)
ObjectLocator
item in interface ObjectLocatorindex - index of the item.value - value of the item.
public PropertyObjectLocator property(java.lang.String name,
java.lang.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 | |||||||||