org.apache.velocity.anakia
Class AnakiaTask.Context

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

public class AnakiaTask.Context
extends java.lang.Object

A context implementation that loads all values from an XML file.


Field Summary
private  org.jdom.Document contextDoc
           
private  java.lang.String file
           
private  java.lang.String name
           
 
Constructor Summary
AnakiaTask.Context()
          Public constructor.
 
Method Summary
 org.jdom.Document getContextDocument()
          Retrieve the context document object.
 long getLastModified()
          Retrieve the time the source file was last modified.
 java.lang.String getName()
          Get the name of the context.
 void setFile(java.lang.String file)
          Build the context based on a file path.
 void setName(java.lang.String name)
          Set the name of the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

contextDoc

private org.jdom.Document contextDoc

file

private java.lang.String file
Constructor Detail

AnakiaTask.Context

public AnakiaTask.Context()
Public constructor.

Method Detail

getName

public java.lang.String getName()
Get the name of the context.


setName

public void setName(java.lang.String name)
Set the name of the context.

Throws:
java.lang.IllegalArgumentException - if a reserved word is used as a name, specifically any of "relativePath", "treeWalk", "xpath", "escape", "date", or "project"

setFile

public void setFile(java.lang.String file)
Build the context based on a file path.


getLastModified

public long getLastModified()
Retrieve the time the source file was last modified.


getContextDocument

public org.jdom.Document getContextDocument()
Retrieve the context document object.



Copyright ? 2002 Apache Software Foundation. All Rights Reserved.