junitx.ddtunit.data.processing
Class TypeAbbreviator

java.lang.Object
  extended by junitx.ddtunit.data.processing.TypeAbbreviator

public class TypeAbbreviator
extends Object

Author:
jg

Field Summary
static String TYPEABBREVIATOR_PROPERTIES
          Properties file containing shortcut to java type mappings
 
Method Summary
static TypeAbbreviator getInstance()
          Provide singleton reference on a TypeAbbreviator class.
static void main(String[] argv)
           
 String resolve(String shortcut)
          Check for java type shortcut in internal type dictionary.
 int size()
           
 String toString()
          Print out Mapping definitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPEABBREVIATOR_PROPERTIES

public static final String TYPEABBREVIATOR_PROPERTIES
Properties file containing shortcut to java type mappings

See Also:
Constant Field Values
Method Detail

getInstance

public static final TypeAbbreviator getInstance()
                                         throws IOException
Provide singleton reference on a TypeAbbreviator class.

Returns:
instance of TypeAbbreviator
Throws:
IOException

resolve

public String resolve(String shortcut)
Check for java type shortcut in internal type dictionary. If nothing found, the original type is returned else the expanded type.

Parameters:
shortcut - to resolve
Returns:
resolved form if exists or shortcut input if no dictionary entry

toString

public String toString()
Print out Mapping definitions.

Overrides:
toString in class Object

size

public int size()
Returns:
Number of abbreviation entries in dictionary

main

public static void main(String[] argv)
                 throws IOException
Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.