- java.lang.Object
-
- com.aoapps.tldparser.Taglib
-
public class Taglib extends Object
Models the *.tld file overall.TODO: Warn when using defaultDates?
TODO: When a taglib is expected to have all dates specified, disallow default dates and error instead?
TODO: Use a Callable to get defaultDates when first needed. This will avoid overhead when not needed.
TODO: Parse all elements and error if dates found in wrong places?
-
-
Constructor Summary
Constructors Constructor Description Taglib(String summaryClass, String tldPath, Dates defaultDates, Document tldDoc)Extracts the components of an XML-parsed *.tld file.Taglib(String summaryClass, String tldPath, Dates defaultDates, Document tldDoc, Map<String,String> apiLinks)Deprecated.apiLinksis unused, please useTaglib(java.lang.String, java.lang.String, com.aoapps.tldparser.Dates, org.w3c.dom.Document)instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAllowRobots()DatesgetDates()List<String>getDescriptions()List<String>getDisplayNames()Map<String,Function>getFunction()List<Function>getFunctions()DatesgetFunctionsEffectiveDates()Gets the effective dates for the all functions.StringgetShortName()Map<String,Tag>getTag()DatesgetTaglibEffectiveDates()Gets the effective dates for the taglib overall, including itself along with all tags and functions.List<Tag>getTags()DatesgetTagsEffectiveDates()Gets the effective dates for the all tags.StringgetTldPath()StringgetTlibVersion()StringgetUri()
-
-
-
Constructor Detail
-
Taglib
public Taglib(String summaryClass, String tldPath, Dates defaultDates, Document tldDoc) throws ParserConfigurationException, SAXException, IOException, XPathExpressionException
Extracts the components of an XML-parsed *.tld file.- Parameters:
summaryClass- The CSS class that marks elements to be included in summariestldPath- The path to the taglib, used for error messages onlydefaultDates- The optional default dates for when no date-comments foundtldDoc- The document that has already been parsed- Throws:
ParserConfigurationExceptionSAXExceptionIOExceptionXPathExpressionException
-
Taglib
@Deprecated public Taglib(String summaryClass, String tldPath, Dates defaultDates, Document tldDoc, Map<String,String> apiLinks) throws ParserConfigurationException, SAXException, IOException, XPathExpressionException
Deprecated.apiLinksis unused, please useTaglib(java.lang.String, java.lang.String, com.aoapps.tldparser.Dates, org.w3c.dom.Document)instead.
-
-
Method Detail
-
getTldPath
public String getTldPath()
-
getDates
public Dates getDates()
-
getAllowRobots
public Boolean getAllowRobots()
-
getTlibVersion
public String getTlibVersion()
-
getShortName
public String getShortName()
-
getUri
public String getUri()
-
getTagsEffectiveDates
public Dates getTagsEffectiveDates()
Gets the effective dates for the all tags.- Returns:
- the effective dates or
nullwhen there are no tags
-
getFunctionsEffectiveDates
public Dates getFunctionsEffectiveDates()
Gets the effective dates for the all functions.- Returns:
- the effective dates or
nullwhen there are no functions
-
getTaglibEffectiveDates
public Dates getTaglibEffectiveDates()
Gets the effective dates for the taglib overall, including itself along with all tags and functions.
-
-