com.xenonsoft.bridgetown.soa.config
Class MapConfig

java.lang.Object
  extended bycom.xenonsoft.bridgetown.soa.config.MapConfig
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PropertiesCollectionConfig

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

This is an object that stores a map collection of data after parsing the bridgetown XML configuration file. Map collection configuration, it maintains a list of entry configuration elements.

Version:
$Id: MapConfig.java,v 1.4 2005/02/23 01:31:11 peter_pilgrim Exp $
Author:
Peter Pilgrim, Jul 30, 2004 4:56:54 PM
See Also:
Serialized Form

Field Summary
protected  java.util.Map map
          The map collection object
 
Constructor Summary
MapConfig()
          Default constructor
 
Method Summary
 void addEntry(EntryConfig entry)
          Add an entry configuration
protected  java.util.Map createMap()
          Instance method to create the map object type that allows a subclasser can override the type.
 java.util.Map getMap()
          Gets the map
 java.util.List getMapEntryAsList()
          Convenience method to return the list collection of entry configurations (shallow copy)
 void setMap(java.util.Map map)
          Sets the map
 java.lang.String toString()
          Gets debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

protected java.util.Map map
The map collection object

Constructor Detail

MapConfig

public MapConfig()
Default constructor

Method Detail

createMap

protected java.util.Map createMap()
Instance method to create the map object type that allows a subclasser can override the type. This method is called typically inside the constructor Use a list order map to perserve the order of the map collection as they are added from the external configuration.

Returns:
list ordered map collection

getMap

public java.util.Map getMap()
Gets the map

Returns:
Returns the map.

setMap

public void setMap(java.util.Map map)
Sets the map

Parameters:
map - The map to set.

addEntry

public void addEntry(EntryConfig entry)
Add an entry configuration


getMapEntryAsList

public java.util.List getMapEntryAsList()
Convenience method to return the list collection of entry configurations (shallow copy)

Returns:
the list collection of entries

toString

public java.lang.String toString()
Gets debuggable string



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.