at.tuwien.ifs.somtoolbox.apps.helper
Class VectorFileRewriter

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.helper.VectorFileRewriter
All Implemented Interfaces:
SOMToolboxApp

public class VectorFileRewriter
extends Object
implements SOMToolboxApp

Re-writes an unit description file by replacing the label names of the input vectors as defined by the given mapping file.

Version:
$Id: VectorFileRewriter.java 4267 2012-04-03 14:51:20Z mayer $
Author:
Michael Dittenbach, Rudolf Mayer

Nested Class Summary
 
Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
SOMToolboxApp.Type
 
Field Summary
static SOMToolboxApp.Type APPLICATION_TYPE
           
static String DESCRIPTION
           
static String LONG_DESCRIPTION
           
private static com.martiansoftware.jsap.Parameter[] OPTIONS
           
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
 
Constructor Summary
VectorFileRewriter()
           
 
Method Summary
static String getReplacement(Hashtable<String,String> mapping, String[] keys, String token, OptionFactory.MatchMode matchMode)
           
static void main(String[] args)
           
private static Hashtable<String,String> readMappingFile(String fName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTIONS

private static final com.martiansoftware.jsap.Parameter[] OPTIONS

DESCRIPTION

public static String DESCRIPTION

LONG_DESCRIPTION

public static String LONG_DESCRIPTION

APPLICATION_TYPE

public static final SOMToolboxApp.Type APPLICATION_TYPE
Constructor Detail

VectorFileRewriter

public VectorFileRewriter()
Method Detail

main

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

getReplacement

public static String getReplacement(Hashtable<String,String> mapping,
                                    String[] keys,
                                    String token,
                                    OptionFactory.MatchMode matchMode)

readMappingFile

private static Hashtable<String,String> readMappingFile(String fName)
                                                 throws IOException
Throws:
IOException