Class ContextLines
java.lang.Object
com.github.oowekyala.ooxml.messages.ContextLines
Helper object that contains the lines around a specific
XmlPosition.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @com.github.oowekyala.ooxml.messages.Annots.ZeroBased intIndex in the list of the line that has the error.private final @com.github.oowekyala.ooxml.messages.Annots.OneBased intLine number of the first line of the list in the real document -
Constructor Summary
ConstructorsConstructorDescriptionContextLines(List<String> lines, @com.github.oowekyala.ooxml.messages.Annots.OneBased int first, int errorIdx) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringaddLineNum(@com.github.oowekyala.ooxml.messages.Annots.ZeroBased int idx, int pad) (package private) Stringmake(OoxmlFacade ooxml, NiceXmlMessageSpec spec) private intstringLengthOf(int i)
-
Field Details
-
first
private final @com.github.oowekyala.ooxml.messages.Annots.OneBased int firstLine number of the first line of the list in the real document -
errorIdx
private final @com.github.oowekyala.ooxml.messages.Annots.ZeroBased int errorIdxIndex in the list of the line that has the error. -
lines
-
-
Constructor Details
-
ContextLines
-
-
Method Details
-
make
-
stringLengthOf
private int stringLengthOf(int i) -
addLineNum
-