net.sourceforge.formview.displayer
Class DisplayersConfigResources

java.lang.Object
  extended by net.sourceforge.formview.displayer.DisplayersConfigResources
All Implemented Interfaces:
java.io.Serializable

public class DisplayersConfigResources
extends java.lang.Object
implements java.io.Serializable

Description : Displayers Config Resources wich load file displayers-config.xml

Version:
1.0.0
Author:
Angelo ZERR
See Also:
Serialized Form

Field Summary
protected  org.apache.commons.collections.FastHashMap hDisplayerConfigs
          FastHashMap of DisplayerConfigs stored under a name key.
protected  java.util.List lDisplayerConfigs
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
DisplayersConfigResources(java.io.InputStream in)
          Create a DisplayersConfigResources object from an InputStream.
DisplayersConfigResources(java.io.InputStream[] streams)
          Create a DisplayersConfigResources object from an InputStream.
 
Method Summary
 void addDisplayerConfig(DisplayerConfig displayerConfig)
           
 void addDisplayerConfig(java.lang.String name, DisplayerConfig displayerConfig)
           
 DisplayerConfig getDisplayerConfig(java.lang.String displayerName)
           
 java.util.List getDisplayerConfigs()
           
 void process()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

hDisplayerConfigs

protected org.apache.commons.collections.FastHashMap hDisplayerConfigs
FastHashMap of DisplayerConfigs stored under a name key.


lDisplayerConfigs

protected java.util.List lDisplayerConfigs
Constructor Detail

DisplayersConfigResources

public DisplayersConfigResources(java.io.InputStream in)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Create a DisplayersConfigResources object from an InputStream.

Parameters:
in - InputStream to a displayer-config.xml configuration file. It's the client's responsibility to close this stream.
Throws:
java.io.IOException
org.xml.sax.SAXException - if the displayer-config. XML files are not valid or well formed.

DisplayersConfigResources

public DisplayersConfigResources(java.io.InputStream[] streams)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Create a DisplayersConfigResources object from an InputStream.

Parameters:
stream - displayers-config.xml configuration files that will be read in order and merged into this object. It's the client's responsibility to close these streams.
Throws:
java.io.IOException
org.xml.sax.SAXException - if the displayers-config.xml XML file are not valid or well formed.
Method Detail

process

public void process()

addDisplayerConfig

public void addDisplayerConfig(DisplayerConfig displayerConfig)

addDisplayerConfig

public void addDisplayerConfig(java.lang.String name,
                               DisplayerConfig displayerConfig)

getDisplayerConfig

public DisplayerConfig getDisplayerConfig(java.lang.String displayerName)

getDisplayerConfigs

public java.util.List getDisplayerConfigs()


Copyright 2006 null. All Rights Reserved.