org.opengts.util
Class RTKey

java.lang.Object
  extended by org.opengts.util.RTKey
All Implemented Interfaces:
java.lang.Comparable<RTKey>

public class RTKey
extends java.lang.Object
implements java.lang.Comparable<RTKey>

Container for runtime property keys


Nested Class Summary
static class RTKey.Entry
          Container for an RTKey entry
static class RTKey.EntryReference
          Represents a reference to another RTKey.Entry
 
Field Summary
static java.lang.String _DB_LOG_MISSING_COLUMNS
           
static java.lang.String ADMIN_MODE
           
static java.lang.String COMMAND_LINE_CONF
           
static java.lang.String CONFIG_FILE
           
static java.lang.String CONFIG_FILE_DIR
           
static java.lang.String CONFIG_URL
           
static java.lang.String CONSTANT_PREFIX
           
static java.lang.String CONTEXT_NAME
           
static java.lang.String CONTEXT_PATH
           
static java.lang.String DB_ALLOW_UPDATE_KEY_FIELDS
           
static java.lang.String DB_DATASOURCE_CLASS
           
static java.lang.String DB_DATASOURCE_MAX_ACTIVE
           
static java.lang.String DB_DATASOURCE_MAX_IDLE
           
static java.lang.String DB_DATASOURCE_MAX_WAIT
           
static java.lang.String DB_DBCONNECTION_POOL
           
static java.lang.String DB_HOST
           
static java.lang.String DB_IGNORE_COLUMN_ERROR_
           
static java.lang.String DB_INACTIVE_TIMEOUT
           
static java.lang.String DB_INCLUDE_LAST_UPDATE_ACCT
           
static java.lang.String DB_INCLUDE_LAST_UPDATE_USER
           
static java.lang.String DB_MYSQL_TBLEXIST_SEL_COUNT
           
static java.lang.String DB_NAME
           
static java.lang.String DB_PASS
           
static java.lang.String DB_PORT
           
static java.lang.String DB_PROVIDER
           
static java.lang.String DB_SHOW_CONNECTIONS
           
static java.lang.String DB_SHOW_SQL
           
static java.lang.String DB_TABLE_LOCKING
           
static java.lang.String DB_TABLE_NAME_PREFIX
           
static java.lang.String DB_TYPEINT_
           
static java.lang.String DB_TYPESIZE_
           
static java.lang.String DB_URL
           
static java.lang.String DB_URL_DB
           
static java.lang.String DB_USER
           
static java.lang.String DB_UTF8
           
static java.lang.String DEBUG
           
static java.lang.String DEBUG_MODE
           
static java.lang.String DEFAULT_DATEFORMAT
           
static java.lang.String DEFAULT_LOCALE
           
static java.lang.String DEFAULT_TIMEFORMAT
           
protected static RTProperties defaultProperties
           
static java.lang.String DNS_CACHE_TIMEOUT
           
protected static java.util.Map<java.lang.String,RTKey.Entry> globalEntryMap
           
static java.lang.String HOST_IP
           
static java.lang.String HOST_NAME
           
static java.lang.String HTTP_PROXY_HOST
           
static java.lang.String HTTP_PROXY_PORT
           
static java.lang.String HTTP_USER_AGENT
           
static java.lang.String INCLUDE
           
static java.lang.String INCLUDE_OPT
           
static java.lang.String IS_WEBAPP
           
 java.lang.String keyName
           
static java.lang.String LOCALE
           
static java.lang.String LOCALE_DATEFORMAT
           
static java.lang.String LOCALE_TIMEFORMAT
           
static java.lang.String LOG
           
static java.lang.String LOG_DIR
           
static java.lang.String LOG_EMAIL_EXCEPTIONS
           
static java.lang.String LOG_EMAIL_FROM
           
static java.lang.String LOG_EMAIL_TO
           
static java.lang.String LOG_FILE
           
static java.lang.String LOG_FILE_ENABLE
           
static java.lang.String LOG_FILE_ROTATE_DELETE_AGE
           
static java.lang.String LOG_FILE_ROTATE_EXTN
           
static java.lang.String LOG_FILE_ROTATE_SIZE
           
static java.lang.String LOG_INCL_DATE
           
static java.lang.String LOG_INCL_STACKFRAME
           
static java.lang.String LOG_JAVA_LOGGER
           
static java.lang.String LOG_LEVEL
           
static java.lang.String LOG_LEVEL_HEADER
           
static java.lang.String LOG_NAME
           
static java.lang.String LOG_REDIRECT_LOG
           
static java.lang.String LOG_REMOTE_LOGGING
           
static java.lang.String LOG_SENDMAIL_CLASS
           
static java.lang.String MAIN_CLASS
           
static java.lang.String MAIN_COMMAND
           
static java.lang.String MAIN_JAR
           
static java.lang.String NAME
           
static java.lang.String NULL_VALUE
           
protected static RTKey.Entry NullEntry
           
static java.lang.String OS_SUBTYPE
           
static java.lang.String OS_TYPE
           
static java.lang.String OSTOOLS_MEMORY_CHECK_ENABLE
           
static java.lang.String OSTOOLS_MEMORY_TREND_WEIGHT
           
static java.lang.String OSTOOLS_MEMORY_USAGE_WARN
           
static java.lang.String PROCESS_ID
           
static java.lang.String RT_CONTEXT_NAME
           
static java.lang.String RT_CONTEXT_PATH
           
static java.lang.String RT_PID_FILE
           
static java.lang.String RT_QUIET
           
static java.lang.String RT_VERBOSE
           
protected static RTKey.Entry[] runtimeKeys
           
static java.lang.String ServerSockeThread_maximumClientThreadPoolSize
           
static java.lang.String SESSION_ACCOUNT
           
static java.lang.String SESSION_IPADDRESS
           
static java.lang.String SESSION_LOCALE
           
static java.lang.String SESSION_NAME
           
static java.lang.String SESSION_USER
           
static java.lang.String SMTP_DEBUG
           
static java.lang.String SMTP_ENABLE_SSL
           
static java.lang.String SMTP_ENABLE_TLS
           
static java.lang.String SMTP_IGNORED_EMAIL_FILE
           
static java.lang.String[] SMTP_PROPERTIES
           
static java.lang.String SMTP_SERVER_HOST
           
static java.lang.String SMTP_SERVER_PASSWORD
           
static java.lang.String SMTP_SERVER_PORT
           
static java.lang.String SMTP_SERVER_RETRY_COUNT
           
static java.lang.String SMTP_SERVER_SYSADMIN_EMAIL
           
static java.lang.String SMTP_SERVER_TIMEOUT_MS
           
static java.lang.String SMTP_SERVER_USER
           
static java.lang.String SMTP_SERVER_USER_EMAIL
           
static java.lang.String SMTP_THREAD_MODEL
           
static java.lang.String SMTP_THREAD_MODEL_SHOW
           
static java.lang.String TEST_MODE
           
static java.lang.String ThreadPool_CronTask_
           
static java.lang.String ThreadPool_DeviceEventUpdate_
           
static java.lang.String ThreadPool_EventRuleAction_
           
static java.lang.String ThreadPool_SendMail_
           
static java.lang.String URL_CONNECT_TIMEOUT
           
static java.lang.String URL_READ_TIMEOUT
           
static java.lang.String VERSION
           
static java.lang.String WEBAPP_FILE
           
 
Constructor Summary
RTKey(java.lang.String key)
          Constructor
 
Method Summary
static void addRuntimeEntries(RTKey.Entry[] dftEntry)
           
static void addRuntimeEntry(RTKey.Entry dftEntry)
          Adds an entry (RTKey.Entry) to RTKey
 int compareTo(RTKey otherKey)
          Compares two RTKeys lexicographically.
 boolean equals(java.lang.Object otherKey)
          Returns true if the specified key name is equal to the current key name.
static RTProperties getDefaultProperties()
          Gets all the ddefault properties in RTKey represented as an RTProperties instance
static java.lang.Object getDefaultProperty(java.lang.String key, java.lang.Object dft)
          Gets the default property value associated with the specified key.
 java.lang.String getName()
          Gets the name of the property
protected static RTKey.Entry getRuntimeEntry(java.lang.String key)
          Gets the entry associated with the specified key
protected static java.util.Map<java.lang.String,RTKey.Entry> getRuntimeEntryMap()
          Gets the Map of all entries in RTKey
static java.util.Iterator<java.lang.String> getRuntimeKeyIterator()
          Gets an iterator over all of the entries
static boolean hasDefault(java.lang.String key)
          Returns true if the specified default property key is defined
 int hashCode()
          Returns a hash code for this instance
 boolean isBlank()
          Returns true if this key name contains an empty String
static boolean isBlank(RTKey key)
          Returns true if the specified key is null, or contains an empty String
static void main(java.lang.String[] argv)
          Main entry point for testing/debugging
static void printDefaults(java.io.PrintStream out)
          Prints all the default values from RTKey and RTConfig to the specified PrintStream.
 RTKey rtSuffix(RTKey rtSfx)
          Apply the specified partial key as a suffix to the key name contained in this RTKey
 RTKey rtSuffix(java.lang.String stSfx)
          Apply the specified partial key as a suffix to the key name contained in this RTKey
static void setDefaultProperty(java.lang.String key, java.lang.Object val)
          Sets the default property value of the property associated with the specified key
 java.lang.String suffix(java.lang.String stSfx)
          Apply the specified partial key as a suffix to the key name contained in this RTKey
 java.lang.String toString()
          Gets the name of the property
 java.lang.String trim()
          Gets the name of the property
static RTKey valueOf(java.lang.String s)
          Create an RTKey instance for the specified String value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_VALUE

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

DEFAULT_LOCALE

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

DEFAULT_DATEFORMAT

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

DEFAULT_TIMEFORMAT

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

SESSION_NAME

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

SESSION_LOCALE

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

SESSION_ACCOUNT

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

SESSION_USER

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

SESSION_IPADDRESS

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

RT_QUIET

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

RT_VERBOSE

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

RT_PID_FILE

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

RT_CONTEXT_NAME

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

RT_CONTEXT_PATH

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

LOCALE

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

LOCALE_DATEFORMAT

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

LOCALE_TIMEFORMAT

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

CONFIG_FILE_DIR

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

WEBAPP_FILE

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

CONFIG_FILE

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

COMMAND_LINE_CONF

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

TEST_MODE

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

DEBUG

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

DEBUG_MODE

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

ADMIN_MODE

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

HTTP_USER_AGENT

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

HTTP_PROXY_HOST

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

HTTP_PROXY_PORT

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

URL_CONNECT_TIMEOUT

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

URL_READ_TIMEOUT

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

DNS_CACHE_TIMEOUT

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

SMTP_DEBUG

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

SMTP_SERVER_HOST

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

SMTP_SERVER_PORT

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

SMTP_SERVER_USER

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

SMTP_SERVER_USER_EMAIL

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

SMTP_SERVER_PASSWORD

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

SMTP_SERVER_TIMEOUT_MS

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

SMTP_SERVER_RETRY_COUNT

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

SMTP_ENABLE_SSL

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

SMTP_ENABLE_TLS

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

SMTP_THREAD_MODEL

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

SMTP_THREAD_MODEL_SHOW

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

SMTP_IGNORED_EMAIL_FILE

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

SMTP_SERVER_SYSADMIN_EMAIL

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

SMTP_PROPERTIES

public static final java.lang.String[] SMTP_PROPERTIES

LOG_NAME

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

LOG_LEVEL

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

LOG_LEVEL_HEADER

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

LOG_JAVA_LOGGER

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

LOG_REDIRECT_LOG

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

LOG_REMOTE_LOGGING

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

LOG_DIR

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

LOG_FILE

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

LOG_FILE_ENABLE

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

LOG_FILE_ROTATE_SIZE

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

LOG_FILE_ROTATE_EXTN

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

LOG_FILE_ROTATE_DELETE_AGE

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

LOG_INCL_DATE

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

LOG_INCL_STACKFRAME

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

LOG_EMAIL_EXCEPTIONS

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

LOG_EMAIL_FROM

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

LOG_EMAIL_TO

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

LOG_SENDMAIL_CLASS

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

DB_DBCONNECTION_POOL

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

DB_DATASOURCE_CLASS

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

DB_DATASOURCE_MAX_ACTIVE

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

DB_DATASOURCE_MAX_IDLE

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

DB_DATASOURCE_MAX_WAIT

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

DB_PROVIDER

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

DB_NAME

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

DB_URL

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

DB_URL_DB

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

DB_HOST

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

DB_PORT

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

DB_USER

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

DB_PASS

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

DB_UTF8

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

DB_TABLE_NAME_PREFIX

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

DB_TABLE_LOCKING

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

DB_INCLUDE_LAST_UPDATE_ACCT

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

DB_INCLUDE_LAST_UPDATE_USER

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

DB_SHOW_SQL

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

DB_SHOW_CONNECTIONS

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

DB_ALLOW_UPDATE_KEY_FIELDS

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

DB_INACTIVE_TIMEOUT

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

DB_MYSQL_TBLEXIST_SEL_COUNT

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

DB_TYPESIZE_

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

DB_TYPEINT_

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

DB_IGNORE_COLUMN_ERROR_

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

_DB_LOG_MISSING_COLUMNS

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

OSTOOLS_MEMORY_CHECK_ENABLE

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

OSTOOLS_MEMORY_TREND_WEIGHT

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

OSTOOLS_MEMORY_USAGE_WARN

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

ThreadPool_CronTask_

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

ThreadPool_SendMail_

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

ThreadPool_EventRuleAction_

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

ThreadPool_DeviceEventUpdate_

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

ServerSockeThread_maximumClientThreadPoolSize

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

CONSTANT_PREFIX

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

VERSION

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

IS_WEBAPP

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

MAIN_COMMAND

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

MAIN_JAR

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

MAIN_CLASS

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

CONTEXT_NAME

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

CONTEXT_PATH

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

HOST_NAME

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

HOST_IP

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

OS_TYPE

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

OS_SUBTYPE

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

PROCESS_ID

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

NAME

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

CONFIG_URL

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

LOG

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

INCLUDE

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

INCLUDE_OPT

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

NullEntry

protected static RTKey.Entry NullEntry

runtimeKeys

protected static RTKey.Entry[] runtimeKeys

globalEntryMap

protected static java.util.Map<java.lang.String,RTKey.Entry> globalEntryMap

defaultProperties

protected static RTProperties defaultProperties

keyName

public java.lang.String keyName
Constructor Detail

RTKey

public RTKey(java.lang.String key)
Constructor

Parameters:
key - The property name
Method Detail

getRuntimeEntryMap

protected static java.util.Map<java.lang.String,RTKey.Entry> getRuntimeEntryMap()
Gets the Map of all entries in RTKey

Returns:
The Map of all entries

getRuntimeKeyIterator

public static java.util.Iterator<java.lang.String> getRuntimeKeyIterator()
Gets an iterator over all of the entries

Returns:
The iterator over the entries

addRuntimeEntries

public static void addRuntimeEntries(RTKey.Entry[] dftEntry)

addRuntimeEntry

public static void addRuntimeEntry(RTKey.Entry dftEntry)
Adds an entry (RTKey.Entry) to RTKey


getRuntimeEntry

protected static RTKey.Entry getRuntimeEntry(java.lang.String key)
Gets the entry associated with the specified key

Parameters:
key - The key of the entry to get
Returns:
The entry

hasDefault

public static boolean hasDefault(java.lang.String key)
Returns true if the specified default property key is defined

Parameters:
key - A property key
Returns:
True if the specified default property key is defined

getDefaultProperty

public static java.lang.Object getDefaultProperty(java.lang.String key,
                                                  java.lang.Object dft)
Gets the default property value associated with the specified key. Returns dft if none was found

Parameters:
key - The key of the property to get
dft - The value to return if no propetry value was found

setDefaultProperty

public static void setDefaultProperty(java.lang.String key,
                                      java.lang.Object val)
Sets the default property value of the property associated with the specified key

Parameters:
key - The key of the property to set
val - The value to set the property to

getDefaultProperties

public static RTProperties getDefaultProperties()
Gets all the ddefault properties in RTKey represented as an RTProperties instance

Returns:
The RTProperties instance

printDefaults

public static void printDefaults(java.io.PrintStream out)
Prints all the default values from RTKey and RTConfig to the specified PrintStream. Used for debugging/testing

Parameters:
out - The PrintStream

isBlank

public static boolean isBlank(RTKey key)
Returns true if the specified key is null, or contains an empty String

Parameters:
key - The RTKey to test
Returns:
True if the specified key is null, or contains an empty String

valueOf

public static RTKey valueOf(java.lang.String s)
Create an RTKey instance for the specified String value

Parameters:
s - The property String
Returns:
The RTKey instance, or null if the specified String is null;

getName

public java.lang.String getName()
Gets the name of the property

Returns:
The name of the property

isBlank

public boolean isBlank()
Returns true if this key name contains an empty String

Returns:
True if this key name contains an empty String

suffix

public java.lang.String suffix(java.lang.String stSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey

Parameters:
stSfx - Property key suffix
Returns:
The combine property key from this RTKey and the specified suffix.

rtSuffix

public RTKey rtSuffix(RTKey rtSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey

Parameters:
rtSfx - Property key suffix
Returns:
The combine property key from this RTKey and the specified suffix.

rtSuffix

public RTKey rtSuffix(java.lang.String stSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey

Parameters:
stSfx - Property key suffix
Returns:
The combine property key from this RTKey and the specified suffix.

equals

public boolean equals(java.lang.Object otherKey)
Returns true if the specified key name is equal to the current key name.

Overrides:
equals in class java.lang.Object
Parameters:
otherKey - The key name to test for equality
Returns:
True if equals, false otherwise

compareTo

public int compareTo(RTKey otherKey)
Compares two RTKeys lexicographically.

Specified by:
compareTo in interface java.lang.Comparable<RTKey>
Parameters:
otherKey - The key name to compare
Returns:
0 if the keys are equal, less-than 0 if this key is lexicographically less than the argument key, and greater-than 0 if this key is lexicographically greater-than the key argument.

toString

public java.lang.String toString()
Gets the name of the property

Overrides:
toString in class java.lang.Object
Returns:
The name of the property

trim

public java.lang.String trim()
Gets the name of the property

Returns:
The name of the property

hashCode

public int hashCode()
Returns a hash code for this instance

Overrides:
hashCode in class java.lang.Object

main

public static void main(java.lang.String[] argv)
Main entry point for testing/debugging

Parameters:
argv - Comand-line arguments