org.x4juli.global.constants
Interface Constant

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ConstantBigDecimal, ConstantBigInteger, ConstantByte, ConstantCharacter, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantShort, ConstantString

public interface Constant
extends java.io.Serializable

Interface for constant objects.

Since:
0.5
Author:
Boris Unckel

Field Summary
static java.lang.String ERR_DUP_NAME
          Error message when user passes a value that is already defined for this class.
 
Method Summary
 java.lang.Object getValue()
          Object way to access the value.
 java.lang.String getValueAsString()
          Return the plain value as String.
 java.lang.Class getValueType()
          Determine the type.
 

Field Detail

ERR_DUP_NAME

public static final java.lang.String ERR_DUP_NAME
Error message when user passes a value that is already defined for this class.

See Also:
Constant Field Values
Method Detail

getValue

public java.lang.Object getValue()
Object way to access the value.

Returns:
the value of the constant as java.lang.Object

getValueType

public java.lang.Class getValueType()
Determine the type.

Returns:
the type of the constant as Class

getValueAsString

public java.lang.String getValueAsString()
Return the plain value as String. getValueAsString differs from toString():
getValueAsString is just the plain value without technical content.

Returns:
the value of the constant as java.lang.String


${license_html}