Class Stax2LocationAdapter

    • Field Detail

      • mWrappedLocation

        protected final Location mWrappedLocation
      • mParentLocation

        protected final Location mParentLocation
    • Constructor Detail

      • Stax2LocationAdapter

        public Stax2LocationAdapter​(Location loc)
      • Stax2LocationAdapter

        public Stax2LocationAdapter​(Location loc,
                                    Location parent)
    • Method Detail

      • getContext

        public XMLStreamLocation2 getContext()
        Description copied from interface: XMLStreamLocation2
        Method that can be used to traverse nested locations, like ones created when expanding entities (especially external entities). If so, single location object only contains information about specific offsets and ids, and a link to its context. Outermost location will return null to indicate there is no more information to retrieve.
        Specified by:
        getContext in interface XMLStreamLocation2
        Returns:
        Location in the context (parent input source), if any; null for locations in the outermost known context