Package org.jvnet.basicjaxb.locator
Interface ObjectLocator
- All Superinterfaces:
Reportable,jakarta.xml.bind.ValidationEventLocator
- All Known Subinterfaces:
ItemObjectLocator,PropertyObjectLocator,RootObjectLocator
- All Known Implementing Classes:
AbstractObjectLocator,DefaultItemObjectLocator,DefaultPropertyObjectLocator,DefaultRootObjectLocator
Object locator denotes a location in an object structure.
- Author:
- Aleksei Valikov
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()Creates a locator for the item (like list or array item) relative to this locator.Creates a locator for the property, relative to this locator.Methods inherited from interface org.jvnet.basicjaxb.i18n.Reportable
getMessage, getMessage, getMessageCode, getMessageParametersMethods inherited from interface jakarta.xml.bind.ValidationEventLocator
getColumnNumber, getLineNumber, getNode, getObject, getOffset, getURL
-
Method Details
-
getParentLocator
ObjectLocator getParentLocator()- Returns:
- Parent locator, may be
null.
-
getPath
ObjectLocator[] getPath()- Returns:
- Path to this locator from the root.
-
getPathAsString
String getPathAsString()- Returns:
- Path to this locator in string form;
-
property
Creates a locator for the property, relative to this locator.- Parameters:
propertyName- name of the property, must not benull.propertyValue- value of the property, may benull.- Returns:
- Child property locator.
-
item
Creates a locator for the item (like list or array item) relative to this locator.- Parameters:
itemIndex- index of the item.itemValue- value of the item.- Returns:
- Child item locator.
-