public class CellFilterConstraint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
type
The constraint type.
|
static int |
TYPE_CUSTOM
Represents a constraint object of generic type.
|
static int |
TYPE_FIXED_VALUE
Represents a single fixed value of generic type.
|
static int |
TYPE_LIST_OF_VALUES
Represents a collection of values (object must be array of generic type).
|
static int |
TYPE_RANGE
Represents a range of generic type (object must be array of length 2 with boundary values).
|
java.lang.Object |
value
The constraint value.
|
Constructor and Description |
---|
CellFilterConstraint()
Constructor method for i18n purposes only.
|
CellFilterConstraint(int type,
java.lang.Object value)
The 2nd constructor with real initializing functionality.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(CellFilterConstraint tocheck)
Checks if a given
ButtonDef instance is equal to this instance. |
int |
getType()
Provides the constraint type.
|
static java.lang.String |
getTypeText(int type)
Converts the type to a textual representation e.g. for logging.
|
java.lang.Object |
getValue()
Provides the value currently managed.
|
java.lang.String |
toString()
Debug method for testing the internal managed strings.
|
public static final int TYPE_CUSTOM
public static final int TYPE_FIXED_VALUE
public static final int TYPE_LIST_OF_VALUES
public static final int TYPE_RANGE
public int type
public java.lang.Object value
public CellFilterConstraint() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic CellFilterConstraint(int type, java.lang.Object value)
type
- One of the TYPE_...
constantsvalue
- The constraint valuejava.lang.NullPointerException
- If parameters are null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getTypeText(int type)
type
- Desired type identifierjava.lang.IllegalArgumentException
- If a parameter is invalidpublic boolean equals(CellFilterConstraint tocheck)
ButtonDef
instance is equal to this instance.
tocheck
- Instance to be checkedButtonDef
instance to check for equalitypublic int getType()
public java.lang.Object getValue()
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.