Class ContextLines

java.lang.Object
com.github.oowekyala.ooxml.messages.ContextLines

public class ContextLines extends Object
Helper object that contains the lines around a specific XmlPosition.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @com.github.oowekyala.ooxml.messages.Annots.ZeroBased int
    Index in the list of the line that has the error.
    private final @com.github.oowekyala.ooxml.messages.Annots.OneBased int
    Line number of the first line of the list in the real document
    private final List<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContextLines(List<String> lines, @com.github.oowekyala.ooxml.messages.Annots.OneBased int first, int errorIdx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private String
    addLineNum(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad)
     
    (package private) String
     
    private int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • first

      private final @com.github.oowekyala.ooxml.messages.Annots.OneBased int first
      Line number of the first line of the list in the real document
    • errorIdx

      private final @com.github.oowekyala.ooxml.messages.Annots.ZeroBased int errorIdx
      Index in the list of the line that has the error.
    • lines

      private final List<String> lines
  • Constructor Details

    • ContextLines

      ContextLines(List<String> lines, @com.github.oowekyala.ooxml.messages.Annots.OneBased int first, int errorIdx)
  • Method Details

    • make

    • stringLengthOf

      private int stringLengthOf(int i)
    • addLineNum

      private String addLineNum(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad)