📄 vpffile.html
字号:
<A NAME="duplicate(org.geotools.feature.Feature)"><!-- --></A><H3>duplicate</H3><PRE>public <A HREF="../../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>duplicate</B>(<A HREF="../../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> feature) throws <A HREF="../../../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Create a duplicate of the provided feature, must delegate to an appropriate FeatureFactory create method. <p> The implementation is assumed to make use of AttributeType duplicate as required for a deep copy. </p> //@deprecated This method will be removed in 2.2, please use FeatureFactory obtained from FactoryFinder<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#duplicate(org.geotools.feature.Feature)">duplicate</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - <DT><B>Returns:</B><DD>a deep copy of feature<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE></DL></DD></DL><HR><A NAME="find(org.geotools.feature.AttributeType)"><!-- --></A><H3>find</H3><PRE>public int <B>find</B>(<A HREF="../../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> type)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Find the position of a given AttributeType. <p> Match is based on attribute type name, the resulting index may be used with getAttributeType( index ). </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#find(org.geotools.feature.AttributeType)">find</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The type to search for.<DT><B>Returns:</B><DD>-1 if not found, a zero-based index if found.</DL></DD></DL><HR><A NAME="getAncestors()"><!-- --></A><H3>getAncestors</H3><PRE>public <A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>[] <B>getAncestors</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Obtain an array of this FeatureType's direct ancestors. Implementors should return a non-null array (may be of length 0). <p> <ul> <li>length 0 - a root FeatureType <li>length 1 - singe inhieratance <li>length 1+ - multiple inheiratance, order is not significant </ul> </p> GetAncestors() indicates *just* the direct parents of this FeatureType. It capures the inheirtance relationship from the OGC overview document. </p> <p> Example Code:<pre><code> public FeatureType getAncestors()} return new FeatureType[]{ getSuper(), }; } </code></pre> </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#getAncestors()">getAncestors</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of ancestors.</DL></DD></DL><HR><A NAME="getAttributeCount()"><!-- --></A><H3>getAttributeCount</H3><PRE>public int <B>getAttributeCount</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>The number of attribues defined by this schema. <p> This method to allows access to the complete schema as defined by this FeatureType and its ancestors. </p> <p> <ul> Notes: <li> <li>for FeatureType with no super type this count value is the the same as getAttributeTypes().length. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#getAttributeCount()">getAttributeCount</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of distinct attributeTypes available, taking ancestors and taking overrides into account.</DL></DD></DL><HR><A NAME="getAttributeType(int)"><!-- --></A><H3>getAttributeType</H3><PRE>public <A HREF="../../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> <B>getAttributeType</B>(int position)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the schema attributeType at the specified index. <p> The index is specified with respect to the entire Schema (as defined by this FeatureType and it's ancestors). <p> <ul> The index value should not be used with either: <li>FeatureType.getAttributeTypes()[index] - as it defines only attributes contributed by this FeatureType <li>Feature.getAttribute( index ) - as attributes order may or may not be in sequence </ul> </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#getAttributeType(int)">getAttributeType</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - a integer index into the complete schema represented by this FeatureType and its ancestors<DT><B>Returns:</B><DD>the attribute type at the specified position</DL></DD></DL><HR><A NAME="getAttributeType(java.lang.String)"><!-- --></A><H3>getAttributeType</H3><PRE>public <A HREF="../../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> <B>getAttributeType</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> xPath)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the attributeType at this xPath, if the specified attributeType does not exist then <code>null</code> is returned. <p> Question: it is unclear how this interacts with the complete schema defined by this FeatureType and its ancestors (in which a given xpath may refer to several AttributeTypes as restrictions are applied. </p> <p> Perhaps this method should be restricted to a FlatFeatureType? Or should have the option of returning an array of matching AttributeType in order of inheiritence? </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html#getAttributeType(java.lang.String)">getAttributeType</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>xPath</CODE> - XPath pointer to attribute type.<DT><B>Returns:</B><DD>AttributeType, or null if unavaialble</DL></DD></DL><HR><A NAME="getAttributeTypes()"><!-- --></A><H3>getAttributeTypes</H3><PR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -