Interface XmlNodeBuilder.InputLocationBuilder

Enclosing class:
XmlNodeBuilder

public static interface XmlNodeBuilder.InputLocationBuilder
Callback interface for creating input location objects during parsing.

Implementations determine how source location information (line number, column, etc.) is captured and stored for each parsed element. The returned object is attached to the resulting XmlNodeImpl as its location.

Since:
3.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    toInputLocation(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
    Creates an input location object from the parser's current position.
  • Method Details

    • toInputLocation

      Object toInputLocation(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
      Creates an input location object from the parser's current position.
      Parameters:
      parser - the pull parser, positioned at the start tag of the element being built
      Returns:
      an object representing the source location, or null if location tracking is not needed for this element