Package org.docx4j.toc.switches
Class NSwitch
java.lang.Object
org.docx4j.toc.switches.AbstractSwitch
org.docx4j.toc.switches.FormattingSwitch
org.docx4j.toc.switches.NSwitch
- All Implemented Interfaces:
SwitchInterface
page Numbers switch
Per http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/TOC.html
Without field-argument, omits page numbers from the table of contents.
Page numbers are omitted from all levels unless a range of entry levels
is specified by text in this switch's field-argument.
A range is specified as for \l.
-
Field Summary
FieldsFields inherited from class org.docx4j.toc.switches.AbstractSwitch
EMPTY, ERROR_NOT_VALID_HEADING_LEVEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanparseFieldArgument(String fieldArgument) Default implementation doesn't need to parse at all.voidprocess(Style s, SwitchProcessorInterface sp) Methods inherited from class org.docx4j.toc.switches.AbstractSwitch
getEndLevel, getStartLevel, getStyleLevelMap, isSelectorSwitch, prepareArgument
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
NSwitch
public NSwitch()
-
-
Method Details
-
hasFieldArgument
public boolean hasFieldArgument() -
process
-
parseFieldArgument
Description copied from class:AbstractSwitchDefault implementation doesn't need to parse at all.- Specified by:
parseFieldArgumentin interfaceSwitchInterface- Overrides:
parseFieldArgumentin classAbstractSwitch- Parameters:
fieldArgument- .- Returns:
- error string if any for exception
-
pageNumbers
public boolean pageNumbers() -
getPriority
public int getPriority()
-