|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.SearchCondition
public abstract class SearchCondition
This class defines the conditions in a search operation. The search condition is created by the viewer when a user request a search operation.
| Field Summary | |
|---|---|
static int |
CONTAIN
Contains. |
static int |
ENDS
Ends with. |
static int |
EQ
Equals to. |
static int |
GREATER
Greater than. |
static int |
GREATER_EQ
Greater than or equals to. |
static int |
LESS
Less than. |
static int |
LESS_EQ
Less than or equals to. |
static int |
MATCH
Regular expression matching. |
static int |
NOT_CONTAIN
Not contain. |
static int |
NOT_EQ
Not equals |
static int |
STARTS
starts with. |
| Constructor Summary | |
|---|---|
SearchCondition()
|
|
| Method Summary | |
|---|---|
static SearchCondition |
and(SearchCondition cond1,
SearchCondition cond2)
Create an AND condition. |
static SearchCondition |
compare(int op,
Object val)
Create a comparison condition. |
static SearchCondition |
compare(String selector,
int op,
Object val)
Create a comparison condition. |
boolean |
execute(StylePage page,
PageLocation next)
Execute the condition starting at the page location. |
protected abstract boolean |
execute0(StylePage page,
PageLocation next)
Execute the condition starting at the page location. |
boolean |
isSetDescription()
Get the set description flag. |
static SearchCondition |
not(SearchCondition cond)
Create a negate condition. |
static SearchCondition |
or(SearchCondition cond1,
SearchCondition cond2)
Create an OR condition. |
void |
setIgnoreCase(boolean ic)
Set the ignore case flag. |
void |
setSetDescription(boolean setDescription)
Set the set description flag. |
void |
setWholeWord(boolean hw)
Set the whole word only flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GREATER
public static final int EQ
public static final int LESS
public static final int NOT_EQ
public static final int GREATER_EQ
public static final int LESS_EQ
public static final int CONTAIN
public static final int NOT_CONTAIN
public static final int STARTS
public static final int ENDS
public static final int MATCH
| Constructor Detail |
|---|
public SearchCondition()
| Method Detail |
|---|
protected abstract boolean execute0(StylePage page,
PageLocation next)
page - a report page.next - starting location.
public boolean execute(StylePage page,
PageLocation next)
page - a report page.next - starting location.
public void setIgnoreCase(boolean ic)
ic - true to ignore case.public void setWholeWord(boolean hw)
hw - true to match only whole words.public void setSetDescription(boolean setDescription)
setDescription - true if should set description,
false otherwise.public boolean isSetDescription()
public static SearchCondition compare(int op,
Object val)
op - comparison operator.val - value to compare.
public static SearchCondition compare(String selector,
int op,
Object val)
selector - the selecter, a element type optionally followed by a
table column name (separated by a '.').op - comparison operator.val - value to compare.
public static SearchCondition and(SearchCondition cond1,
SearchCondition cond2)
public static SearchCondition or(SearchCondition cond1,
SearchCondition cond2)
public static SearchCondition not(SearchCondition cond)
|
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 | ||||||||