org.apache.maven.doxia.macro
Class MacroRequest

java.lang.Object
  extended by org.apache.maven.doxia.macro.MacroRequest

public class MacroRequest
extends Object

MacroRequest class.

Since:
1.0
Version:
$Id: MacroRequest.java 1090706 2011-04-09 23:15:28Z hboutemy $
Author:
Jason van Zyl

Constructor Summary
MacroRequest(Map<String,Object> param, File base)
          Constructor.
 
Method Summary
 File getBasedir()
          Returns the current base directory.
 Object getParameter(String key)
          Returns on object from the map of parameters that corresponds to the given key.
 Map<String,Object> getParameters()
          Returns the map of parameters.
 void setBasedir(File base)
          Sets the current base directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroRequest

public MacroRequest(Map<String,Object> param,
                    File base)
Constructor.

Parameters:
param - A map of parameters.
base - The current base directory.
Method Detail

getBasedir

public File getBasedir()
Returns the current base directory.

Returns:
The base dir.

setBasedir

public void setBasedir(File base)
Sets the current base directory.

Parameters:
base - The current base directory.

getParameters

public Map<String,Object> getParameters()
Returns the map of parameters.

Returns:
The map of parameters.

getParameter

public Object getParameter(String key)
Returns on object from the map of parameters that corresponds to the given key.

Parameters:
key - The key to lookup the object.
Returns:
The value object.


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.