org.radeox.macro.parameter
Class BaseMacroParameter
java.lang.Object
org.radeox.macro.parameter.BaseMacroParameter
- All Implemented Interfaces:
- MacroParameter
public class BaseMacroParameter
- extends java.lang.Object
- implements MacroParameter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
params
protected java.util.Map params
context
protected RenderContext context
BaseMacroParameter
public BaseMacroParameter()
BaseMacroParameter
public BaseMacroParameter(RenderContext context)
setParams
public void setParams(java.lang.String stringParams)
- Specified by:
setParams
in interface MacroParameter
getContext
public RenderContext getContext()
- Specified by:
getContext
in interface MacroParameter
getParams
public java.util.Map getParams()
- Specified by:
getParams
in interface MacroParameter
getContent
public java.lang.String getContent()
- Specified by:
getContent
in interface MacroParameter
setContent
public void setContent(java.lang.String content)
- Specified by:
setContent
in interface MacroParameter
getLength
public int getLength()
- Specified by:
getLength
in interface MacroParameter
get
public java.lang.String get(java.lang.String index,
int idx)
- Specified by:
get
in interface MacroParameter
get
public java.lang.String get(java.lang.String index)
- Specified by:
get
in interface MacroParameter
get
public java.lang.String get(int index)
- Specified by:
get
in interface MacroParameter
split
public java.util.Map split(java.lang.String aString,
java.lang.String delimiter)
- Splits a String on a delimiter to a List. The function works like
the perl-function split.
- Parameters:
aString
- a String to splitdelimiter
- a delimiter dividing the entries
- Returns:
- a Array of splittet Strings
setStart
public void setStart(int start)
- Specified by:
setStart
in interface MacroParameter
setEnd
public void setEnd(int end)
- Specified by:
setEnd
in interface MacroParameter
getStart
public int getStart()
- Specified by:
getStart
in interface MacroParameter
getEnd
public int getEnd()
- Specified by:
getEnd
in interface MacroParameter
getContentStart
public int getContentStart()
- Specified by:
getContentStart
in interface MacroParameter
setContentStart
public void setContentStart(int contentStart)
- Specified by:
setContentStart
in interface MacroParameter
getContentEnd
public int getContentEnd()
- Specified by:
getContentEnd
in interface MacroParameter
setContentEnd
public void setContentEnd(int contentEnd)
- Specified by:
setContentEnd
in interface MacroParameter