Class ContextLines
- java.lang.Object
-
- com.github.oowekyala.ooxml.messages.ContextLines
-
public class ContextLines extends java.lang.ObjectHelper object that contains the lines around a specificXmlPosition.
-
-
Field Summary
Fields Modifier and Type Field Description private @com.github.oowekyala.ooxml.messages.Annots.ZeroBased interrorIdxIndex in the list of the line that has the error.private @com.github.oowekyala.ooxml.messages.Annots.OneBased intfirstLine number of the first line of the list in the real documentprivate 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.StringaddLineNum(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad)(package private) java.lang.Stringmake(OoxmlFacade ooxml, NiceXmlMessageSpec spec)private intstringLengthOf(int i)
-
-
-
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
-
-
Method Detail
-
make
java.lang.String make(OoxmlFacade ooxml, NiceXmlMessageSpec spec)
-
stringLengthOf
private int stringLengthOf(int i)
-
addLineNum
private java.lang.String addLineNum(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad)
-
-