Class DueDateURLs

  • All Implemented Interfaces:
    SpecialURL

    public class DueDateURLs
    extends java.lang.Object
    implements SpecialURL
    Implements URL rewriting in course documents. [text](due:) where text is a date/time in ISO 8601 format YYYY-MM-DDThh:mm, is formatted so a span of class date with a more conventional format, preceded by "Due: ". No support at the moment for time zones. May add that later.
    • Constructor Summary

      Constructors 
      Constructor Description
      DueDateURLs()
      Create a URL rewriter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean applyTo​(org.w3c.dom.Element link, java.lang.String linkAttr)
      Checks to see if a linking element (a or img) uses a special protocol label and, if so, attempts to rewrite the element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DueDateURLs

        public DueDateURLs()
        Create a URL rewriter.
    • Method Detail

      • applyTo

        public final boolean applyTo​(org.w3c.dom.Element link,
                                     java.lang.String linkAttr)
        Checks to see if a linking element (a or img) uses a special protocol label and, if so, attempts to rewrite the element.
        Specified by:
        applyTo in interface SpecialURL
        Parameters:
        link - an element containing a URL
        linkAttr - name of the attribute containing the URL
        Returns:
        true if the element has been rewritten.