org.fopps.model
Class BindingTime

java.lang.Object
  |
  +--org.fopps.model.BindingTime
All Implemented Interfaces:
Enum

public class BindingTime
extends java.lang.Object
implements Enum

BindingTime is an enumeration and reflects different binding times of configuration settings. A configuration setting may be bound at runtime or at compile time. If binding succeeds at runtime, in most cases the executable reads a this value from a non-volatile memory at startup.

Settings which are bound at compile time are usually constants. They are edited or generated during the build process (e. g. #define xxx) directives or constants in a module/class.

Author:
Oliver Wieland

Field Summary
static int _BUILDTIME
           
static int _RUNTIME
           
static BindingTime Buildtime
           
static java.lang.String BUILDTIME
           
static BindingTime[] INSTANCES
           
static int MAX_VALUE
           
static BindingTime Runtime
           
static java.lang.String RUNTIME
           
static java.lang.String[] VERBOSE
           
 
Method Summary
static BindingTime byString(java.lang.String pType)
          Return the instance to a given string value.
 java.lang.Object getDefault()
          Returns the default value of the enumeration
 java.lang.Object[] getInstances()
          Returns all possible instances of the enumeration
 int getValue()
          Returns the current value (numeric representation) of the enumeration.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_RUNTIME

public static final int _RUNTIME
See Also:
Constant Field Values

_BUILDTIME

public static final int _BUILDTIME
See Also:
Constant Field Values

MAX_VALUE

public static final int MAX_VALUE
See Also:
Constant Field Values

RUNTIME

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

BUILDTIME

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

Runtime

public static final BindingTime Runtime

Buildtime

public static final BindingTime Buildtime

VERBOSE

public static final java.lang.String[] VERBOSE

INSTANCES

public static final BindingTime[] INSTANCES
Method Detail

byString

public static BindingTime byString(java.lang.String pType)
Return the instance to a given string value.

Returns:
Instance corresponding to pType or null, if no instance was found

getValue

public int getValue()
Returns the current value (numeric representation) of the enumeration.

Specified by:
getValue in interface Enum

getInstances

public java.lang.Object[] getInstances()
Returns all possible instances of the enumeration

Specified by:
getInstances in interface Enum

getDefault

public java.lang.Object getDefault()
Returns the default value of the enumeration

Specified by:
getDefault in interface Enum

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.