Package com.ldtteam.structurize.api
Class TagManager
java.lang.Object
com.ldtteam.structurize.api.TagManager
Handles tags.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String> Get all global tag options.static Collection<String> Get all matching tag options for a block.static voidRegister a new global tag option.static voidregisterSpecificTagOption(String tag, Predicate<IAnchorBlock> predicate) Register a block specific tag option.
-
Constructor Details
-
TagManager
public TagManager()
-
-
Method Details
-
registerGlobalTagOption
Register a new global tag option.- Parameters:
tag- the option to register.
-
registerSpecificTagOption
Register a block specific tag option.- Parameters:
tag- the tag to register.predicate- the predicate that has to apply.
-
getMatchingTagOptions
Get all matching tag options for a block.- Parameters:
block- the block to match.- Returns:
- collection of options.
-
getGlobalTagOptions
Get all global tag options.- Returns:
- the collection of global tag options.
-