org.javagen.agile.oo.naming
Class Collections

java.lang.Object
  extended by org.javagen.agile.oo.naming.Collections

public final class Collections
extends Object

Holds a set of collection interfaces and implementation class names indexed by abstract key names.

The default abstract key names are: SET, SORTED_SET, BAG, LIST, MAP, SORTED_MAP.

Author:
Richard Easterling

Constructor Summary
Collections()
           
 
Method Summary
 String getCollectionKey(String _interface)
           
 String getDefaultCollectionKey()
           
 String getImplementation(String collectionKey)
           
static Collections getInstance()
           
 String getInterface(String collectionKey)
           
 void setCollectionImplementations(Map<String,String> collectionImplementations)
           
 void setCollectionInterfaces(Map<String,String> collectionInterfaces)
           
 void setDefaultCollectionKey(String defaultCollectionKey)
           
 boolean validateKey(String key, boolean throwException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

getInstance

public static Collections getInstance()

getInterface

public String getInterface(String collectionKey)

getImplementation

public String getImplementation(String collectionKey)

validateKey

public boolean validateKey(String key,
                           boolean throwException)

getCollectionKey

public String getCollectionKey(String _interface)

setCollectionImplementations

public void setCollectionImplementations(Map<String,String> collectionImplementations)

setCollectionInterfaces

public void setCollectionInterfaces(Map<String,String> collectionInterfaces)

getDefaultCollectionKey

public String getDefaultCollectionKey()

setDefaultCollectionKey

public void setDefaultCollectionKey(String defaultCollectionKey)


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.