ariba.util.core
Class Constants

java.lang.Object
  extended by ariba.util.core.Constants
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class Constants
extends java.lang.Object
implements java.io.Externalizable

Constants for well known values

See Also:
Serialized Form

Field Summary
static java.lang.String AribaDateType
          String constant for ariba.util.core.Date
static java.lang.String BigDecimalType
          String constant for java.math.BigDecimal
static Constants BlobNull
           
static java.lang.String BlobType
          String constant for ariba.util.Blob
static java.lang.String BooleanPrimitiveType
          String constant for char
static java.lang.String BooleanType
          String constant for java.lang.Boolean
static java.lang.String BytePrimitiveType
          String constant for byte
static java.lang.String CharPrimitiveType
          String constant for char
static Constants DateNull
           
static Constants DoubleNull
           
static java.lang.String DoublePrimitiveType
          String constant for double
static java.lang.String DoubleType
          String constant for java.lang.Double
static java.lang.Object[] EmptyArray
          Public constant for an empty array.
static java.lang.String EmptyString
          Public constant for an empty string
static java.lang.String FileType
          String constant for java.io.File
static java.lang.String FloatPrimitiveType
          String constant for float
static java.lang.String FloatType
          String constant for java.lang.Float
static boolean Horizontally
           
static java.lang.String IntArrayType
          String constant for [I (jni)
static java.lang.String IntegerArrayType
          String constant for [Ljava.lang.Integer (jni)
static Constants IntegerNull
           
static java.lang.String IntegerType
          String constant for java.lang.Integer
static java.lang.String IntPrimitiveType
          String constant for int
static java.lang.String JavaArrayAbbreviation
           
static java.lang.String JavaBooleanAbbreviation
           
static java.lang.String JavaByteAbbreviation
           
static java.lang.String JavaCharAbbreviation
           
static java.lang.String JavaDateType
          String constant for java.util.Date
static java.lang.String JavaDoubleAbbreviation
           
static java.lang.String JavaFloatAbbreviation
           
static java.lang.String JavaIntAbbreviation
           
static java.lang.String JavaLongAbbreviation
           
static java.lang.String JavaObjectAbbreviation
           
static java.lang.String JavaShortAbbreviation
           
static java.lang.String KeyConfigDirectoryProperty
           
static java.lang.String KeySystemDirectoryProperty
           
static java.lang.String KeyTempDirectoryProperty
           
static java.lang.String ListType
          String constant for java.util.List
static Constants LongNull
           
static java.lang.String LongPrimitiveType
          String constant for long
static java.lang.String LongType
          String constant for java.lang.Long
static java.lang.String MapType
          String constant for java.util.Map
static java.lang.Integer MinusOneInteger
          Public constant for Integer(-1) to avoid object allocation
static java.lang.Long MinusOneLong
          Public constant for Long(-1) to avoid object allocation
static java.lang.Object NullObject
          Public constant for Object()
static Constants NumberNull
           
static java.lang.String NumberType
          String constant for java.lang.Number
static java.lang.String ObjectType
          String constant for java.lang.Object
static java.math.BigDecimal OneBigDecimal
          Public constant for BigDecimal(1.0) to avoid object allocation
static java.math.BigDecimal OneHundredBigDecimal
          Public constant for BigDecimal(100.0) to avoid object allocation
static java.lang.Integer OneInteger
          Public constant for Integer(1) to avoid object allocation
static java.lang.Long OneLong
          Public constant for Long(1) to avoid object allocation
static java.lang.String ShortPrimitiveType
          String constant for int
static java.lang.String SQL_ERROR
           
static java.lang.String SQLDateType
          String constant for java.sql.Date
static java.lang.String StringBufferType
          String constant for java.lang.StringBuffer
static java.lang.String StringNull
          Null String object.
static Constants StringNullConstant
           
static int StringNullId
          leave this decl first.
static java.lang.String StringType
          String constant for java.lang.String
static int Success
          Where applicable some functions use the Success int constant return value.
static java.lang.Integer SuccessInteger
          Where applicable some functions use the Success Integer constant return value.
static java.math.BigDecimal TenBigDecimal
          Public constant for BigDecimal(10.0) to avoid object allocation
static java.lang.String TimestampType
          String constant for java.sql.Timestamp
static java.lang.String URLType
          String constant for java.net.URL
static boolean Vertically
           
static java.math.BigDecimal ZeroBigDecimal
          Public constant for BigDecimal(0.0) to avoid object allocation
static java.lang.Double ZeroDouble
          Public constant for Double(0.0) to avoid object allocation
static java.lang.Float ZeroFloat
          Public constant for Float(0.0) to avoid object allocation
static java.lang.Integer ZeroInteger
          Public constant for Integer(0 to avoid object allocation
static java.lang.Long ZeroLong
          Public constant for Long(0) to avoid object allocation
 
Constructor Summary
Constants()
          Implementation of Externalizable interface.
 
Method Summary
static java.lang.Object constantForId(int i)
           
static java.lang.Boolean getBoolean(boolean b)
          Helper function to generate Booleans without excess memory allocation.
static java.lang.Boolean getBoolean(java.lang.String s)
          Parse a string into a Boolean.
static java.lang.String getDefaultConfigDir()
          The only other class that should this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getConfigDirectoryString()
static java.lang.String getDefaultSystemDir()
          The only other class that should this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getSystemDirectoryString()
static java.lang.String getDefaultTempDirectory()
          The only other class that should use this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getLocalTempDirectoryString()
 int getId()
           
static java.lang.Integer getInteger(int i)
          Helper function to generate Integers without excess memory allocation.
static java.lang.Long getLong(long l)
          Helper function to create Long objects.
static java.io.File getTempDirectory()
          Deprecated. use SystemUtil.getLocalTempDirectory
 void readExternal(java.io.ObjectInput input)
          Implementation of Externalizable interface.
 void writeExternal(java.io.ObjectOutput output)
          Implementation of Externalizable interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

StringNullId

public static final int StringNullId
leave this decl first. Otherwise strange things may happen.

See Also:
Constant Field Values

Horizontally

public static final boolean Horizontally
See Also:
Constant Field Values

Vertically

public static final boolean Vertically
See Also:
Constant Field Values

NumberNull

public static final Constants NumberNull

StringNull

public static final java.lang.String StringNull
Null String object. It would be nice to use new String to guarantee a unique new object, but that gives us a tricky initialization ordering problem. So just make the string weird.

See Also:
Constant Field Values

StringNullConstant

public static final Constants StringNullConstant

DateNull

public static final Constants DateNull

IntegerNull

public static final Constants IntegerNull

DoubleNull

public static final Constants DoubleNull

BlobNull

public static final Constants BlobNull

LongNull

public static final Constants LongNull

ObjectType

public static final java.lang.String ObjectType
String constant for java.lang.Object


StringType

public static final java.lang.String StringType
String constant for java.lang.String


BooleanType

public static final java.lang.String BooleanType
String constant for java.lang.Boolean


IntegerType

public static final java.lang.String IntegerType
String constant for java.lang.Integer


LongType

public static final java.lang.String LongType
String constant for java.lang.Long


FloatType

public static final java.lang.String FloatType
String constant for java.lang.Float


DoubleType

public static final java.lang.String DoubleType
String constant for java.lang.Double


NumberType

public static final java.lang.String NumberType
String constant for java.lang.Number


BigDecimalType

public static final java.lang.String BigDecimalType
String constant for java.math.BigDecimal


JavaDateType

public static final java.lang.String JavaDateType
String constant for java.util.Date


SQLDateType

public static final java.lang.String SQLDateType
String constant for java.sql.Date


TimestampType

public static final java.lang.String TimestampType
String constant for java.sql.Timestamp


AribaDateType

public static final java.lang.String AribaDateType
String constant for ariba.util.core.Date


BlobType

public static final java.lang.String BlobType
String constant for ariba.util.Blob


FileType

public static final java.lang.String FileType
String constant for java.io.File


URLType

public static final java.lang.String URLType
String constant for java.net.URL


ListType

public static final java.lang.String ListType
String constant for java.util.List


MapType

public static final java.lang.String MapType
String constant for java.util.Map


StringBufferType

public static final java.lang.String StringBufferType
String constant for java.lang.StringBuffer


CharPrimitiveType

public static final java.lang.String CharPrimitiveType
String constant for char


JavaCharAbbreviation

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

BytePrimitiveType

public static final java.lang.String BytePrimitiveType
String constant for byte


JavaByteAbbreviation

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

ShortPrimitiveType

public static final java.lang.String ShortPrimitiveType
String constant for int


JavaShortAbbreviation

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

IntPrimitiveType

public static final java.lang.String IntPrimitiveType
String constant for int


JavaIntAbbreviation

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

LongPrimitiveType

public static final java.lang.String LongPrimitiveType
String constant for long


JavaLongAbbreviation

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

FloatPrimitiveType

public static final java.lang.String FloatPrimitiveType
String constant for float


JavaFloatAbbreviation

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

DoublePrimitiveType

public static final java.lang.String DoublePrimitiveType
String constant for double


JavaDoubleAbbreviation

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

BooleanPrimitiveType

public static final java.lang.String BooleanPrimitiveType
String constant for char


JavaBooleanAbbreviation

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

JavaArrayAbbreviation

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

JavaObjectAbbreviation

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

IntegerArrayType

public static final java.lang.String IntegerArrayType
String constant for [Ljava.lang.Integer (jni)


IntArrayType

public static final java.lang.String IntArrayType
String constant for [I (jni)


MinusOneInteger

public static final java.lang.Integer MinusOneInteger
Public constant for Integer(-1) to avoid object allocation


ZeroInteger

public static final java.lang.Integer ZeroInteger
Public constant for Integer(0 to avoid object allocation


OneInteger

public static final java.lang.Integer OneInteger
Public constant for Integer(1) to avoid object allocation


MinusOneLong

public static final java.lang.Long MinusOneLong
Public constant for Long(-1) to avoid object allocation


ZeroLong

public static final java.lang.Long ZeroLong
Public constant for Long(0) to avoid object allocation


OneLong

public static final java.lang.Long OneLong
Public constant for Long(1) to avoid object allocation


ZeroFloat

public static final java.lang.Float ZeroFloat
Public constant for Float(0.0) to avoid object allocation


ZeroDouble

public static final java.lang.Double ZeroDouble
Public constant for Double(0.0) to avoid object allocation


ZeroBigDecimal

public static final java.math.BigDecimal ZeroBigDecimal
Public constant for BigDecimal(0.0) to avoid object allocation


OneBigDecimal

public static final java.math.BigDecimal OneBigDecimal
Public constant for BigDecimal(1.0) to avoid object allocation


TenBigDecimal

public static final java.math.BigDecimal TenBigDecimal
Public constant for BigDecimal(10.0) to avoid object allocation


OneHundredBigDecimal

public static final java.math.BigDecimal OneHundredBigDecimal
Public constant for BigDecimal(100.0) to avoid object allocation


NullObject

public static final java.lang.Object NullObject
Public constant for Object()


EmptyString

public static final java.lang.String EmptyString
Public constant for an empty string

See Also:
Constant Field Values

EmptyArray

public static final java.lang.Object[] EmptyArray
Public constant for an empty array.


KeySystemDirectoryProperty

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

SQL_ERROR

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

KeyConfigDirectoryProperty

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

KeyTempDirectoryProperty

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

Success

public static final int Success
Where applicable some functions use the Success int constant return value.

See Also:
Constant Field Values

SuccessInteger

public static final java.lang.Integer SuccessInteger
Where applicable some functions use the Success Integer constant return value.

Constructor Detail

Constants

public Constants()
Implementation of Externalizable interface.

Method Detail

constantForId

public static java.lang.Object constantForId(int i)

getId

public int getId()

getDefaultSystemDir

public static java.lang.String getDefaultSystemDir()
The only other class that should this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getSystemDirectoryString()


getDefaultConfigDir

public static java.lang.String getDefaultConfigDir()
The only other class that should this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getConfigDirectoryString()


getDefaultTempDirectory

public static java.lang.String getDefaultTempDirectory()
The only other class that should use this method is ariba.util.parameters.Parameters Everyone else should use SystemUtil.getLocalTempDirectoryString()


getTempDirectory

public static java.io.File getTempDirectory()
Deprecated. use SystemUtil.getLocalTempDirectory

Gets the directory for storing temp files.

Returns:
directory for storing temp files

getBoolean

public static java.lang.Boolean getBoolean(boolean b)
Helper function to generate Booleans without excess memory allocation.

Parameters:
b - the boolean value requested
Returns:
the constant Boolean for true or false as requested.

getBoolean

public static java.lang.Boolean getBoolean(java.lang.String s)
Parse a string into a Boolean. This assumes that the Boolean.toBoolean() method was used to create the String.

Parameters:
s - a String representation of a boolean
Returns:
Boolean.TRUE if the string was for the true boolean, Boolean.FALSE otherwise

getInteger

public static java.lang.Integer getInteger(int i)
Helper function to generate Integers without excess memory allocation.

Parameters:
i - the integer value requested
Returns:
the corresponding Integer as requested.

getLong

public static java.lang.Long getLong(long l)
Helper function to create Long objects. This will try to avoid allocating new Long objects on every invocation.

Parameters:
l - a long to convert into a Long
Returns:
a constant Long, occasionally from a pre-allocated set.

writeExternal

public void writeExternal(java.io.ObjectOutput output)
                   throws java.io.IOException
Implementation of Externalizable interface.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput input)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of Externalizable interface.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.