org.objectledge.parameters
Class SortedParameters

java.lang.Object
  extended by org.objectledge.parameters.DefaultParameters
      extended by org.objectledge.parameters.SortedParameters
All Implemented Interfaces:
Parameters

public class SortedParameters
extends DefaultParameters

An implementation of parameters container which sorts parameter keys.

Version:
$Id: SortedParameters.java,v 1.2 2006/02/08 18:24:45 zwierzem Exp $
Author:
Damian Gajda

Field Summary
 
Fields inherited from class org.objectledge.parameters.DefaultParameters
map, TRUE
 
Constructor Summary
SortedParameters()
          Create the empty container.
SortedParameters(InputStream is, String encoding)
          Create the container and feed it with configuration given as string.
SortedParameters(Parameters source)
          Create the container as a copy of source container.
SortedParameters(String configuration)
          Create the container and feed it with configuration given as string.
 
Method Summary
protected  void setupMap()
          The chosen map implementation is a TreeMap.
 
Methods inherited from class org.objectledge.parameters.DefaultParameters
add, add, add, add, add, add, add, add, add, add, add, add, add, get, get, getBoolean, getBoolean, getBooleans, getChild, getDate, getDate, getDates, getFloat, getFloat, getFloats, getInt, getInt, getInts, getLong, getLong, getLongs, getParameterNames, getSingleValue, getStrings, isDefined, remove, remove, remove, remove, remove, remove, remove, remove, removeExcept, set, set, set, set, set, set, set, set, set, set, set, set, set, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortedParameters

public SortedParameters()
Create the empty container.


SortedParameters

public SortedParameters(String configuration)
Create the container and feed it with configuration given as string.

Parameters:
configuration - the string representation of the container.

SortedParameters

public SortedParameters(InputStream is,
                        String encoding)
                 throws IOException,
                        UnsupportedEncodingException
Create the container and feed it with configuration given as string.

Parameters:
is - the stream with byte representation of the container.
encoding - the encoding of the source.
Throws:
UnsupportedEncodingException - if the specified encoding is not supported by the JVM.
IOException - if there is an error reading data from the stream.

SortedParameters

public SortedParameters(Parameters source)
Create the container as a copy of source container.

Parameters:
source - the source container.
Method Detail

setupMap

protected void setupMap()
The chosen map implementation is a TreeMap.

Overrides:
setupMap in class DefaultParameters


Copyright © 2003-2006 objectledge.org. All Rights Reserved.