Class CalendarProcessor
- java.lang.Object
-
- net.anotheria.anosite.content.variables.CalendarProcessor
-
- All Implemented Interfaces:
VariablesProcessor
public class CalendarProcessor extends Object implements VariablesProcessor
Variable processor for dates.- Author:
- h3llka
-
-
Constructor Summary
Constructors Constructor Description CalendarProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringreplace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)Returns variable value for incoming variable parameter.
-
-
-
Method Detail
-
replace
public String replace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)
Returns variable value for incoming variable parameter. If format - which represented by defValue - valid, then variable value will be represented in current format, else default format will be used. @see net.anotheria.anosite.content.variables.CalendarVariableNames). When incoming variable does not exists, or wrong - Wrong or unsupported variable will be returned as well. Variable can't be null will be returned when variable - null.- Specified by:
replacein interfaceVariablesProcessor- Parameters:
prefix- Processor prefixvariable- variable namedefValue- currently string representation of dateFormatreq- request instance- Returns:
- variable value
-
-