|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XCondition
XCondition defines the condition methods.
| Field Summary | |
|---|---|
static int |
BETWEEN
Condition operation definition that compares two objects using the DefaultComparer and returns true if and only
if the if an object is greater than the first limiting object and less
than the second. |
static int |
BOTTOM_N
Bottom n operation definition that determines if only favor bottom n rows. |
static int |
CONTAINS
Condition operation definition that determines if a specified substring can be found in a String object. |
static int |
CORRELATED
Correlated condition. |
static int |
DATE_IN
Date in operation definition that determines if a date object in the specified date range. |
static int |
EQUAL_TO
Condition operation definition that compares two objects using the DefaultComparer and returns true if and only
if the two objects are equals. |
static int |
GREATER_THAN
Condition operation definition that compares two objects using the DefaultComparer and returns true if and only
if the first object is greater than the second. |
static int |
LESS_THAN
Condition operation definition that compares two objects using the DefaultComparer and returns true if and only
if the first object is less than the second. |
static int |
LIKE
Condition operation definition that determines if a String object matches a SQL LIKE pattern. |
static int |
NONE
Condition operation definition that represents a not defined condition. |
static int |
NULL
Condition operation definition that determines if a String object is null. |
static int |
ONE_OF
Condition operation definition that determines if an object is equals an object in a predefined set. |
static int |
PSEUDO
Pseudo operation definition that determines if the condition is a pseudo condition, which should be only used for analysis. |
static int |
STARTING_WITH
Condition operation definition that determines if a String object starts with a specified substring. |
static int |
TOP_N
Top n operation definition that determines if only favor top n rows. |
| Method Summary | |
|---|---|
Object |
clone()
Clone the object. |
boolean |
evaluate(Object value)
Evaluate this condition against the specified value object. |
UserVariable[] |
getAllVariables()
Get all variables in the condition value list. |
int |
getOperation()
Get the comparison operation of this condition. |
String |
getType()
Get the condition value data type. |
boolean |
isEqual()
Determine whether equivalence will be tested in addition to the defined comparison operation. |
boolean |
isEqualChangeable()
Check if equal is changeable. |
boolean |
isNegated()
Set whether this condition result should be negated. |
boolean |
isNegatedChangeable()
Check if negated is changeable. |
boolean |
isOperationChangeable()
Check if operation is changeable. |
boolean |
isTypeChangeable()
Check if type is changeable. |
boolean |
isValid()
Check if the condition is a valid condition. |
void |
parseAttributes(Element elem)
Parse the attributes. |
void |
parseContents(Element elem)
Parse the contents. |
void |
replaceVariable(VariableTable vars)
Replace all embeded user variables. |
void |
setEqual(boolean equal)
Set the equal to option when the comparison operation is LESS_THAN or GREATER_THAN, i.e. |
void |
setNegated(boolean negated)
Determine whether this condition result should be negated. |
void |
setOperation(int op)
Set the comparison operation of this condition. |
void |
setType(String type)
Set the condition value data type. |
void |
writeAttributes(PrintWriter writer)
Writer the attributes. |
void |
writeContents(PrintWriter writer)
Write the contents. |
| Methods inherited from interface inetsoft.util.XMLSerializable |
|---|
parseXML, writeXML |
| Methods inherited from interface inetsoft.util.ContentObject |
|---|
equalsContent, printKey |
| Field Detail |
|---|
static final int NONE
static final int EQUAL_TO
DefaultComparer and returns true if and only
if the two objects are equals. This flag can be combined with the
LESS_THAN and GREATER_THAN flags.
static final int ONE_OF
static final int LESS_THAN
DefaultComparer and returns true if and only
if the first object is less than the second. This flag can be combined
with the EQUAL_TO flag.
static final int GREATER_THAN
DefaultComparer and returns true if and only
if the first object is greater than the second. This flag can be combined
with the EQUAL_TO flag.
static final int BETWEEN
DefaultComparer and returns true if and only
if the if an object is greater than the first limiting object and less
than the second.
static final int STARTING_WITH
static final int CONTAINS
static final int NULL
static final int TOP_N
static final int BOTTOM_N
static final int DATE_IN
static final int PSEUDO
static final int LIKE
static final int CORRELATED
| Method Detail |
|---|
String getType()
XSchema.boolean isTypeChangeable()
void setType(String type)
type - the data type of the condition. Must be one of the data type
constants defined in XSchema.int getOperation()
EQUAL_TO,
ONE_OF,
LESS_THAN,
GREATER_THAN,
BETWEEN,
STARTING_WITH,
LIKE,
CONTAINS,
NULL,
TOP_N,
DATE_INboolean isOperationChangeable()
void setOperation(int op)
op - one of the operation constants defined in this class.boolean isEqual()
true if equivalence will be testedboolean isEqualChangeable()
void setEqual(boolean equal)
LESS_THAN or GREATER_THAN, i.e.
a >= b.
equal - true if equivalence should be testedboolean isNegated()
true if the if its condition definition(s)
are not met.
true if this condition is negated.boolean isNegatedChangeable()
void setNegated(boolean negated)
true if the if its condition
definition(s) are not met.
negated - true if this condition is negated.void replaceVariable(VariableTable vars)
vars - the specified variable table.UserVariable[] getAllVariables()
boolean evaluate(Object value)
value - the value object this condition should be compared with.
true if the value object meets this condition.boolean isValid()
void writeContents(PrintWriter writer)
writer - the specified print writer.
void parseContents(Element elem)
throws Exception
elem - the specified xml element.
Exceptionvoid writeAttributes(PrintWriter writer)
writer - the specified print writer.
void parseAttributes(Element elem)
throws Exception
elem - the specified xml element.
ExceptionObject clone()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||