Package org.docx4j.toc.switches
Class TSwitch
java.lang.Object
org.docx4j.toc.switches.AbstractSwitch
org.docx4j.toc.switches.SelectorSwitch
org.docx4j.toc.switches.TSwitch
- All Implemented Interfaces:
SwitchInterface
sTyle switch
Per http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/TOC.html
Uses paragraphs formatted with (or based on) styles other than the built-in heading styles.
text in this switch's field-argument specifies those styles as a set of comma-separated doublets,
with each doublet being a comma-separated set of style name and table of content level.
\t can be combined with \o.
-
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, prepareArgument
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
TSwitch
public TSwitch()
-
-
Method Details
-
process
-
isSelectorSwitch
public boolean isSelectorSwitch()- Overrides:
isSelectorSwitchin classAbstractSwitch
-
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
-
hasFieldArgument
public boolean hasFieldArgument() -
getPriority
public int getPriority()
-