java.lang.Object
com.aoapps.tldparser.Taglib
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 -
Method Summary
-
Constructor Details
-
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:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
-
Taglib
@Deprecated(forRemoval=true) public Taglib(String summaryClass, String tldPath, Dates defaultDates, Document tldDoc, Map<String, String> apiLinks) throws ParserConfigurationException, SAXException, IOException, XPathExpressionExceptionDeprecated, for removal: This API element is subject to removal in a future version.apiLinks
is unused, please useTaglib(java.lang.String, java.lang.String, com.aoapps.tldparser.Dates, org.w3c.dom.Document)
instead.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:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
-
-
Method Details
-
getTldPath
-
getDates
-
getAllowRobots
-
getDescriptions
-
getDisplayNames
-
getTlibVersion
-
getShortName
-
getUri
-
getTag
-
getTags
-
getTagsEffectiveDates
Gets the effective dates for the all tags.- Returns:
- the effective dates or
null
when there are no tags
-
getFunction
-
getFunctions
-
getFunctionsEffectiveDates
Gets the effective dates for the all functions.- Returns:
- the effective dates or
null
when there are no functions
-
getTaglibEffectiveDates
Gets the effective dates for the taglib overall, including itself along with all tags and functions.
-
apiLinks
is unused, please useTaglib(java.lang.String, java.lang.String, com.aoapps.tldparser.Dates, org.w3c.dom.Document)
instead.