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

Throws:
XavaException