resolve.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 540 行 · 第 1/2 页

HTML
540
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:29 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>Resolve (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.catalog.Resolve interface"><META NAME="keywords" CONTENT="resolve()"><META NAME="keywords" CONTENT="canResolve()"><META NAME="keywords" CONTENT="parent()"><META NAME="keywords" CONTENT="members()"><META NAME="keywords" CONTENT="getStatus()"><META NAME="keywords" CONTENT="getMessage()"><META NAME="keywords" CONTENT="getIdentifier()"><META NAME="keywords" CONTENT="addListener()"><META NAME="keywords" CONTENT="removeListener()"><META NAME="keywords" CONTENT="fire()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="Resolve (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Resolve.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/geotools/catalog/GeoResourceInfo.html" title="interface in org.geotools.catalog"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/geotools/catalog/ResolveAdapterFactory.html" title="interface in org.geotools.catalog"><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>  &nbsp;&nbsp;<A HREF="Resolve.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.catalog</FONT><BR>Interface Resolve</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../org/geotools/catalog/Catalog.html" title="interface in org.geotools.catalog">Catalog</A>, <A HREF="../../../org/geotools/catalog/GeoResource.html" title="interface in org.geotools.catalog">GeoResource</A>, <A HREF="../../../org/geotools/catalog/Service.html" title="interface in org.geotools.catalog">Service</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/geotools/catalog/AbstractCatalog.html" title="class in org.geotools.catalog">AbstractCatalog</A>, <A HREF="../../../org/geotools/catalog/AbstractGeoResource.html" title="class in org.geotools.catalog">AbstractGeoResource</A>, <A HREF="../../../org/geotools/catalog/AbstractService.html" title="class in org.geotools.catalog">AbstractService</A>, <A HREF="../../../org/geotools/catalog/adaptable/AdaptingCatalog.html" title="class in org.geotools.catalog.adaptable">AdaptingCatalog</A>, <A HREF="../../../org/geotools/catalog/adaptable/AdaptingGeoResource.html" title="class in org.geotools.catalog.adaptable">AdaptingGeoResource</A>, <A HREF="../../../org/geotools/catalog/adaptable/AdaptingResolve.html" title="class in org.geotools.catalog.adaptable">AdaptingResolve</A>, <A HREF="../../../org/geotools/catalog/adaptable/AdaptingService.html" title="class in org.geotools.catalog.adaptable">AdaptingService</A></DD></DL><HR><DL><DT>public interface <B>Resolve</B></DL><P>Interface for objects which serve has handles to actual data objects. <p> The resolve pattern is based on the IAdaptable pattern used extensivly by the Eclipse framework. Also known as the Extensible Interface pattern, objects implementing the IAdaptable interface morph or adapt themselves into objects implementing a different interface. </p> <p> The resolve pattern is slightly different in that morphing or adapting  (ie. resolving) into a different object involves a blocking call in which I/O is being performed, possibly with the local disk, or with a remote service. </p> <p> The following code illustrates the use of the resolve pattern: <pre>         <code>         Resolve resolve = ....         ProgressListener listener = ....         FeatureSource featureSource = resolve.resolve(FeatureSource.class,listener);         if (featureSource != null) {                 //do something         }         </code> </pre> As a convenience, the <A HREF="../../../org/geotools/catalog/Resolve.html#canResolve(java.lang.Class)"><CODE>canResolve(Class)</CODE></A> method is used to determine if a particular type of object is supported, but not to perform the resolve. This method can be useful in situations where it is not desirable to block. </p> <p> An implementation of resolve supports the notion of resolving into a parent, or into a list of children, called members. Like any other resolve, these are  blocking operations. Parents and members must also implement the Resolve  interface. </p><P><P><DL><DT><B>Since:</B></DT>  <DD>0.7.0</DD><DT><B>Author:</B></DT>  <DD>David Zwiers, Refractions Research, Justin Deoliveira, The Open Planning Project</DD><DT><B>Module:</B></DT><DD><CODE><B>module/api</B></CODE> &nbsp; (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-api/"><CODE>gt2-api.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/api/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/api/src/org/geotools/catalog/Resolve.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.Status.html" title="class in org.geotools.catalog">Resolve.Status</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enumeration class for representing the status or state of a Resolve.</TD></TR></TABLE>&nbsp;<!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#addListener(org.geotools.catalog.ResolveChangeListener)">addListener</A></B>(<A HREF="../../../org/geotools/catalog/ResolveChangeListener.html" title="interface in org.geotools.catalog">ResolveChangeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a listener to the Resolve. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#canResolve(java.lang.Class)">canResolve</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;adaptee)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Non blocking method which is used to determine if a resolve into an instance of a particular class is supported.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#fire(org.geotools.catalog.ResolveChangeEvent)">fire</A></B>(<A HREF="../../../org/geotools/catalog/ResolveChangeEvent.html" title="interface in org.geotools.catalog">ResolveChangeEvent</A>&nbsp;event)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fires a change event against the Resolve. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URI.html" title="class or interface in java.net">URI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#getIdentifier()">getIdentifier</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a URI which uniqley identifies the Resolve.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#getMessage()">getMessage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In the event that an error occurs during a resolve, that error can be reported back with this method. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/geotools/catalog/Resolve.Status.html" title="class in org.geotools.catalog">Resolve.Status</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#getStatus()">getStatus</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Status of the resolve. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#members(org.geotools.util.ProgressListener)">members</A></B>(<A HREF="../../../org/geotools/util/ProgressListener.html" title="interface in org.geotools.util">ProgressListener</A>&nbsp;monitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocking method which resolves this instance into its members (children). </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/geotools/catalog/Resolve.html" title="interface in org.geotools.catalog">Resolve</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#parent(org.geotools.util.ProgressListener)">parent</A></B>(<A HREF="../../../org/geotools/util/ProgressListener.html" title="interface in org.geotools.util">ProgressListener</A>&nbsp;monitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocking method which resolves this instance into its parent. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/catalog/Resolve.html#removeListener(org.geotools.catalog.ResolveChangeListener)">removeListener</A></B>(<A HREF="../../../org/geotools/catalog/ResolveChangeListener.html" title="interface in org.geotools.catalog">ResolveChangeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a listener from the Resolve. </TD>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?