Class TagManager

java.lang.Object
com.ldtteam.structurize.util.TagManager

public class TagManager extends Object
Handles tags.
  • Constructor Details

    • TagManager

      public TagManager()
  • Method Details

    • registerGlobalTagOption

      public static void registerGlobalTagOption(String tag)
      Register a new global tag option.
      Parameters:
      tag - the option to register.
    • registerSpecificTagOption

      public static void registerSpecificTagOption(String tag, Predicate<IAnchorBlock> predicate)
      Register a block specific tag option.
      Parameters:
      tag - the tag to register.
      predicate - the predicate that has to apply.
    • getMatchingTagOptions

      public static Collection<String> getMatchingTagOptions(IAnchorBlock block)
      Get all matching tag options for a block.
      Parameters:
      block - the block to match.
      Returns:
      collection of options.
    • getGlobalTagOptions

      public static Collection<String> getGlobalTagOptions()
      Get all global tag options.
      Returns:
      the collection of global tag options.