org.openxava.formatters
Class BaseFormatter

java.lang.Object
  extended by org.openxava.formatters.BaseFormatter
All Implemented Interfaces:
IFormatter

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
BaseFormatter()
           
 
Method Summary
protected  java.lang.Object get(HttpServletRequest request, java.lang.String name)
          Get a object from the context of the current module.
protected  java.lang.Object get(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(HttpServletRequest request, java.lang.String name)
          Get a Integer object from the context of the current module.
protected  java.lang.String getString(HttpServletRequest request, java.lang.String name)
          Get a String object from the context of the current module.
protected  void put(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
 

Constructor Detail

BaseFormatter

public BaseFormatter()
Method Detail

put

protected void put(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(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(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(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(HttpServletRequest request,
                                       java.lang.String name)
                                throws XavaException
Get a Integer object from the context of the current module.

Throws:
XavaException