Package org.docx4j.toc.switches
Class TSwitch
java.lang.Object
org.docx4j.toc.switches.AbstractSwitch
org.docx4j.toc.switches.TSwitch
- All Implemented Interfaces:
SwitchInterface
public class TSwitch extends AbstractSwitch
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
Fields Modifier and Type Field Description static java.lang.String
ID
Fields inherited from class org.docx4j.toc.switches.AbstractSwitch
EMPTY, ERROR_NOT_VALID_HEADING_LEVEL
-
Constructor Summary
Constructors Constructor Description TSwitch()
-
Method Summary
Modifier and Type Method Description int
getPriority()
boolean
hasFieldArgument()
boolean
isStyleSwitch()
java.lang.String
parseFieldArgument(java.lang.String fieldArgument)
void
process(Style s, SwitchProcessor sp)
Methods inherited from class org.docx4j.toc.switches.AbstractSwitch
getEndLevel, getStartLevel, getStyleLevelMap
-
Field Details
-
ID
public static final java.lang.String ID- See Also:
- Constant Field Values
-
-
Constructor Details
-
TSwitch
public TSwitch()
-
-
Method Details
-
process
-
isStyleSwitch
public boolean isStyleSwitch()- Specified by:
isStyleSwitch
in interfaceSwitchInterface
- Overrides:
isStyleSwitch
in classAbstractSwitch
-
parseFieldArgument
public java.lang.String parseFieldArgument(java.lang.String fieldArgument)- Specified by:
parseFieldArgument
in interfaceSwitchInterface
- Overrides:
parseFieldArgument
in classAbstractSwitch
-
hasFieldArgument
public boolean hasFieldArgument() -
getPriority
public int getPriority()
-