Class CSwitch

All Implemented Interfaces:
SwitchInterface

public class CSwitch extends SelectorSwitch
\c field-argument Includes figures, tables, charts, and other items that are numbered by a SEQ field (ยง2.16.5.63). The sequence identifier designated by text in this switch's field-argument, which corresponds to the caption label, shall match the identifier in the corresponding SEQ field.
Since:
11.5.4
  • Field Details

  • Constructor Details

    • CSwitch

      public CSwitch()
  • Method Details

    • getPriority

      public int getPriority()
    • getItemIdentifier

      public String getItemIdentifier()
    • parseFieldArgument

      public String parseFieldArgument(String fieldArgument)
      Description copied from class: AbstractSwitch
      Default implementation doesn't need to parse at all.
      Specified by:
      parseFieldArgument in interface SwitchInterface
      Overrides:
      parseFieldArgument in class AbstractSwitch
      Parameters:
      fieldArgument - .
      Returns:
      error string if any for exception
    • hasFieldArgument

      public boolean hasFieldArgument()
    • process

      public void process(Style s, SwitchProcessorInterface sp)
    • process

      public void process(P p, SwitchProcessorInterface sp)
    • isDetected

      public boolean isDetected()
    • postprocess

      public P postprocess(P p, WordprocessingMLPackage wordMLPackage)
      We detected a SEQ in the P, so before we put the P in the TOC, lets resolve the SEQ to a number.
      Parameters:
      p -
    • extractInstr

      protected static String extractInstr(List<Object> instructions)
    • getIdentifierFromInstr

      protected static String getIdentifierFromInstr(String instr)
      Get the identifier from, for example SEQ Figure \* ARABIC