Package org.apache.maven.doxia.macro
Class MacroRequest
java.lang.Object
org.apache.maven.doxia.macro.MacroRequest
MacroRequest class.
- Since:
- 1.0
- Author:
- Jason van Zyl
-
Constructor Summary
ConstructorsConstructorDescriptionMacroRequest(String sourceContent, AbstractParser parser, Map<String, Object> param, File basedir) Constructor for MacroRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current base directory.getParameter(String key) Returns on object from the map of parameters that corresponds to the given key.Returns the map of parameters.getParser.getSourceContent.static booleanisInternalParameter(String name) isInternalParameter.voidsetBasedir(File base) Sets the current base directory.
-
Constructor Details
-
MacroRequest
public MacroRequest(String sourceContent, AbstractParser parser, Map<String, Object> param, File basedir) Constructor for MacroRequest.
- Parameters:
sourceContent- aStringobject.parser- a newAbstractParserobject acting as secondary parser.param- aMapobject.basedir- aFileobject.
-
-
Method Details
-
getBasedir
Returns the current base directory.- Returns:
- The base dir.
-
setBasedir
Sets the current base directory.- Parameters:
base- The current base directory.
-
getParameters
Returns the map of parameters.- Returns:
- The map of parameters.
-
getParameter
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.
-
getSourceContent
getSourceContent.
- Returns:
- a
Stringobject.
-
getParser
getParser.
- Returns:
- a
Parserobject. This is a new secondary parser.
-
isInternalParameter
isInternalParameter.
- Parameters:
name- aStringobject.- Returns:
- a boolean.
-