org.fopps.model
Class ConstraintType

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

public final class ConstraintType
extends java.lang.Object
implements Enum

ConstraintType is an enumeration of possible constraint types. A feature constraint may be an 'exclude' or an 'include' constraint. 'Include' means, that a feature requires another.

Author:
Oliver Wieland

Field Summary
static int _EXCLUDE
           
static int _INCLUDE
           
static ConstraintType Exclude
           
static java.lang.String EXCLUDE
           
static ConstraintType Include
           
static java.lang.String INCLUDE
           
 
Method Summary
 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 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

_EXCLUDE

public static final int _EXCLUDE
See Also:
Constant Field Values

_INCLUDE

public static final int _INCLUDE
See Also:
Constant Field Values

EXCLUDE

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

INCLUDE

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

Exclude

public static final ConstraintType Exclude

Include

public static final ConstraintType Include
Method Detail

getValue

public int getValue()
Returns the current value 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.