Class WstxInputLocation

    • Field Detail

      • mContext

        protected final WstxInputLocation mContext
        Enclosing (parent) input location; location from which current location is derived.
      • mPublicId

        protected final String mPublicId
      • mSystemId

        protected final String mSystemId
      • mCharOffset

        protected final long mCharOffset
      • mCol

        protected final int mCol
      • mRow

        protected final int mRow
      • mDesc

        protected transient String mDesc
    • Constructor Detail

      • WstxInputLocation

        public WstxInputLocation​(WstxInputLocation ctxt,
                                 String pubId,
                                 String sysId,
                                 long charOffset,
                                 int row,
                                 int col)
        Parameters:
        ctxt - Enclosing input location, if any
    • Method Detail

      • getCharacterOffsetLong

        public long getCharacterOffsetLong()
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object