Package edu.odu.cs.cowem.documents.urls
Class DueDateURLs
- java.lang.Object
-
- edu.odu.cs.cowem.documents.urls.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 booleanapplyTo(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.
-
-
-
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:
applyToin interfaceSpecialURL- Parameters:
link- an element containing a URLlinkAttr- name of the attribute containing the URL- Returns:
- true if the element has been rewritten.
-
-