Package org.openxava.formatters
Class BaseFormatter
- java.lang.Object
-
- org.openxava.formatters.BaseFormatter
-
- All Implemented Interfaces:
IFormatter
- Direct Known Subclasses:
IconListFormatter
public abstract class BaseFormatter extends java.lang.Object implements IFormatter
Base formatter that allow to access to context object in current module.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description BaseFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
get(javax.servlet.http.HttpServletRequest request, java.lang.String name)
Get a object from the context of the current module.protected java.lang.Object
get(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.String className)
Get a object from the context of the current module.protected java.lang.Integer
getInteger(javax.servlet.http.HttpServletRequest request, java.lang.String name)
Get a Integer object from the context of the current module.protected java.lang.String
getString(javax.servlet.http.HttpServletRequest request, java.lang.String name)
Get a String object from the context of the current module.protected void
put(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.Object value)
Put a object in the context of the current module.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openxava.formatters.IFormatter
format, parse
-
-
-
-
Method Detail
-
put
protected void put(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.Object value) throws XavaException
Put a object in the context of the current module.- Throws:
XavaException
-
get
protected java.lang.Object get(javax.servlet.http.HttpServletRequest request, java.lang.String name) throws XavaException
Get a object from the context of the current module.- Throws:
XavaException
-
get
protected java.lang.Object get(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.String className) throws XavaException
Get a object from the context of the current module.- Throws:
XavaException
-
getString
protected java.lang.String getString(javax.servlet.http.HttpServletRequest request, java.lang.String name) throws XavaException
Get a String object from the context of the current module.- Throws:
XavaException
-
getInteger
protected java.lang.Integer getInteger(javax.servlet.http.HttpServletRequest request, java.lang.String name) throws XavaException
Get a Integer object from the context of the current module.- Throws:
XavaException
-
-