java.lang.Object
com.aoapps.tldparser.Dates
TLD files may provide dates within special comments inside the XML.
<!-- dateCreated = "ISO 8601" -->:getCreated()<!-- datePublished = "ISO 8601" -->:getPublished()<!-- dateModified = "ISO 8601" -->:getModified()<!-- dateReviewed = "ISO 8601" -->:getReviewed()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DatesfromComments(Element elem, Dates defaultDates) Parses dates from within direct child comments of the given element.This has no equivalent in https://schema.org/, however we feel it is important to actively review content to ensure its accuracy, even when it has not been modified.static DatesGets or creates an instance ofDates.
-
Field Details
-
UNKNOWN
A constant for a set of unknown dates.
-
-
Method Details
-
valueOf
public static Dates valueOf(DateTime created, DateTime published, DateTime modified, DateTime reviewed) Gets or creates an instance ofDates. -
fromComments
Parses dates from within direct child comments of the given element.- Parameters:
elem- The element to find direct child comments ofdefaultDates- The optional default dates for when no date-comments found
-
getCreated
- See Also:
-
getPublished
- See Also:
-
getModified
-
getReviewed
This has no equivalent in https://schema.org/, however we feel it is important to actively review content to ensure its accuracy, even when it has not been modified.
-
