Package org.apache.velocity.anakia
Class AnakiaTask.Context
java.lang.Object
org.apache.velocity.anakia.AnakiaTask.Context
- Enclosing class:
- AnakiaTask
A context implementation that loads all values from an XML file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom.Document
Retrieve the context document object.long
Retrieve the time the source file was last modified.getName()
Get the name of the context.void
Build the context based on a file path.void
Set the name of the context.
-
Constructor Details
-
Context
public Context()Public constructor.
-
-
Method Details
-
getName
Get the name of the context.- Returns:
- The name of the context.
-
setName
Set the name of the context.- Parameters:
name
-- Throws:
IllegalArgumentException
- if a reserved word is used as a name, specifically any of "relativePath", "treeWalk", "xpath", "escape", "date", or "project"
-
setFile
Build the context based on a file path.- Parameters:
file
-
-
getLastModified
public long getLastModified()Retrieve the time the source file was last modified.- Returns:
- The time the source file was last modified.
-
getContextDocument
public org.jdom.Document getContextDocument()Retrieve the context document object.- Returns:
- The context document object.
-