Package org.primefaces.showcase.view.app
Class TagLibrary
- java.lang.Object
-
- org.primefaces.showcase.view.app.TagLibrary
-
@Named @ApplicationScoped public class TagLibrary extends Object
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 Constructor Description TagLibrary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getTags()Returns the map of tag names.StringgetTagVdlComponent(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.
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws ParserConfigurationException- Throws:
ParserConfigurationException
-
getTags
public Map<String,String> 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
public boolean isTagVdlAvailable(String documentationLink)
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.
-
-