public class MacroCall extends Object
| Constructor and Description |
|---|
MacroCall()
Creates a new empty macro call.
|
MacroCall(String startMacroComment)
Creates a new macro call from a start comment node's value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArgument(String name) |
String |
getContent() |
String |
getName() |
String |
removeArgument(String name)
Removes the specified argument from this macro call.
|
String |
setArgument(String name,
String value)
Sets the value of the specified argument.
|
void |
setContent(String content)
Sets the content of the macro.
|
void |
setName(String name)
Sets the name of the macro to be called.
|
String |
toString() |
public MacroCall()
public MacroCall(String startMacroComment)
startMacroComment - the value of a start macro commentpublic String getName()
public void setName(String name)
name - a macro namepublic String getArgument(String name)
name - the name of an argumentpublic String setArgument(String name, String value)
name - the name of the argumentvalue - the value of the argumentnull if this argument was not specifiedpublic String removeArgument(String name)
name - the name of a macro parameterpublic void setContent(String content)
content - the content of the macroCopyright © 2004–2016 XWiki. All rights reserved.