📄 comparefilterimpl.html
字号:
throws <A HREF="../../../org/geotools/filter/IllegalFilterException.html" title="class in org.geotools.filter">IllegalFilterException</A></PRE><DL><DD>Adds the 'right' value to this filter.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/filter/CompareFilter.html#addRightValue(org.geotools.filter.Expression)">addRightValue</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>rightValue</CODE> - Expression for 'right' 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: make immutable.</DD></DL></DD></DL><HR><A NAME="setExpression2(org.opengis.filter.expression.Expression)"><!-- --></A><H3>setExpression2</H3><PRE>public void <B>setExpression2</B>(Expression rightValue)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#setExpression2(org.opengis.filter.expression.Expression)">setExpression2</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="getLeftValue()"><!-- --></A><H3>getLeftValue</H3><PRE>public final <A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> <B>getLeftValue</B>()</PRE><DL><DD>Gets the left expression.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/filter/CompareFilter.html#getLeftValue()">getLeftValue</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>Returns:</B><DD>The expression on the left of the comparison. * @deprecated use <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#getExpression1()"><CODE>BinaryComparisonAbstract.getExpression1()</CODE></A></DL></DD></DL><HR><A NAME="getRightValue()"><!-- --></A><H3>getRightValue</H3><PRE>public final <A HREF="../../../org/geotools/filter/Expression.html" title="interface in org.geotools.filter">Expression</A> <B>getRightValue</B>()</PRE><DL><DD><B>Deprecated.</B> <I>use <A HREF="../../../org/geotools/filter/BinaryComparisonAbstract.html#getExpression2()"><CODE>BinaryComparisonAbstract.getExpression2()</CODE></A></I><P><DD>Gets the right expression.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/filter/CompareFilter.html#getRightValue()">getRightValue</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>Returns:</B><DD>The expression on the right of the comparison.</DL></DD></DL><HR><A NAME="evaluate(org.geotools.feature.Feature)"><!-- --></A><H3>evaluate</H3><PRE>public abstract boolean <B>evaluate</B>(<A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> feature)</PRE><DL><DD>Determines whether or not a given feature is 'inside' this filter.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/filter/Filter.html#evaluate(org.geotools.feature.Feature)">evaluate</A></CODE> in interface <CODE><A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/filter/FilterAbstract.html#evaluate(org.geotools.feature.Feature)">evaluate</A></CODE> in class <CODE><A HREF="../../../org/geotools/filter/FilterAbstract.html" title="class in org.geotools.filter">FilterAbstract</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - Specified feature to examine.<DT><B>Returns:</B><DD>Flag confirming whether or not this feature is inside the filter.</DL></DD></DL><HR><A NAME="compare(java.lang.Comparable, java.lang.Comparable)"><!-- --></A><H3>compare</H3><PRE>protected int <B>compare</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)</PRE><DL><DD>Subclass convenience method which compares to instances of comparables in a pretty lax way, converting types among String, Number, Double when appropriate.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>same contract as <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html#compareTo(java.lang.Object)" title="class or interface in java.lang"><CODE>Comparable.compareTo(java.lang.Object)</CODE></A>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this filter.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>String representation of the compare filter.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</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)</PRE><DL><DD>Compares this filter to the specified object. Returns true if the passed in object is the same as this filter. Checks to make sure the filter types are the same as well as both of the values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - - the object to compare this CompareFilter against.<DT><B>Returns:</B><DD>true if specified object is equal to this filter; false otherwise.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Override of hashCode method.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a code to hash this object by.</DL></DD></DL><HR><A NAME="accept(org.opengis.filter.FilterVisitor, java.lang.Object)"><!-- --></A><H3>accept</H3><PRE>public abstract <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>accept</B>(FilterVisitor visitor, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> extraData)</PRE><DL><DD>Used by FilterVisitors to perform some action on this filter instance. Typicaly used by Filter decoders, but may also be used by any thing which needs infomration from filter structure. Implementations should always call: visitor.visit(this); It is importatant that this is not left to a parent class unless the parents API is identical.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>accept</CODE> in interface <CODE>Filter</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/filter/FilterAbstract.html#accept(org.opengis.filter.FilterVisitor, java.lang.Object)">accept</A></CODE> in class <CODE><A HREF="../../../org/geotools/filter/FilterAbstract.html" title="class in org.geotools.filter">FilterAbstract</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - The visitor which requires access to this filter, the method must call visitor.visit(this);</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompareFilterImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/filter/CartesianDistanceFilter.html" title="class in org.geotools.filter"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/filter/ConstantExpression.html" title="class in org.geotools.filter"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="CompareFilterImpl.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_BinaryComparisonAbstract">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -