org.ujac.util.table
Class TableHelper

java.lang.Object
  extended by org.ujac.util.table.TableHelper

public class TableHelper
extends Object

Name: TableHelper
Description: Provides global helper methods for table handling.

Author:
lauerc

Constructor Summary
TableHelper()
           
 
Method Summary
static int getAlignmentId(String align)
          Gets the id of the given textual alignment representation.
static String getAlignmentName(int align)
          Gets the textual representation of the given alignment value.
static int getColumnTypeId(String columnTypeName)
          Gets the ID from the given column type name.
static String getColumnTypeName(int columnTypeId)
          Gets the ID from the given column type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHelper

public TableHelper()
Method Detail

getColumnTypeId

public static final int getColumnTypeId(String columnTypeName)
                                 throws TableException
Gets the ID from the given column type name.

Parameters:
columnTypeName - The column type name to convert.
Returns:
The according type ID.
Throws:
TableException - In case the conversion failed.

getColumnTypeName

public static final String getColumnTypeName(int columnTypeId)
                                      throws TableException
Gets the ID from the given column type name.

Parameters:
columnTypeId - The column type ID to convert.
Returns:
The according type name.
Throws:
TableException - In case the conversion failed.

getAlignmentId

public static final int getAlignmentId(String align)
Gets the id of the given textual alignment representation.

Parameters:
align - The alignment name to parse.
Returns:
The id of the given textual alignment representation.

getAlignmentName

public static final String getAlignmentName(int align)
Gets the textual representation of the given alignment value.

Parameters:
align - The alignment id to get the name for.
Returns:
The textual representation of the given alignment.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.