public class MacroRequest extends Object
MacroRequest class.
Constructor and Description |
---|
MacroRequest(String sourceContent,
AbstractParser parser,
Map<String,Object> param,
File basedir)
Constructor for MacroRequest.
|
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()
getParser.
|
String |
getSourceContent()
getSourceContent.
|
static boolean |
isInternalParameter(String name)
isInternalParameter.
|
void |
setBasedir(File base)
Sets the current base directory.
|
public MacroRequest(String sourceContent, AbstractParser parser, Map<String,Object> param, File basedir)
Constructor for MacroRequest.
sourceContent
- a String
object.parser
- a new AbstractParser
object acting as secondary parser.param
- a Map
object.basedir
- a File
object.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()
getSourceContent.
String
object.public Parser getParser()
getParser.
Parser
object. This is a new secondary parser.public static boolean isInternalParameter(String name)
isInternalParameter.
name
- a String
object.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.