📄 filters.html
字号:
<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="NOTFOUND"><!-- --></A><H3>NOTFOUND</H3><PRE>public static final int <B>NOTFOUND</B></PRE><DL><DD><code>NOTFOUND</code> indicates int value was unavailable<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.geotools.filter.Filters.NOTFOUND">Constant Field Values</A></DL></DL><!-- ========= 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="Filters()"><!-- --></A><H3>Filters</H3><PRE>public <B>Filters</B>()</PRE><DL></DL><HR><A NAME="Filters(org.geotools.filter.FilterFactory)"><!-- --></A><H3>Filters</H3><PRE>public <B>Filters</B>(<A HREF="../../../org/geotools/filter/FilterFactory.html" title="interface in org.geotools.filter">FilterFactory</A> factory)</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="setFilterFactory(org.geotools.filter.FilterFactory)"><!-- --></A><H3>setFilterFactory</H3><PRE>public void <B>setFilterFactory</B>(<A HREF="../../../org/geotools/filter/FilterFactory.html" title="interface in org.geotools.filter">FilterFactory</A> factory)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="duplicate(org.geotools.filter.Filter)"><!-- --></A><H3>duplicate</H3><PRE>public <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> <B>duplicate</B>(<A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> filter)</PRE><DL><DD>Deep copy the filter. <p> Filter objects are mutable, when copying a rich data structure (like SLD) you will need to duplicate the Filters referenced therein. </p><P><DD><DL></DL></DD></DL><HR><A NAME="asInt(org.opengis.filter.expression.Expression)"><!-- --></A><H3>asInt</H3><PRE>public static int <B>asInt</B>(Expression expr)</PRE><DL><DD>Uses number( expr ), will turn result into an interger, or NOTFOUND<P><DD><DL><DT><B>Parameters:</B><DD><CODE>expr</CODE> - <DT><B>Returns:</B><DD>int value of first Number, or NOTFOUND</DL></DD></DL><HR><A NAME="asString(org.opengis.filter.expression.Expression)"><!-- --></A><H3>asString</H3><PRE>public static <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>asString</B>(Expression expr)</PRE><DL><DD>Uses string( expr ), will turn result into a String<P><DD><DL><DT><B>Parameters:</B><DD><CODE>expr</CODE> - <DT><B>Returns:</B><DD>value of first String</DL></DD></DL><HR><A NAME="asDouble(org.opengis.filter.expression.Expression)"><!-- --></A><H3>asDouble</H3><PRE>public static double <B>asDouble</B>(Expression expr)</PRE><DL><DD>Uses number( expr ), will turn result into an interger, or NaN.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>expr</CODE> - <DT><B>Returns:</B><DD>int value of first Number, or Double.NaN</DL></DD></DL><HR><A NAME="asType(org.opengis.filter.expression.Expression, java.lang.Class)"><!-- --></A><H3>asType</H3><PRE>public static <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>asType</B>(Expression expr, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> TYPE)</PRE><DL><DD>Navigate through the expression seaching for TYPE. <p> This will work even with dynamic expression that would normall require a feature. It works especially well when the Expression is a Literal literal (which is usually the case). </p> <p> If you have a specific Feature, please do this: <pre><code> Object value = expr.getValue( feature ); return value instanceof Color ? (Color) value : null; </code></pre> </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>expr</CODE> - <DD><CODE>TYPE</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>First available color, or null.</DL></DD></DL><HR><A NAME="number(java.lang.Object)"><!-- --></A><H3>number</H3><PRE>public static double <B>number</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> value)</PRE><DL><DD>Treat provided value as a Number, used for math opperations. <p> This function allows for the non stongly typed Math Opperations favoured by the Expression standard. </p> <p> Able to hanle: <ul> <li>null - to NaN <li>Number <li>String - valid Integer and Double encodings </ul> </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - <DT><B>Returns:</B><DD>double or Double.NaN;<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - For non numerical among us -- like Geometry</DL></DD></DL><HR><A NAME="gets(java.lang.String, java.lang.Class)"><!-- --></A><H3>gets</H3><PRE>public static <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>gets</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> text, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> TYPE) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A></PRE><DL><DD>Used to upcovnert a "Text Value" into the provided TYPE. <p> Used to tread softly on the Java typing system, because Filter/Expression is not strongly typed. Values in in Expression land are often not the the real Java Objects we wish they were - it is reall a small, lax, query language and Java objects need a but of help getting through. <p> </p> A couple notes: <ul> <li>Usual trick of reflection for a Constructors that supports a String parameter is used as a last ditch effort. </li> <li>will do its best to turn Object into the indicated Class <li>will be used for ordering literals against attribute values are calculated at runtime (like Date.) </ul> Remember Strong typing is for whimps who know what they are doing ahead of time. Real programmers let their program learn at runtime... :-) </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - <DD><CODE>TYPE</CODE> - <DT><B>Throws:</B><DD><CODE>open</CODE> - set of Throwable reflection for TYPE( String )<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A></CODE></DL></DD></DL><HR><A NAME="puts(double)"><!-- --></A><H3>puts</H3><PRE>public static <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>puts</B>(double number)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="puts(java.lang.Object)"><!-- --></A><H3>puts</H3><PRE>public static <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>puts</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>Inverse of eval, used to softly type supported types into Text for use as literals.<P><DD><DL></DL></DD></DL><HR><A NAME="puts(java.awt.Color)"><!-- --></A><H3>puts</H3><PRE>public static <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>puts</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> color)</PRE><DL><DD><DL></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/Filters.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/FilteringIteration.html" title="class in org.geotools.filter"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/filter/FilterSAXParser.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="Filters.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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 + -