Package org.primefaces.showcase.view.app
Class TagLibrary
java.lang.Object
org.primefaces.showcase.view.app.TagLibrary
Parse the primefaces.taglib.xml and stores a map of all available tags.
Used for generating the VDL (View Declaration Language) documentation links.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTags()Returns the map of tag names.getTagVdlComponent(String documentationLink) Gets the VDL (View Declaration Language) component for the given documentation link.voidinit()booleanisTagVdlAvailable(String documentationLink) Checks if the VDL (View Declaration Language) tag is available for the given documentation link.
-
Constructor Details
-
TagLibrary
public TagLibrary()
-
-
Method Details
-
init
@PostConstruct public void init() -
getTags
Returns the map of tag names.- Returns:
- a map where the keys are lowercase tag names and the values are the real tag names.
-
isTagVdlAvailable
Checks if the VDL (View Declaration Language) tag is available for the given documentation link.- Parameters:
documentationLink- the documentation link to check.- Returns:
- true if the VDL tag is available, false otherwise.
-
getTagVdlComponent
Gets the VDL (View Declaration Language) component for the given documentation link.- Parameters:
documentationLink- the documentation link to get the VDL component for.- Returns:
- the VDL component name.
-