Class AnakiaTask.Context

java.lang.Object
org.apache.velocity.anakia.AnakiaTask.Context
Enclosing class:
AnakiaTask

public class AnakiaTask.Context extends Object
A context implementation that loads all values from an XML file.
  • Constructor Details

    • Context

      public Context()
      Public constructor.
  • Method Details

    • getName

      public String getName()
      Get the name of the context.
      Returns:
      The name of the context.
    • setName

      public void setName(String name)
      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

      public void setFile(String file)
      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.