com.apelon.apps.dts.editor.modules
Interface DTSEditorConfig


public interface DTSEditorConfig

Provides access to various DTS Editor configuration settings.

Since:
3.4.0
Version:
1.0
Author:
Apelon Inc.

Field Summary
static int INVALID_CONNECTION_TYPE
          Value of -1 designating an invalid connection type.
static int JDBC_CONNECTION_TYPE
          Value of 2 designating a connection of type JDBC.
static int SECURE_SOCKET_CONNECTION_TYPE
          Value of 1 designating a connection of type SECURE SOCKET.
static int SOCKET_CONNECTION_TYPE
          Value of 0 designating a connection of type SOCKET.
 
Method Summary
 boolean getBooleanProperty(String prop, boolean defaultValue)
          Return the value of a boolean property type.
 int getConnectionType()
          Returns an integer specifying the DTS Editors connection type.
 int getIntProperty(String prop, int defaultValue)
          Return the value of an int property type.
 String getProperty(String prop)
          Return the value of this property.
 String getProperty(String prop, String defaultValue)
          Returns the value of the specified property.
 

Field Detail

INVALID_CONNECTION_TYPE

static final int INVALID_CONNECTION_TYPE
Value of -1 designating an invalid connection type.

Since:
DTS 3.4.0
See Also:
Constant Field Values

SOCKET_CONNECTION_TYPE

static final int SOCKET_CONNECTION_TYPE
Value of 0 designating a connection of type SOCKET.

Since:
DTS 3.4.0
See Also:
Constant Field Values

SECURE_SOCKET_CONNECTION_TYPE

static final int SECURE_SOCKET_CONNECTION_TYPE
Value of 1 designating a connection of type SECURE SOCKET.

Since:
DTS 3.4.0
See Also:
Constant Field Values

JDBC_CONNECTION_TYPE

static final int JDBC_CONNECTION_TYPE
Value of 2 designating a connection of type JDBC.

Since:
DTS 3.4.0
See Also:
Constant Field Values
Method Detail

getProperty

String getProperty(String prop)
Return the value of this property.

Parameters:
prop - the name of this property
Returns:
the value of this property
Since:
DTS 3.4.0

getProperty

String getProperty(String prop,
                   String defaultValue)
Returns the value of the specified property. The method returns the default value argument if the property is not found.

Parameters:
prop - the name of this property
defaultValue - a default value to return if the property is not set
Returns:
the value of this property
Since:
DTS 3.4.0

getBooleanProperty

boolean getBooleanProperty(String prop,
                           boolean defaultValue)
Return the value of a boolean property type. The method returns the default value argument if the property is not found.

Parameters:
prop - the name of this property
defaultValue - a default value to return if the property is not set
Returns:
true or false
Since:
DTS 3.4.0

getIntProperty

int getIntProperty(String prop,
                   int defaultValue)
Return the value of an int property type. The method returns the default value argument if the property is not found.

Parameters:
prop - the name of this property
defaultValue - a default value to return if the property is not set
Returns:
the value of this property
Since:
DTS 3.4.0

getConnectionType

int getConnectionType()
Returns an integer specifying the DTS Editors connection type.

Returns:
an integer representing a connection type
Since:
DTS 3.4.0
See Also:
INVALID_CONNECTION_TYPE, SOCKET_CONNECTION_TYPE, SECURE_SOCKET_CONNECTION_TYPE, JDBC_CONNECTION_TYPE


Copyright © 2011. All Rights Reserved.