public class MacroRequest extends Object
MacroRequest class.
Constructor and Description |
---|
MacroRequest(Map<String,Object> param,
File base)
Deprecated.
prefer other constructor
|
MacroRequest(String sourceContent,
AbstractParser parser,
Map<String,Object> param,
File base) |
Modifier and Type | Method and Description |
---|---|
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.
|
Parser |
getParser() |
String |
getSourceContent() |
static boolean |
isInternalParameter(String name) |
void |
setBasedir(File base)
Sets the current base directory.
|
public MacroRequest(Map<String,Object> param, File base)
param
- A map of parameters.base
- The current base directory.public MacroRequest(String sourceContent, AbstractParser parser, Map<String,Object> param, File base)
public File getBasedir()
public void setBasedir(File base)
base
- The current base directory.public Map<String,Object> getParameters()
public Object getParameter(String key)
key
- The key to lookup the object.public String getSourceContent()
public static boolean isInternalParameter(String name)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.