mro.util.experimentation
Class MeasureAbbreviationTable

java.lang.Object
  extended by mro.util.experimentation.MeasureAbbreviationTable

public class MeasureAbbreviationTable
extends java.lang.Object


Field Summary
private  java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> abbreviationMap
           
 
Constructor Summary
MeasureAbbreviationTable()
           
 
Method Summary
 void add(java.lang.String abbreviation, java.util.Vector<java.lang.String> measureNames)
           
 java.util.Vector<java.lang.String> get(java.lang.String abbreviation)
           
static void printDTD(java.io.PrintWriter pw)
          Prints the complete DTD of a Table-XML-file to a PrintWriter.
static void printPartDTD(java.io.PrintWriter pw)
          Prints the DTD of a Table-XML-file to a PrintWriter.
 void printPartXML(java.io.PrintWriter pw)
           
static void printTableXSLReference(java.io.PrintWriter pw)
          Prints a reference to the Table-XSL-file to a PrintWriter.
 void printXML(java.io.PrintWriter pw)
          Prints the Table to a PrintWriter.
 void printXSL(java.io.PrintWriter pw)
          Prints a basic XSL-file for Table XML-files to a PrintWriter.
 void save(java.io.File file)
          Saves a Table-object to the specified file.
 void save(java.lang.String fileName)
          Saves a Table-object to a file with the specified file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

abbreviationMap

private java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> abbreviationMap
Constructor Detail

MeasureAbbreviationTable

public MeasureAbbreviationTable()
Method Detail

add

public void add(java.lang.String abbreviation,
                java.util.Vector<java.lang.String> measureNames)

get

public java.util.Vector<java.lang.String> get(java.lang.String abbreviation)

save

public void save(java.lang.String fileName)
          throws java.io.IOException
Saves a Table-object to a file with the specified file name.

Throws:
java.io.IOException

save

public void save(java.io.File file)
          throws java.io.IOException
Saves a Table-object to the specified file.

Throws:
java.io.IOException

printDTD

public static void printDTD(java.io.PrintWriter pw)
                     throws java.io.IOException
Prints the complete DTD of a Table-XML-file to a PrintWriter.

Throws:
java.io.IOException

printPartDTD

public static void printPartDTD(java.io.PrintWriter pw)
                         throws java.io.IOException
Prints the DTD of a Table-XML-file to a PrintWriter. Only the elements. This method may be used when the Table-XML should be part of a larger XML.

Throws:
java.io.IOException

printTableXSLReference

public static void printTableXSLReference(java.io.PrintWriter pw)
                                   throws java.io.IOException
Prints a reference to the Table-XSL-file to a PrintWriter.

Throws:
java.io.IOException

printXML

public void printXML(java.io.PrintWriter pw)
              throws java.io.IOException
Prints the Table to a PrintWriter.

Throws:
java.io.IOException

printPartXML

public void printPartXML(java.io.PrintWriter pw)
                  throws java.io.IOException
Throws:
java.io.IOException

printXSL

public void printXSL(java.io.PrintWriter pw)
              throws java.io.IOException
Prints a basic XSL-file for Table XML-files to a PrintWriter.

Throws:
java.io.IOException