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 boolean
isInternalParameter
(String name) isInternalParameter.void
setBasedir
(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
- aString
object.parser
- a newAbstractParser
object acting as secondary parser.param
- aMap
object.basedir
- aFile
object.
-
-
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
String
object.
-
getParser
getParser.
- Returns:
- a
Parser
object. This is a new secondary parser.
-
isInternalParameter
isInternalParameter.
- Parameters:
name
- aString
object.- Returns:
- a boolean.
-