Class BaseFormatter

java.lang.Object
org.openxava.formatters.BaseFormatter
All Implemented Interfaces:
IFormatter
Direct Known Subclasses:
IconListFormatter

public abstract class BaseFormatter extends Object implements IFormatter
Base formatter that allow to access to context object in current module.
Author:
Javier Paniza
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    get(javax.servlet.http.HttpServletRequest request, String name)
    Get a object from the context of the current module.
    protected Object
    get(javax.servlet.http.HttpServletRequest request, String name, String className)
    Get a object from the context of the current module.
    protected Integer
    getInteger(javax.servlet.http.HttpServletRequest request, String name)
    Get a Integer object from the context of the current module.
    protected String
    getString(javax.servlet.http.HttpServletRequest request, String name)
    Get a String object from the context of the current module.
    protected void
    put(javax.servlet.http.HttpServletRequest request, String name, Object value)
    Put a object in the context of the current module.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface IFormatter

    format, parse
  • Constructor Details

    • BaseFormatter

      public BaseFormatter()
  • Method Details

    • put

      protected void put(javax.servlet.http.HttpServletRequest request, String name, Object value) throws XavaException
      Put a object in the context of the current module.
      Throws:
      XavaException
    • get

      protected Object get(javax.servlet.http.HttpServletRequest request, String name) throws XavaException
      Get a object from the context of the current module.
      Throws:
      XavaException
    • get

      protected Object get(javax.servlet.http.HttpServletRequest request, String name, String className) throws XavaException
      Get a object from the context of the current module.
      Throws:
      XavaException
    • getString

      protected String getString(javax.servlet.http.HttpServletRequest request, String name) throws XavaException
      Get a String object from the context of the current module.
      Throws:
      XavaException
    • getInteger

      protected Integer getInteger(javax.servlet.http.HttpServletRequest request, String name) throws XavaException
      Get a Integer object from the context of the current module.
      Throws:
      XavaException