featuretypefactory.html

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

HTML
610 行
字号
</DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String)"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)                                  throws <A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a new FeatureType with the given AttributeTypes. A short cut for calling <code>newFeatureType(types,name,null,false,null)</code>. Useful for test cases or datasources which may not allow a namespace.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></CODE> - If there are problems creating a         factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in         some way.</DL></DD></DL><HR><A NAME="newInstance(java.lang.String)"><!-- --></A><H3>newInstance</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureTypeFactory.html" title="class in org.geotools.feature">FeatureTypeFactory</A> <B>newInstance</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>&nbsp;name)                                      throws <A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a new FeatureTypeFactory with the given typeName.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The typeName of the feature to create.<DT><B>Returns:</B><DD>A new FeatureTypeFactory instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></CODE> - If there exists a configuration error.</DL></DD></DL><HR><A NAME="createTemplate(org.geotools.feature.FeatureType)"><!-- --></A><H3>createTemplate</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureTypeFactory.html" title="class in org.geotools.feature">FeatureTypeFactory</A> <B>createTemplate</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;original)                                         throws <A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a FeatureTypeFactory which contains all of the AttributeTypes from the given FeatureType. This is simply a convenience method for<br> <code><pre> FeatureTypeFactory factory = FeatureTypeFactory.newInstace(); factory.importType(yourTypeHere);  factory.setName(original.getName()); factory.setNamespace(original.getNamespace()); factory.setNillable(original.isNillable()); factory.setDefaultGeometry(original.getDefaultGeometry());  </pre></code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>original</CODE> - The FeatureType to obtain information from.<DT><B>Returns:</B><DD>A new FeatureTypeFactory which is initialized with the state of         the original FeatureType.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryRegistryException.html" title="class in org.geotools.factory">FactoryRegistryException</A></CODE> - If a FeatureTypeFactory cannot be         found.</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><B>Deprecated.</B>&nbsp;<DD>Returns a string representation of this factory.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/geotools/feature/FeatureTypeBuilder.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../org/geotools/feature/FeatureTypeBuilder.html" title="class in org.geotools.feature">FeatureTypeBuilder</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The string representing this factory.</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>&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/FeatureTypeFactory.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/feature/FeatureTypeBuilder.html" title="class in org.geotools.feature"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/geotools/feature/FeatureTypes.html" title="class in org.geotools.feature"><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="FeatureTypeFactory.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;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_FeatureTypes">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

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