📄 comparefilterimpl.html
字号:
Adds the 'left' value to this filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#addRightValue(org.geotools.filter.Expression)">addRightValue</A></B>(<A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> rightValue)</CODE><BR> Adds the 'right' value to this filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#compare(java.lang.Comparable, java.lang.Comparable)">compare</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> leftObj, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> rightObj)</CODE><BR> Subclass convenience method which compares to instances of comparables in a pretty lax way, converting types among String, Number, Double when appropriate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</CODE><BR> Compares this filter to the specified object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#evaluate(org.geotools.feature.Feature)">evaluate</A></B>(<A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> feature)</CODE><BR> Determines whether or not a given feature is 'inside' this filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#getLeftValue()">getLeftValue</A></B>()</CODE><BR> Gets the left expression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#getRightValue()">getRightValue</A></B>()</CODE><BR> <B>Deprecated.</B> <I>use <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#getExpression2()"><CODE>BinaryComparisonAbstract.getExpression2()</CODE></A></I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#hashCode()">hashCode</A></B>()</CODE><BR> Override of hashCode method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#setExpression1(org.opengis.filter.expression.Expression)">setExpression1</A></B>(Expression leftValue)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#setExpression2(org.opengis.filter.expression.Expression)">setExpression2</A></B>(Expression rightValue)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/filter/CompareFilterImpl.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this filter.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_BinaryComparisonAbstract"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html" title="class in org.geotools.filter">BinaryComparisonAbstract</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#and(org.geotools.filter.Filter)">and</A>, <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#getExpression1()">getExpression1</A>, <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#getExpression2()">getExpression2</A>, <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#not()">not</A>, <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#or(org.geotools.filter.Filter)">or</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractFilter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/filter/AbstractFilter.html" title="class in org.geotools.filter">AbstractFilter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/filter/AbstractFilter.html#accept(org.geotools.filter.FilterVisitor)">accept</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#contains(org.geotools.feature.Feature)">contains</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#evaluate(java.lang.Object)">evaluate</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#getFilterType()">getFilterType</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isCompareFilter(short)">isCompareFilter</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isGeometryDistanceFilter(short)">isGeometryDistanceFilter</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isGeometryFilter(short)">isGeometryFilter</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isLogicFilter(short)">isLogicFilter</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isMathFilter(short)">isMathFilter</A>, <A HREF="../../../org/geotools/filter/AbstractFilter.html#isSimpleFilter(short)">isSimpleFilter</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_FilterAbstract"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/filter/FilterAbstract.html" title="class in org.geotools.filter">FilterAbstract</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/filter/FilterAbstract.html#accepts(org.geotools.feature.Feature)">accepts</A>, <A HREF="../../../org/geotools/filter/FilterAbstract.html#comparable(org.opengis.filter.expression.Expression, org.geotools.feature.Feature)">comparable</A>, <A HREF="../../../org/geotools/filter/FilterAbstract.html#eval(org.geotools.filter.Expression, org.geotools.feature.Feature)">eval</A>, <A HREF="../../../org/geotools/filter/FilterAbstract.html#eval(org.opengis.filter.expression.Expression, java.lang.Object)">eval</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_CompareFilter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../org/geotools/filter/CompareFilter.html" title="interface in org.geotools.filter">CompareFilter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/filter/CompareFilter.html#contains(org.geotools.feature.Feature)">contains</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Filter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/filter/Filter.html#accept(org.geotools.filter.FilterVisitor)">accept</A>, <A HREF="../../../org/geotools/filter/Filter.html#and(org.geotools.filter.Filter)">and</A>, <A HREF="../../../org/geotools/filter/Filter.html#getFilterType()">getFilterType</A>, <A HREF="../../../org/geotools/filter/Filter.html#not()">not</A>, <A HREF="../../../org/geotools/filter/Filter.html#or(org.geotools.filter.Filter)">or</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Filter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface Filter</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>evaluate</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_BinaryComparisonOperator"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface BinaryComparisonOperator</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getExpression1, getExpression2</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CompareFilterImpl(short)"><!-- --></A><H3>CompareFilterImpl</H3><PRE>protected <B>CompareFilterImpl</B>(short filterType) throws <A HREF="../../../org/geotools/filter/IllegalFilterException.html" title="class in org.geotools.filter">IllegalFilterException</A></PRE><DL><DD>Constructor with filter type.<P><DT><B>Parameters:</B><DD><CODE>filterType</CODE> - The type of comparison.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/filter/IllegalFilterException.html" title="class in org.geotools.filter">IllegalFilterException</A></CODE> - Non-compare type.</DL><HR><A NAME="CompareFilterImpl(org.geotools.filter.FilterFactory, org.opengis.filter.expression.Expression, org.opengis.filter.expression.Expression)"><!-- --></A><H3>CompareFilterImpl</H3><PRE>protected <B>CompareFilterImpl</B>(<A HREF="../../../org/geotools/filter/FilterFactory.html" title="interface in org.geotools.filter">FilterFactory</A> factory, Expression e1, Expression e2)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addLeftValue(org.geotools.filter.Expression)"><!-- --></A><H3>addLeftValue</H3><PRE>public final void <B>addLeftValue</B>(<A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> leftValue) throws <A HREF="../../../org/geotools/filter/IllegalFilterException.html" title="class in org.geotools.filter">IllegalFilterException</A></PRE><DL><DD>Adds the 'left' value to this filter.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/filter/CompareFilter.html#addLeftValue(org.geotools.filter.Expression)">addLeftValue</A></CODE> in interface <CODE><A HREF="../../../org/geotools/filter/CompareFilter.html" title="interface in org.geotools.filter">CompareFilter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>leftValue</CODE> - Expression for 'left' value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/filter/IllegalFilterException.html" title="class in org.geotools.filter">IllegalFilterException</A></CODE> - Filter is not internally consistent.<DT><B>'TODO:'</B></DT> <DD>REVISIT: immutability?</DD></DL></DD></DL><HR><A NAME="setExpression1(org.opengis.filter.expression.Expression)"><!-- --></A><H3>setExpression1</H3><PRE>public void <B>setExpression1</B>(Expression leftValue)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#setExpression1(org.opengis.filter.expression.Expression)">setExpression1</A></CODE> in class <CODE><A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html" title="class in org.geotools.filter">BinaryComparisonAbstract</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addRightValue(org.geotools.filter.Expression)"><!-- --></A><H3>addRightValue</H3><PRE>public final void <B>addRightValue</B>(<A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> rightValue)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -