|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.FilterItem
com.crystaldecisions.sdk.occa.report.data.OperatorFilterItem
public class OperatorFilterItem
This object implements an operator
that is used to combine two primitive
expressions in a filter's parsed formula string.
For example, in the Filter object
{Customer.Country} ="USA" AND {Customer.Region} ="CA",
AND is an OperatorFilterItem
When possible, use the IOperatorFilterItem interface to use this object.
| Constructor Summary | |
|---|---|
OperatorFilterItem()
|
|
OperatorFilterItem(IOperatorFilterItem src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
java.lang.String |
computeText()
Returns a String representation of the field value that can be used in a report formula. |
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
java.lang.String |
displayText(FieldDisplayNameType displayNameType,
java.util.Locale locale)
Returns the field's value as a localized and formatted string. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
java.lang.String |
getOperator()
Returns the type of operation being performed on the field. |
boolean |
hasContent(java.lang.Object srcOperatorFilterItem)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
setOperator(java.lang.String operator)
Sets the type of operation being performed on the field. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperatorFilterItem(IOperatorFilterItem src)
public OperatorFilterItem()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
clone in class FilterItempublic java.lang.String computeText()
IFilterItem
Returns a String representation of the field value that can be used in a report formula.
The string is not formatted or localized. The syntax will always be Crystal syntax.
If the field contains a date, computeText returns Date(x, x, x); if it
contains a date and time, computeText returns DateTime(x, x, x, x, x, x).
However, when the date is 1900, 0, 1 (the Java start date), computeText returns
Time(x, x, x). If you want to set a field to a time value only (that is, with no date),
you should set the date to 1900, 0, 1, so that computeText will retrieve the correct
information.
computeText in interface IFilterItemcomputeText in class FilterItemString representation of the field value that can be used in a report formula.
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
copyTo in class FilterItem
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only.
public java.lang.String displayText(FieldDisplayNameType displayNameType,
java.util.Locale locale)
IFilterItemReturns the field's value as a localized and formatted string.
displayText in interface IFilterItemdisplayText in class FilterItemdisplayNameType - How the field names in the filter should be formatted.locale - The locale that is used to format the string. If this value is not specified and you
are writing a Win32 application, the locale will be the user's default locale. If you are writing a
thin client (a script that is running on a server) and this value is not specified, the server's
default locale will be used.
public void endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only.
public java.lang.String getOperator()
IOperatorFilterItemReturns the type of operation being performed on the field. The different types of operators are:
getOperator in interface IOperatorFilterItemString.public boolean hasContent(java.lang.Object srcOperatorFilterItem)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only.
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
For internal use only.
java.io.IOExceptionpublic void setOperator(java.lang.String operator)
IOperatorFilterItemSets the type of operation being performed on the field. The different types of operators are:
setOperator in interface IOperatorFilterItemoperator - The type of operator as a String.
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||