com.instantbank.lettertemplate.control.web
Class ScreenFlowXmlDAO

java.lang.Object
  |
  +--com.instantbank.lettertemplate.control.web.ScreenFlowXmlDAO

public class ScreenFlowXmlDAO
extends java.lang.Object

This class provides the data bindings for the screendefinitions.xml and the requestmappings.xml files. The data obtained is maintained by the ScreenFlowManager (clase DAO para procesar archivos xml con la definicion de pantallazos y de sus transiciones)

Author:
Instant-bank (Consuelo Franky)

Field Summary
private static Debug debug
           
static java.lang.String DIRECT
           
static java.lang.String FLOW_HANDLER
           
static java.lang.String FLOW_HANDLER_CLASS
           
static java.lang.String HANDLER_RESULT
           
static java.lang.String KEY
           
static java.lang.String LANGUAGE
           
static java.lang.String NEXT_SCREEN
           
static java.lang.String PARAMETER
           
static java.lang.String REQUEST_HANDLER_CLASS
           
static java.lang.String RESULT
           
static java.lang.String SCREEN
           
static java.lang.String SCREEN_DEFINITION
           
static java.lang.String SCREEN_NAME
           
static java.lang.String TEMPLATE
           
static java.lang.String URL
           
static java.lang.String URL_MAPPING
           
static java.lang.String USE_FLOW_HANDLER
           
static java.lang.String USE_REQUEST_HANDLER
           
static java.lang.String VALUE
           
 
Constructor Summary
ScreenFlowXmlDAO()
           
 
Method Summary
(package private) static void ()
           
private static java.util.HashMap getParameters(org.w3c.dom.Node node)
          auxiliary method for getScreens() that builds parameters sctructure corresponding to a screen
static java.util.HashMap getRequestMappings(org.w3c.dom.Element root)
          auxiliary method for loadRequestMappings() that builds urlMappings structure
static java.util.HashMap getScreenDefinitions(org.w3c.dom.Element root)
          auxliary method for loadScreenDefinitionMappings() that builds screensDefinitionsMappings structure
static java.util.HashMap getScreens(org.w3c.dom.Element root)
          auxiliary method for loadScreenDefinitions() that builds screens structure
private static java.lang.String getSubTagAttribute(org.w3c.dom.Element root, java.lang.String tagName, java.lang.String subTagName, java.lang.String attribute)
          auxiliary method for working with xml tree;
static java.lang.String getSubTagValue(org.w3c.dom.Element root, java.lang.String tagName, java.lang.String subTagName)
          auxiliary method for working with xml tree; invoked by getscreens() and getrequestMappings()
static java.lang.String getSubTagValue(org.w3c.dom.Node node, java.lang.String subTagName)
          auxiliary method for working with xml tree; invoked by getscreens() and getrequestMappings()
static java.lang.String getTagValue(org.w3c.dom.Element root, java.lang.String tagName)
          auxiliary method for working with xml tree; invoked by getscreens()
static org.w3c.dom.Element loadDocument(java.lang.String location)
          build tree from xml file
static java.util.HashMap loadRequestMappings(java.lang.String location)
          loads requestmappings.xml file and returns the equivalent HashMap
static java.util.HashMap loadScreenDefinitionMappings(java.lang.String location)
          load initial data of requestmappings.xml file for getting path of screensdefinitions.xml of each language
static java.util.HashMap loadScreenDefinitions(java.lang.String location)
          loads screendefinitions.xml file and returns the equivalent HashMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

URL_MAPPING

public static final java.lang.String URL_MAPPING

SCREEN_DEFINITION

public static final java.lang.String SCREEN_DEFINITION

URL

public static final java.lang.String URL

LANGUAGE

public static final java.lang.String LANGUAGE

TEMPLATE

public static final java.lang.String TEMPLATE

RESULT

public static final java.lang.String RESULT

NEXT_SCREEN

public static final java.lang.String NEXT_SCREEN

USE_REQUEST_HANDLER

public static final java.lang.String USE_REQUEST_HANDLER

USE_FLOW_HANDLER

public static final java.lang.String USE_FLOW_HANDLER

FLOW_HANDLER_CLASS

public static final java.lang.String FLOW_HANDLER_CLASS

REQUEST_HANDLER_CLASS

public static final java.lang.String REQUEST_HANDLER_CLASS

HANDLER_RESULT

public static final java.lang.String HANDLER_RESULT

FLOW_HANDLER

public static final java.lang.String FLOW_HANDLER

KEY

public static final java.lang.String KEY

VALUE

public static final java.lang.String VALUE

DIRECT

public static final java.lang.String DIRECT

SCREEN

public static final java.lang.String SCREEN

SCREEN_NAME

public static final java.lang.String SCREEN_NAME

PARAMETER

public static final java.lang.String PARAMETER

debug

private static Debug debug
Constructor Detail

ScreenFlowXmlDAO

public ScreenFlowXmlDAO()
Method Detail

static void ()

loadDocument

public static org.w3c.dom.Element loadDocument(java.lang.String location)
build tree from xml file
Parameters:
location -  
Returns:
Element

loadScreenDefinitionMappings

public static java.util.HashMap loadScreenDefinitionMappings(java.lang.String location)
load initial data of requestmappings.xml file for getting path of screensdefinitions.xml of each language
Parameters:
location -  
Returns:
HashMap corresponding to screensDefinitionsMappings

loadScreenDefinitions

public static java.util.HashMap loadScreenDefinitions(java.lang.String location)
loads screendefinitions.xml file and returns the equivalent HashMap
Parameters:
location -  
Returns:
HashMap corresponding to screens

loadRequestMappings

public static java.util.HashMap loadRequestMappings(java.lang.String location)
loads requestmappings.xml file and returns the equivalent HashMap
Parameters:
location -  
Returns:
HashMap corresponding to urlMappings

getScreenDefinitions

public static java.util.HashMap getScreenDefinitions(org.w3c.dom.Element root)
auxliary method for loadScreenDefinitionMappings() that builds screensDefinitionsMappings structure
Parameters:
root -  
Returns:
The screenDefinitions value

getScreens

public static java.util.HashMap getScreens(org.w3c.dom.Element root)
auxiliary method for loadScreenDefinitions() that builds screens structure
Parameters:
root -  
Returns:
The screens value

getParameters

private static java.util.HashMap getParameters(org.w3c.dom.Node node)
auxiliary method for getScreens() that builds parameters sctructure corresponding to a screen
Parameters:
node -  
Returns:
The parameters value

getRequestMappings

public static java.util.HashMap getRequestMappings(org.w3c.dom.Element root)
auxiliary method for loadRequestMappings() that builds urlMappings structure
Parameters:
root -  
Returns:
The requestMappings value

getSubTagValue

public static java.lang.String getSubTagValue(org.w3c.dom.Node node,
                                              java.lang.String subTagName)
auxiliary method for working with xml tree; invoked by getscreens() and getrequestMappings()
Parameters:
node -  
subTagName -  
Returns:
The subTagValue value

getSubTagValue

public static java.lang.String getSubTagValue(org.w3c.dom.Element root,
                                              java.lang.String tagName,
                                              java.lang.String subTagName)
auxiliary method for working with xml tree; invoked by getscreens() and getrequestMappings()
Parameters:
root -  
tagName -  
subTagName -  
Returns:
The subTagValue value

getTagValue

public static java.lang.String getTagValue(org.w3c.dom.Element root,
                                           java.lang.String tagName)
auxiliary method for working with xml tree; invoked by getscreens()
Parameters:
root -  
tagName -  
Returns:
The tagValue value

getSubTagAttribute

private static java.lang.String getSubTagAttribute(org.w3c.dom.Element root,
                                                   java.lang.String tagName,
                                                   java.lang.String subTagName,
                                                   java.lang.String attribute)
auxiliary method for working with xml tree;
Parameters:
root -  
tagName -  
subTagName -  
attribute -  
Returns:
The subTagAttribute value