Class AbstractObjectLocator

    • Field Detail

      • parentLocator

        protected final ObjectLocator parentLocator
        Parent locator.
      • object

        protected final Object object
        Object.
    • Constructor Detail

      • AbstractObjectLocator

        protected AbstractObjectLocator​(ObjectLocator parentLocator,
                                        Object object)
        Constructs a new validation event locator.
        Parameters:
        parentLocator - parent location (may be null).
        object - object.
    • Method Detail

      • getStepAsString

        protected abstract String getStepAsString()
      • getObject

        public Object getObject()
        Specified by:
        getObject in interface jakarta.xml.bind.ValidationEventLocator
      • getColumnNumber

        public int getColumnNumber()
        Specified by:
        getColumnNumber in interface jakarta.xml.bind.ValidationEventLocator
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface jakarta.xml.bind.ValidationEventLocator
      • getOffset

        public int getOffset()
        Specified by:
        getOffset in interface jakarta.xml.bind.ValidationEventLocator
      • getURL

        public URL getURL()
        Specified by:
        getURL in interface jakarta.xml.bind.ValidationEventLocator
      • getNode

        public Node getNode()
        Specified by:
        getNode in interface jakarta.xml.bind.ValidationEventLocator
      • getDefaultMessage

        protected abstract String getDefaultMessage()
      • getMessage

        public String getMessage​(ResourceBundle bundle)
        Description copied from interface: Reportable
        Formats the message using given resource bundle.
        Specified by:
        getMessage in interface Reportable
        Parameters:
        bundle - bundle to use resources from.
        Returns:
        Formatted message.
      • getMessage

        public String getMessage()
        Returns location message.
        Specified by:
        getMessage in interface Reportable
        Returns:
        Location message.
      • item

        public ItemObjectLocator item​(int index,
                                      Object value)
        Description copied from interface: ObjectLocator
        Creates a locator for the item (like list or array item) relative to this locator.
        Specified by:
        item in interface ObjectLocator
        Parameters:
        index - index of the item.
        value - value of the item.
        Returns:
        Child item locator.
      • property

        public PropertyObjectLocator property​(String name,
                                              Object value)
        Description copied from interface: ObjectLocator
        Creates a locator for the property, relative to this locator.
        Specified by:
        property in interface ObjectLocator
        Parameters:
        name - name of the property, must not be null.
        value - value of the property, may be null.
        Returns:
        Child property locator.