de.folt.constants
Class OpenTMSConstants

java.lang.Object
  extended by de.folt.constants.OpenTMSConstants

public class OpenTMSConstants
extends java.lang.Object

This class defines the constants used in OpenTMS. All the main constants should be added here. An OpenTMS constant should always start with OpenTMS_

Author:
klemens

Field Summary
static int OpenTMS_BUILDELEMET_ERROR
          Constants defines if an xml element could not be generated from a string representation of an element.
static int OpenTMS_DATAMODEL_NOTFOUND_ERROR
          OpenTMS_DATAMODEL_NOTFOUND_ERROR indicates that a given data model was not found
static int OpenTMS_DATASOURCE_NOTFOUND_ERROR
          OpenTMS_DATASOURCE_NOTFOUND_ERROR indicates that a given data source was not found in the DatSourceInstance hash table
static int OpenTMS_DATASOURCECONFIGURATIONFILECREATION_ERROR
          OpenTMS_FILE_NOTFOUND_ERROR indicates that the file specified was not found or does not exist.
static int OpenTMS_EXCEPTION_ERROR
          OpenTMS_EXCEPTION_ERROR indicates an error from an OpenTMS Exception.
static int OpenTMS_FILE_NOTFOUND_ERROR
          OpenTMS_FILE_NOTFOUND_ERROR indicates that the file specified was not found or does not exist.
static int OpenTMS_ID_FAILURE
          OpenTMS_ID_FAILURE is the standard value for a not successful operation.
static int OpenTMS_ID_SUCCESS
          OpenTMS_ID_SUCCESS is the standard value for a successful operation.
static int OpenTMS_IOEXCEPTION
          OpenTMS_IOEXCEPTION - io exception has ocuured.
static java.lang.String OpenTMS_JSONDESERIALISE_EXCEPTION_ERROR_MESSAGE
           
static int OpenTMS_JSONDESERIALISE_EXCEPTION_SERVICE_ERROR
           
static int OpenTMS_NOT_AN_XLIFF_FILE
          The file is not an xliff file
static int OpenTMS_OPENTMSSQLDATASOURCE_ERROR_DATASOURCE_CONFIG_NOT_FOUND
          The SQL Data source could not be initialized because the data source configuration file does not exist
static int OpenTMS_OPENTMSSQLDATASOURCE_ERROR_HIBERNATE_CONFIG_NOT_FOUND
          The SQL Data source could not be initialized because the hibernate configuration file does not exist
static int OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static java.lang.String OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR_MESSAGE
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static java.lang.String OpenTMS_SYNC_EXCEPTION_ERROR_MESSAGE
           
static int OpenTMS_SYNC_EXCEPTION_SERVICE_ERROR
           
static int OpenTMS_SYNC_SYNC_ERROR
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static java.lang.String OpenTMS_SYNC_SYNC_ERROR_ERROR_MESSAGE
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static int OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static java.lang.String OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR_MESSAGE
          OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called
static int OpenTMS_TMX_EXPORT_ERROR
          An error occured when exporting the data source to tmx; value is negative so that it cannot be confused with the number of entries returned from the export
static int OpenTMS_TMXDATASOURCE_FILE_NOTFOUND_ERROR
          OpenTMS_TMXDATASOURCE_FILE_NOTFOUND_ERROR indicates that the tmx file specified was not found or does not exist.
static int OpenTMS_TMXDATASOURCE_FILE_NULL_ERROR
          OpenTMS_TMXDATASOURCE_FILE_NULL_ERROR the tmx file was null
static int OpenTMS_TRANSLATE_PLAINTEXTMETHOD_NOTFOUND_ERROR
          The PlainText method was not found for MonoLingualObject Creation
static int OpenTMS_UNSUPPORTED_ENCODING
          OpenTMS_UNSUPPORTED_ENCODING - the encoding is not supported.
static int OpenTMS_XLIFFDATASOURCE_FILE_NOTFOUND_ERROR
          OpenTMS_XLIFFDATASOURCE_FILE_NOTFOUND_ERROR indicates that the xliff file specified was not found or does not exist.
 
Constructor Summary
OpenTMSConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OpenTMS_BUILDELEMET_ERROR

public static final int OpenTMS_BUILDELEMET_ERROR
Constants defines if an xml element could not be generated from a string representation of an element. For more details XmlDocument.buildElement(java.lang.String)

See Also:
Constant Field Values

OpenTMS_DATAMODEL_NOTFOUND_ERROR

public static final int OpenTMS_DATAMODEL_NOTFOUND_ERROR
OpenTMS_DATAMODEL_NOTFOUND_ERROR indicates that a given data model was not found

See Also:
Constant Field Values

OpenTMS_DATASOURCE_NOTFOUND_ERROR

public static final int OpenTMS_DATASOURCE_NOTFOUND_ERROR
OpenTMS_DATASOURCE_NOTFOUND_ERROR indicates that a given data source was not found in the DatSourceInstance hash table

See Also:
Constant Field Values

OpenTMS_EXCEPTION_ERROR

public static final int OpenTMS_EXCEPTION_ERROR
OpenTMS_EXCEPTION_ERROR indicates an error from an OpenTMS Exception.

See Also:
Constant Field Values

OpenTMS_ID_FAILURE

public static int OpenTMS_ID_FAILURE
OpenTMS_ID_FAILURE is the standard value for a not successful operation.


OpenTMS_ID_SUCCESS

public static int OpenTMS_ID_SUCCESS
OpenTMS_ID_SUCCESS is the standard value for a successful operation.


OpenTMS_TMXDATASOURCE_FILE_NOTFOUND_ERROR

public static final int OpenTMS_TMXDATASOURCE_FILE_NOTFOUND_ERROR
OpenTMS_TMXDATASOURCE_FILE_NOTFOUND_ERROR indicates that the tmx file specified was not found or does not exist.

See Also:
Constant Field Values

OpenTMS_TMXDATASOURCE_FILE_NULL_ERROR

public static final int OpenTMS_TMXDATASOURCE_FILE_NULL_ERROR
OpenTMS_TMXDATASOURCE_FILE_NULL_ERROR the tmx file was null

See Also:
Constant Field Values

OpenTMS_XLIFFDATASOURCE_FILE_NOTFOUND_ERROR

public static final int OpenTMS_XLIFFDATASOURCE_FILE_NOTFOUND_ERROR
OpenTMS_XLIFFDATASOURCE_FILE_NOTFOUND_ERROR indicates that the xliff file specified was not found or does not exist.

See Also:
Constant Field Values

OpenTMS_FILE_NOTFOUND_ERROR

public static final int OpenTMS_FILE_NOTFOUND_ERROR
OpenTMS_FILE_NOTFOUND_ERROR indicates that the file specified was not found or does not exist.

See Also:
Constant Field Values

OpenTMS_TRANSLATE_PLAINTEXTMETHOD_NOTFOUND_ERROR

public static final int OpenTMS_TRANSLATE_PLAINTEXTMETHOD_NOTFOUND_ERROR
The PlainText method was not found for MonoLingualObject Creation

See Also:
Constant Field Values

OpenTMS_OPENTMSSQLDATASOURCE_ERROR_DATASOURCE_CONFIG_NOT_FOUND

public static final int OpenTMS_OPENTMSSQLDATASOURCE_ERROR_DATASOURCE_CONFIG_NOT_FOUND
The SQL Data source could not be initialized because the data source configuration file does not exist

See Also:
Constant Field Values

OpenTMS_OPENTMSSQLDATASOURCE_ERROR_HIBERNATE_CONFIG_NOT_FOUND

public static final int OpenTMS_OPENTMSSQLDATASOURCE_ERROR_HIBERNATE_CONFIG_NOT_FOUND
The SQL Data source could not be initialized because the hibernate configuration file does not exist

See Also:
Constant Field Values

OpenTMS_NOT_AN_XLIFF_FILE

public static final int OpenTMS_NOT_AN_XLIFF_FILE
The file is not an xliff file

See Also:
Constant Field Values

OpenTMS_TMX_EXPORT_ERROR

public static final int OpenTMS_TMX_EXPORT_ERROR
An error occured when exporting the data source to tmx; value is negative so that it cannot be confused with the number of entries returned from the export

See Also:
Constant Field Values

OpenTMS_UNSUPPORTED_ENCODING

public static final int OpenTMS_UNSUPPORTED_ENCODING
OpenTMS_UNSUPPORTED_ENCODING - the encoding is not supported.

See Also:
Constant Field Values

OpenTMS_IOEXCEPTION

public static final int OpenTMS_IOEXCEPTION
OpenTMS_IOEXCEPTION - io exception has ocuured.

See Also:
Constant Field Values

OpenTMS_DATASOURCECONFIGURATIONFILECREATION_ERROR

public static final int OpenTMS_DATASOURCECONFIGURATIONFILECREATION_ERROR
OpenTMS_FILE_NOTFOUND_ERROR indicates that the file specified was not found or does not exist.

See Also:
Constant Field Values

OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR

public static final int OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR_MESSAGE

public static final java.lang.String OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR_MESSAGE
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR

public static final int OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR_MESSAGE

public static final java.lang.String OpenTMS_SYNC_DASTASOURCE_CONFIGURATION_NOT_FOUND_SERVICE_ERROR_MESSAGE
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_SYNC_ERROR

public static final int OpenTMS_SYNC_SYNC_ERROR
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_SYNC_ERROR_ERROR_MESSAGE

public static final java.lang.String OpenTMS_SYNC_SYNC_ERROR_ERROR_MESSAGE
OpenTMS_SYNC_UNKNOWN_METHODE_SERVICE_ERROR indicates that an unknown sync method was called

See Also:
Constant Field Values

OpenTMS_SYNC_EXCEPTION_SERVICE_ERROR

public static final int OpenTMS_SYNC_EXCEPTION_SERVICE_ERROR
See Also:
Constant Field Values

OpenTMS_JSONDESERIALISE_EXCEPTION_ERROR_MESSAGE

public static final java.lang.String OpenTMS_JSONDESERIALISE_EXCEPTION_ERROR_MESSAGE
See Also:
Constant Field Values

OpenTMS_JSONDESERIALISE_EXCEPTION_SERVICE_ERROR

public static final int OpenTMS_JSONDESERIALISE_EXCEPTION_SERVICE_ERROR
See Also:
Constant Field Values

OpenTMS_SYNC_EXCEPTION_ERROR_MESSAGE

public static final java.lang.String OpenTMS_SYNC_EXCEPTION_ERROR_MESSAGE
See Also:
Constant Field Values
Constructor Detail

OpenTMSConstants

public OpenTMSConstants()