Class ContextLines


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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String addLineNum​(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad)  
      (package private) java.lang.String make​(OoxmlFacade ooxml, NiceXmlMessageSpec spec)  
      private int stringLengthOf​(int i)  
      • Methods inherited from class java.lang.Object

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

      • 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 java.util.List<java.lang.String> lines
    • Constructor Detail

      • ContextLines

        ContextLines​(java.util.List<java.lang.String> lines,
                     @com.github.oowekyala.ooxml.messages.Annots.OneBased int first,
                     int errorIdx)
    • Method Detail

      • stringLengthOf

        private int stringLengthOf​(int i)
      • addLineNum

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