featuretypebuilder.html

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

HTML
1,355 行
字号
<A NAME="setAbstract(boolean)"><!-- --></A><H3>setAbstract</H3><PRE>public final void <B>setAbstract</B>(boolean&nbsp;a)</PRE><DL><DD>Configure this factory to produce an abstract type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - True or false.</DL></DD></DL><HR><A NAME="removeAll()"><!-- --></A><H3>removeAll</H3><PRE>public final void <B>removeAll</B>()</PRE><DL><DD>Remove all the AttributeTypes in this factory.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addTypes(org.geotools.feature.AttributeType[])"><!-- --></A><H3>addTypes</H3><PRE>public final void <B>addTypes</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types)                    throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A>,                           <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Add an array of AttributeTypes to this factory.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The types or a null array.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - If any of the types are null.<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> - If there are naming problems.</DL></DD></DL><HR><A NAME="addType(org.geotools.feature.AttributeType)"><!-- --></A><H3>addType</H3><PRE>public final void <B>addType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A>,                          <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>A the given AttributeType to this factory.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The type to add.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - If the type is null.<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> - If another type exists with the same         name.</DL></DD></DL><HR><A NAME="removeType(org.geotools.feature.AttributeType)"><!-- --></A><H3>removeType</H3><PRE>public final void <B>removeType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)                      throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></PRE><DL><DD>Remove the given type from this factory.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The type to remove.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - If the type is null.</DL></DD></DL><HR><A NAME="addType(int, org.geotools.feature.AttributeType)"><!-- --></A><H3>addType</H3><PRE>public final void <B>addType</B>(int&nbsp;idx,                          <A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A>,                          <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>,                          <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Insert the given type at the index specified.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idx</CODE> - The index to insert at.<DD><CODE>type</CODE> - The AttributeType to insert.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - If the type is null.<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> - If the AttributeType is not allowed.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - If the index is out of range.</DL></DD></DL><HR><A NAME="removeType(int)"><!-- --></A><H3>removeType</H3><PRE>public final void <B>removeType</B>(int&nbsp;idx)                      throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Remove the AttributeType at the given index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idx</CODE> - The index to remove at.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - If the index is out of bounds.</DL></DD></DL><HR><A NAME="setType(int, org.geotools.feature.AttributeType)"><!-- --></A><H3>setType</H3><PRE>public final void <B>setType</B>(int&nbsp;idx,                          <A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>,                          <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A>,                          <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Set the AttributeType at the given index. Overwrites the existing type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idx</CODE> - The index to use.<DD><CODE>type</CODE> - The type to use.<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> - If the type is not good.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if they type passed in is null<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if the index is out of bounds.</DL></DD></DL><HR><A NAME="swap(int, int)"><!-- --></A><H3>swap</H3><PRE>public final void <B>swap</B>(int&nbsp;idx1,                       int&nbsp;idx2)                throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></PRE><DL><DD>Swap the AttributeTypes at the given locations.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idx1</CODE> - The index of the first.<DD><CODE>idx2</CODE> - The index of the second.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if either index is not in the         array bounds.</DL></DD></DL><HR><A NAME="getDefaultGeometry()"><!-- --></A><H3>getDefaultGeometry</H3><PRE>public final <A HREF="../../../org/geotools/feature/GeometryAttributeType.html" title="interface in org.geotools.feature">GeometryAttributeType</A> <B>getDefaultGeometry</B>()</PRE><DL><DD>Return the AttributeType currently used as the defaultGeometry property for the FeatureType this factory will create.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The AttributeType representing the defaultGeometry or null.</DL></DD></DL><HR><A NAME="setDefaultGeometry(org.geotools.feature.GeometryAttributeType)"><!-- --></A><H3>setDefaultGeometry</H3><PRE>public final void <B>setDefaultGeometry</B>(<A HREF="../../../org/geotools/feature/GeometryAttributeType.html" title="interface in org.geotools.feature">GeometryAttributeType</A>&nbsp;defaultGeometry)                              throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Sets the defaultGeometry of this factory. If the defaultGeometry AttributeType does not exist as an AttributeType within this factory, it is added. This will overwrite the existing defaultGeometry, yet not remove it from the existing AttributeTypes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>defaultGeometry</CODE> - The AttributeType to use as the defaultGeometry.        May be null.<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> - if the type is not a geometry.</DL></DD></DL><HR><A NAME="getFeatureType()"><!-- --></A><H3>getFeatureType</H3><PRE>public final <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>getFeatureType</B>()                                 throws <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>Get a FeatureType which reflects the state of this factory. Any modifications to the state of the factory (adding, removing, or reordering any AttributeTypes or changing any other properties - isNillable,name,etc.), will cause the factory to "retool" itself. If the factory has not changed since a call to this method, the return value will be the same FeatureType which the previous method returned. Otherwise, a new FeatureType will be created.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The featureType reflecting the current factory state.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - if name is null or blank</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 factory.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The string representing this factory.</DL></DD></DL><HR><A NAME="contains(org.geotools.feature.AttributeType)"><!-- --></A><H3>contains</H3><PRE>public final boolean <B>contains</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)</PRE><DL>

⌨️ 快捷键说明

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