Class IndexedRun
java.lang.Object
org.wickedsource.docxstamper.replace.IndexedRun
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedRun(int startIndex, int endIndex, int indexInParent, org.docx4j.wml.R run) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintorg.docx4j.wml.RgetRun()intinthashCode()booleanisTouchedByRange(int globalStartIndex, int globalEndIndex) Determines whether the specified range of start and end index touches this run.voidReplaces the substring starting at the given index with the given replacement string.toString()
-
Constructor Details
-
IndexedRun
public IndexedRun(int startIndex, int endIndex, int indexInParent, org.docx4j.wml.R run)
-
-
Method Details
-
getLength
public int getLength() -
getStartIndex
public int getStartIndex() -
getEndIndex
public int getEndIndex() -
getIndexInParent
public int getIndexInParent() -
getRun
public org.docx4j.wml.R getRun() -
isTouchedByRange
public boolean isTouchedByRange(int globalStartIndex, int globalEndIndex) Determines whether the specified range of start and end index touches this run. -
replace
Replaces the substring starting at the given index with the given replacement string.- Parameters:
globalStartIndex- the global index (meaning the index relative to multiple aggregated runs) at which to start the replacement.globalEndIndex- the global index (meaning the index relative to multiple aggregated runs) at which to end the replacement.replacement- the string to replace the substring at the specified global index.
-
equals
-
hashCode
public int hashCode() -
toString
-