Package com.mdfromhtml.core
Class MDfromHTMLConstants
- java.lang.Object
-
- com.mdfromhtml.core.MDfromHTMLConstants
-
- All Implemented Interfaces:
Serializable
public class MDfromHTMLConstants extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_NAMEstatic intDAY_MSstatic DoubleEMPTY_DoubleEqual to new Double(0), this is used to initialize values, typically used for optionally present values.static FloatEMPTY_FloatEqual to new Float(0f), this is used to initialize values, typically used for optionally present values.static IntegerEMPTY_IntegerEqual to new Integer(0), this is used to initialize values, typically used for optionally present values.static LongEMPTY_LongEqual to new Long(0L), this is used to initialize values, typically used for optionally present values.static ShortEMPTY_ShortEqual to new Short((short)0), this is used to initialize values, typically used for optionally present values.static StringEMPTY_StringEqual to "", this is used to initialize values, typically used for optionally present values (e.g., descriptions, notes, long names).static StringENV_MDfromHTML_HOMEstatic StringERRANT_JSON_STRINGstatic DecimalFormatFMTstatic byte[]HEX_BYTESstatic StringHEX_CHARSstatic intHOUR_MSstatic StringINTERNAL_ActorEmailstatic StringIPC_DEFAULT_TOPICstatic StringIPC_MAX_MESSAGE_SIZEstatic char[]MDfromHTML_DEFAULT_PROPERTY_FILE_KEYThe default encryption key used for properties files.static StringMDfromHTML_DELIMITERstatic StringMDfromHTML_DIR_DATAstatic StringMDfromHTML_DIR_PROPERTIESstatic StringMDfromHTML_DOMAINstatic StringMDfromHTML_EMAIL_DOMAINstatic StringMDfromHTML_HOME_DIRECTORY_NAMEstatic StringMDfromHTML_IPC_PropertiesFileNamestatic StringMDfromHTML_SVCS_HOST_NAME_PROPstatic StringMDfromHTML_SVCS_LOGGER_CONSOLE_LEVELstatic StringMDfromHTML_SVCS_LOGGER_DIRECTORYstatic StringMDfromHTML_SVCS_LOGGER_FILE_LEVELstatic StringMDfromHTML_SVCS_LOGGER_MAX_NUMBERstatic StringMDfromHTML_SVCS_LOGGER_MAX_SIZEstatic StringMDfromHTML_SVCS_LOGGER_STEM_NAMEstatic StringMDfromHTML_SVCS_PORT_PROPstatic StringMDfromHTML_SVCS_PropertiesFileNamestatic StringMDfromHTML_SVCS_PROTOCOL_PROPstatic StringMDfromHTML_SVCS_SCHEMA_FILENAMEstatic StringMDfromHTML_SVCS_SERVLET_NAME_PROPstatic StringMDfromHTML_SVCS_VERSION_PROPstatic StringMDfromHTML_TRACE_FILE_NAMEstatic StringMDfromHTML_TRACE_SPECstatic intMIN_MSstatic RandomSEED_RANDOMIf this class is initialized in a different JVM is started at the same millisecond, its s_r will generate the same sequence of random numbers.static SecureRandomSEED_SECURE_RANDOMstatic BigIntegerUNDEFINED_BigIntegerEqual to 9223372036854775806L (Long.MAX_VALUE - 1), this is used to identify and/or initialize a BigInteger value that has yet to receive a valid value.static BooleanUNDEFINED_BooleanEqual to null, this is used to identify and/or initialize a Boolean value that has yet to receive a valid value.static byteUNDEFINED_byteEqual to 126 (Byte.MAX_VALUE - 1), this is used to identify and/or initialize a byte value that has yet to receive a valid value.static ByteUNDEFINED_ByteEqual to 126, this is used to identify and/or initialize a Byte value that has yet to receive a valid value.static charUNDEFINED_charEqual to 65534 (Character.MAX_VALUE-1), this is used to identify and/or initialize a char value that has yet to receive a valid value.static CharacterUNDEFINED_CharacterEqual to Character.MAX_VALUE-1 (65534), this is used to identify and/or initialize a Character value that has yet to receive a valid value.static Class<?>UNDEFINED_Classstatic DateUNDEFINED_DateEqual to one millisecond after the epoch date (midnight 1/1/1970 00:00:00.001), this is used to identify and/or initialize a Date value that has yet to receive a valid value.static doubleUNDEFINED_doubleEqual to Double.longBitsToDouble(0x7feffffffffffffeL), this is used to identify and/or initialize a double value that has yet to receive a valid value.static DoubleUNDEFINED_DoubleEqual to Double.longBitsToDouble(0x7feffffffffffffeL), this is used to identify and/or initialize a Double value that has yet to receive a valid value.static floatUNDEFINED_floatEqual to Float.intBitsToFloat(0x7f7ffffe), this is used to identify and/or initialize a float value that has yet to receive a valid value.static FloatUNDEFINED_FloatEqual to Float.intBitsToFloat(0x7f7ffffe), this is used to identify and/or initialize a Float value that has yet to receive a valid value.static StringUNDEFINED_IDstatic intUNDEFINED_intEqual to 2147483646 (Integer.MAX_VALUE - 1), this is used to identify and/or initialize an int value that has yet to receive a valid value.static IntegerUNDEFINED_IntegerEqual to 2147483646, this is used to identify and/or initialize a Integer value that has yet to receive a valid value.static longUNDEFINED_longEqual to 9223372036854775806L (Long.MAX_VALUE - 1), this is used to identify and/or initialize a long value that has yet to receive a valid value.static LongUNDEFINED_LongEqual to 9223372036854775806, this is used to identify and/or initialize a Long value that has yet to receive a valid value.static intUNDEFINED_nonnegative_intEqual to -1, this is used to identify and/or initialize an int value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static IntegerUNDEFINED_Nonnegative_IntegerEqual to -1, this is used to identify and/or initialize an Integer value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static longUNDEFINED_nonnegative_longEqual to -1L, this is used to identify and/or initialize a long value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static LongUNDEFINED_Nonnegative_LongEqual to -1, this is used to identify and/or initialize a Long value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static shortUNDEFINED_nonnegative_shortEqual to -1L, this is used to identify and/or initialize a short value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static ShortUNDEFINED_Nonnegative_ShortEqual to -1, this is used to identify and/or initialize a Short value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value.static intUNDEFINED_positive_intEqual to 0, this is used to identify and/or initialize an int value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static IntegerUNDEFINED_Positive_IntegerEqual to 0, this is used to identify and/or initialize an Integer value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static longUNDEFINED_positive_longEqual to 0, this is used to identify and/or initialize a long value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static LongUNDEFINED_Positive_LongEqual to 0, this is used to identify and/or initialize a Long value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static shortUNDEFINED_positive_shortEqual to -1, this is used to identify and/or initialize a short value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static ShortUNDEFINED_Positive_ShortEqual to 0, this is used to identify and/or initialize a Short value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value.static shortUNDEFINED_shortEqual to 32766 (Short.MAX_VALUE - 1), this is used to identify and/or initialize a short value that has yet to receive a valid value.static ShortUNDEFINED_ShortEqual to 32766, this is used to identify and/or initialize a short value that has yet to receive a valid value.static StringUNDEFINED_StringEqual to a question mark, this is used to identify and/or initialize a String that has yet to receive a valid value.static URIUNDEFINED_URIEqual to "//", this is used to identify and/or initialize a URI that has yet to receive a valid value.static CharsetUTF8_CHARSET
-
Constructor Summary
Constructors Constructor Description MDfromHTMLConstants()
-
-
-
Field Detail
-
MDfromHTML_DEFAULT_PROPERTY_FILE_KEY
public static final char[] MDfromHTML_DEFAULT_PROPERTY_FILE_KEY
The default encryption key used for properties files. This can be overridden by setting the ENV_MDfromHTML_KEY in the environment.
-
ERRANT_JSON_STRING
public static final String ERRANT_JSON_STRING
- See Also:
- Constant Field Values
-
IPC_DEFAULT_TOPIC
public static final String IPC_DEFAULT_TOPIC
- See Also:
- Constant Field Values
-
MDfromHTML_HOME_DIRECTORY_NAME
public static final String MDfromHTML_HOME_DIRECTORY_NAME
- See Also:
- Constant Field Values
-
MDfromHTML_DIR_PROPERTIES
public static final String MDfromHTML_DIR_PROPERTIES
-
MDfromHTML_SVCS_PropertiesFileName
public static final String MDfromHTML_SVCS_PropertiesFileName
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_HOST_NAME_PROP
public static final String MDfromHTML_SVCS_HOST_NAME_PROP
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_PORT_PROP
public static final String MDfromHTML_SVCS_PORT_PROP
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_PROTOCOL_PROP
public static final String MDfromHTML_SVCS_PROTOCOL_PROP
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_SERVLET_NAME_PROP
public static final String MDfromHTML_SVCS_SERVLET_NAME_PROP
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_VERSION_PROP
public static final String MDfromHTML_SVCS_VERSION_PROP
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_DIRECTORY
public static final String MDfromHTML_SVCS_LOGGER_DIRECTORY
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_STEM_NAME
public static final String MDfromHTML_SVCS_LOGGER_STEM_NAME
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_MAX_SIZE
public static final String MDfromHTML_SVCS_LOGGER_MAX_SIZE
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_MAX_NUMBER
public static final String MDfromHTML_SVCS_LOGGER_MAX_NUMBER
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_FILE_LEVEL
public static final String MDfromHTML_SVCS_LOGGER_FILE_LEVEL
- See Also:
- Constant Field Values
-
MDfromHTML_SVCS_LOGGER_CONSOLE_LEVEL
public static final String MDfromHTML_SVCS_LOGGER_CONSOLE_LEVEL
- See Also:
- Constant Field Values
-
APPLICATION_NAME
public static final String APPLICATION_NAME
- See Also:
- Constant Field Values
-
ENV_MDfromHTML_HOME
public static final String ENV_MDfromHTML_HOME
- See Also:
- Constant Field Values
-
MDfromHTML_IPC_PropertiesFileName
public static final String MDfromHTML_IPC_PropertiesFileName
- See Also:
- Constant Field Values
-
MDfromHTML_DELIMITER
public static final String MDfromHTML_DELIMITER
- See Also:
- Constant Field Values
-
DAY_MS
public static final int DAY_MS
- See Also:
- Constant Field Values
-
MDfromHTML_TRACE_FILE_NAME
public static final String MDfromHTML_TRACE_FILE_NAME
- See Also:
- Constant Field Values
-
MDfromHTML_TRACE_SPEC
public static final String MDfromHTML_TRACE_SPEC
- See Also:
- Constant Field Values
-
MDfromHTML_DOMAIN
public static final String MDfromHTML_DOMAIN
- See Also:
- Constant Field Values
-
MDfromHTML_EMAIL_DOMAIN
public static final String MDfromHTML_EMAIL_DOMAIN
- See Also:
- Constant Field Values
-
INTERNAL_ActorEmail
public static final String INTERNAL_ActorEmail
- See Also:
- Constant Field Values
-
EMPTY_Double
public static final Double EMPTY_Double
Equal to new Double(0), this is used to initialize values, typically used for optionally present values.
-
EMPTY_Float
public static final Float EMPTY_Float
Equal to new Float(0f), this is used to initialize values, typically used for optionally present values.
-
EMPTY_Integer
public static final Integer EMPTY_Integer
Equal to new Integer(0), this is used to initialize values, typically used for optionally present values.
-
EMPTY_Long
public static final Long EMPTY_Long
Equal to new Long(0L), this is used to initialize values, typically used for optionally present values.
-
EMPTY_Short
public static final Short EMPTY_Short
Equal to new Short((short)0), this is used to initialize values, typically used for optionally present values.
-
EMPTY_String
public static final String EMPTY_String
Equal to "", this is used to initialize values, typically used for optionally present values (e.g., descriptions, notes, long names).- See Also:
- Constant Field Values
-
FMT
public static final DecimalFormat FMT
-
HEX_BYTES
public static final byte[] HEX_BYTES
-
HEX_CHARS
public static final String HEX_CHARS
- See Also:
- Constant Field Values
-
HOUR_MS
public static final int HOUR_MS
- See Also:
- Constant Field Values
-
IPC_MAX_MESSAGE_SIZE
public static final String IPC_MAX_MESSAGE_SIZE
- See Also:
- Constant Field Values
-
MIN_MS
public static final int MIN_MS
- See Also:
- Constant Field Values
-
SEED_RANDOM
public static Random SEED_RANDOM
If this class is initialized in a different JVM is started at the same millisecond, its s_r will generate the same sequence of random numbers.
-
SEED_SECURE_RANDOM
public static SecureRandom SEED_SECURE_RANDOM
-
UNDEFINED_BigInteger
public static final BigInteger UNDEFINED_BigInteger
Equal to 9223372036854775806L (Long.MAX_VALUE - 1), this is used to identify and/or initialize a BigInteger value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_Boolean
public static final Boolean UNDEFINED_Boolean
Equal to null, this is used to identify and/or initialize a Boolean value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly. There is no equivalent value for boolean as it can only have two states (true or false).
-
UNDEFINED_byte
public static final byte UNDEFINED_byte
Equal to 126 (Byte.MAX_VALUE - 1), this is used to identify and/or initialize a byte value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_Byte
public static final Byte UNDEFINED_Byte
Equal to 126, this is used to identify and/or initialize a Byte value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_char
public static final char UNDEFINED_char
Equal to 65534 (Character.MAX_VALUE-1), this is used to identify and/or initialize a char value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_Character
public static final Character UNDEFINED_Character
Equal to Character.MAX_VALUE-1 (65534), this is used to identify and/or initialize a Character value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_Class
public static Class<?> UNDEFINED_Class
-
UNDEFINED_Date
public static final Date UNDEFINED_Date
Equal to one millisecond after the epoch date (midnight 1/1/1970 00:00:00.001), this is used to identify and/or initialize a Date value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_double
public static final double UNDEFINED_double
Equal to Double.longBitsToDouble(0x7feffffffffffffeL), this is used to identify and/or initialize a double value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_Double
public static final Double UNDEFINED_Double
Equal to Double.longBitsToDouble(0x7feffffffffffffeL), this is used to identify and/or initialize a Double value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_float
public static final float UNDEFINED_float
Equal to Float.intBitsToFloat(0x7f7ffffe), this is used to identify and/or initialize a float value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_Float
public static final Float UNDEFINED_Float
Equal to Float.intBitsToFloat(0x7f7ffffe), this is used to identify and/or initialize a Float value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_ID
public static final String UNDEFINED_ID
- See Also:
- Constant Field Values
-
UNDEFINED_int
public static final int UNDEFINED_int
Equal to 2147483646 (Integer.MAX_VALUE - 1), this is used to identify and/or initialize an int value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_Integer
public static final Integer UNDEFINED_Integer
Equal to 2147483646, this is used to identify and/or initialize a Integer value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_long
public static final long UNDEFINED_long
Equal to 9223372036854775806L (Long.MAX_VALUE - 1), this is used to identify and/or initialize a long value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly. Note: altered for Javascript compatibility Number.MAX_SAFE_INTEGER-1- See Also:
- Constant Field Values
-
UNDEFINED_Long
public static final Long UNDEFINED_Long
Equal to 9223372036854775806, this is used to identify and/or initialize a Long value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_nonnegative_int
public static final int UNDEFINED_nonnegative_int
Equal to -1, this is used to identify and/or initialize an int value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Nonnegative_Integer
public static final Integer UNDEFINED_Nonnegative_Integer
Equal to -1, this is used to identify and/or initialize an Integer value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_nonnegative_long
public static final long UNDEFINED_nonnegative_long
Equal to -1L, this is used to identify and/or initialize a long value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Nonnegative_Long
public static final Long UNDEFINED_Nonnegative_Long
Equal to -1, this is used to identify and/or initialize a Long value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_nonnegative_short
public static final short UNDEFINED_nonnegative_short
Equal to -1L, this is used to identify and/or initialize a short value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Nonnegative_Short
public static final Short UNDEFINED_Nonnegative_Short
Equal to -1, this is used to identify and/or initialize a Short value that is intended to be nonnegative but that has yet to receive a valid (i.e., >= 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_positive_int
public static final int UNDEFINED_positive_int
Equal to 0, this is used to identify and/or initialize an int value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Positive_Integer
public static final Integer UNDEFINED_Positive_Integer
Equal to 0, this is used to identify and/or initialize an Integer value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_positive_long
public static final long UNDEFINED_positive_long
Equal to 0, this is used to identify and/or initialize a long value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Positive_Long
public static final Long UNDEFINED_Positive_Long
Equal to 0, this is used to identify and/or initialize a Long value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_positive_short
public static final short UNDEFINED_positive_short
Equal to -1, this is used to identify and/or initialize a short value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.- See Also:
- Constant Field Values
-
UNDEFINED_Positive_Short
public static final Short UNDEFINED_Positive_Short
Equal to 0, this is used to identify and/or initialize a Short value that is intended to be positive but that has yet to receive a valid (i.e., > 0) value. Typically used for comparisons to glean if the value has been set properly. Also useful for initializing loop-control variables.
-
UNDEFINED_short
public static final short UNDEFINED_short
Equal to 32766 (Short.MAX_VALUE - 1), this is used to identify and/or initialize a short value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_Short
public static final Short UNDEFINED_Short
Equal to 32766, this is used to identify and/or initialize a short value that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UNDEFINED_String
public static final String UNDEFINED_String
Equal to a question mark, this is used to identify and/or initialize a String that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.- See Also:
- Constant Field Values
-
UNDEFINED_URI
public static URI UNDEFINED_URI
Equal to "//", this is used to identify and/or initialize a URI that has yet to receive a valid value. Typically used for comparisons to glean if the value has been set properly.
-
UTF8_CHARSET
public static final Charset UTF8_CHARSET
-
MDfromHTML_DIR_DATA
public static final String MDfromHTML_DIR_DATA
-
MDfromHTML_SVCS_SCHEMA_FILENAME
public static final String MDfromHTML_SVCS_SCHEMA_FILENAME
- See Also:
- Constant Field Values
-
-