net.sf.okapi.lib.xliff2.walker

## Class VisitationContext

- java.lang.Object
- - net.sf.okapi.lib.xliff2.walker.VisitationContext

-     public class VisitationContext
      extends java.lang.Object

  Provides the context for visiting the visitee during traversal of the XLIFF tree. The context consists of file, unit, and segment index, of which only the file is required. The other may be null.
  Author:
    Martin Wunderlich

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `VisitationContext(FileNode fileNode)`
    `VisitationContext(FileNode fileNode, UnitNode unitNode)`
    `VisitationContext(FileNode fileNode, UnitNode unitNode, int segmentIndex)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `FileNode` | `getFile()`
    `java.lang.Integer` | `getSegmentIndex()`
    `UnitNode` | `getUnit()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VisitationContext

          public VisitationContext(FileNode fileNode)

    - #### VisitationContext

          public VisitationContext(FileNode fileNode,
                           UnitNode unitNode)

    - #### VisitationContext

          public VisitationContext(FileNode fileNode,
                           UnitNode unitNode,
                           int segmentIndex)

  - ### Method Detail

    - #### getFile

          public FileNode getFile()

    - #### getUnit

          public UnitNode getUnit()

    - #### getSegmentIndex

          public java.lang.Integer getSegmentIndex()