net.sourceforge.argval.collection
Class CollectionUtilConfigFactory

java.lang.Object
  extended by net.sourceforge.argval.collection.CollectionUtilConfigFactory

public class CollectionUtilConfigFactory
extends Object


Field Summary
static String CONFIG_DICTIONARY
           
static String CONFIG_FILE_SEPARATOR
           
static String CONFIG_LIST
           
static String CONFIG_PROPERTY_KEY_SEPARATOR
           
static String CONFIG_TEXT_UNORDERED_LIST
           
static String CONFIG_TUPLE
           
 
Constructor Summary
CollectionUtilConfigFactory()
           
 
Method Summary
static CollectionUtilConfig create(String valueSeparator)
           
 CollectionUtilConfig create(String name, String valueSeparator)
          Creates and registers a configuration, which only makes use of a value separator.
 CollectionUtilConfig getConfig(String name)
           
 void setConfig(String name, CollectionUtilConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE_SEPARATOR

public static final String CONFIG_FILE_SEPARATOR
See Also:
Constant Field Values

CONFIG_PROPERTY_KEY_SEPARATOR

public static final String CONFIG_PROPERTY_KEY_SEPARATOR
See Also:
Constant Field Values

CONFIG_LIST

public static final String CONFIG_LIST
See Also:
Constant Field Values

CONFIG_TUPLE

public static final String CONFIG_TUPLE
See Also:
Constant Field Values

CONFIG_DICTIONARY

public static final String CONFIG_DICTIONARY
See Also:
Constant Field Values

CONFIG_TEXT_UNORDERED_LIST

public static final String CONFIG_TEXT_UNORDERED_LIST
See Also:
Constant Field Values
Constructor Detail

CollectionUtilConfigFactory

public CollectionUtilConfigFactory()
Method Detail

create

public CollectionUtilConfig create(String name,
                                   String valueSeparator)
Creates and registers a configuration, which only makes use of a value separator. This can be used to concatinate directory and file structures, or class names (including their packages names). When having a List of directory names like [ "com", "company", "project"] and a configuration with "/" as separator this can concatinated to "com/company/project". Or "com.company.project", when "." us used as separator.

Parameters:
name - The name under which the configuration is registered.
valueSeparator - The value separator to use.
Returns:
The configuration.

create

public static CollectionUtilConfig create(String valueSeparator)

setConfig

public void setConfig(String name,
                      CollectionUtilConfig config)

getConfig

public CollectionUtilConfig getConfig(String name)


Copyright © 2013 Verhagen Software. All Rights Reserved.