Package org.docx4j.toc.switches
Class AbstractSwitch
java.lang.Object
org.docx4j.toc.switches.AbstractSwitch
- All Implemented Interfaces:
SwitchInterface
public abstract class AbstractSwitch extends java.lang.Object implements SwitchInterface
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEMPTYstatic java.lang.StringERROR_NOT_VALID_HEADING_LEVEL -
Constructor Summary
Constructors Constructor Description AbstractSwitch() -
Method Summary
Modifier and Type Method Description intgetEndLevel()intgetStartLevel()java.util.Map<java.lang.String,java.lang.Integer>getStyleLevelMap()booleanisStyleSwitch()java.lang.StringparseFieldArgument(java.lang.String fieldArgument)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.docx4j.toc.switches.SwitchInterface
getPriority, hasFieldArgument, process
-
Field Details
-
EMPTY
public static final java.lang.String EMPTY- See Also:
- Constant Field Values
-
ERROR_NOT_VALID_HEADING_LEVEL
public static final java.lang.String ERROR_NOT_VALID_HEADING_LEVEL- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractSwitch
public AbstractSwitch()
-
-
Method Details
-
parseFieldArgument
public java.lang.String parseFieldArgument(java.lang.String fieldArgument)- Specified by:
parseFieldArgumentin interfaceSwitchInterface
-
isStyleSwitch
public boolean isStyleSwitch()- Specified by:
isStyleSwitchin interfaceSwitchInterface
-
getStartLevel
public int getStartLevel() -
getEndLevel
public int getEndLevel() -
getStyleLevelMap
public java.util.Map<java.lang.String,java.lang.Integer> getStyleLevelMap()
-