📄 validationprocessor.html
字号:
addValidation</H3><PRE>public void <B>addValidation</B>(<A HREF="../../../org/geotools/validation/IntegrityValidation.html" title="interface in org.geotools.validation">IntegrityValidation</A> validation)</PRE><DL><DD>addValidation <p> Add an IntegrityValidation to the list of Integrity tests </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>validation</CODE> - </DL></DD></DL><HR><A NAME="getDependencies(java.lang.String)"><!-- --></A><H3>getDependencies</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>getDependencies</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> typeName)</PRE><DL><DD>getDependencies purpose. <p> Gets all the FeatureTypes that this FeatureTypeInfo uses. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - the FeatureTypeName<DT><B>Returns:</B><DD>all the FeatureTypes that this FeatureTypeInfo uses.</DL></DD></DL><HR><A NAME="runFeatureTests(java.lang.String, org.geotools.feature.FeatureType, org.geotools.data.FeatureReader, org.geotools.validation.ValidationResults)"><!-- --></A><H3>runFeatureTests</H3><PRE>public void <B>runFeatureTests</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> dsID, <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> type, <A HREF="../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader, <A HREF="../../../org/geotools/validation/ValidationResults.html" title="interface in org.geotools.validation">ValidationResults</A> results) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>runFeatureTests Change: Uses a FeatureReader now instead of a FeatureCollection. <p> Performs a lookup on the FeatureTypeInfo name to determine what FeatureTests need to be performed. Once these tests are gathered, they are run on each feature in the FeatureCollection. The first validation test lookup checks to see if there are any validations that are to be performed on every FeatureTypeInfo. An example of this could be an isValid() test on all geometries in all FeatureTypes. Once those tests have been gathered, a lookup is performed on the TypeName of the FeatureTypeInfo to check for specific FeatureTypeInfo validation tests. A list of validation tests is returned from each lookup, if any exist. When all the validation tests have been gathered, each test is iterated through then run on each Feature, with the ValidationResults coming along for the ride, collecting error information. Parameter "FeatureCollection collection" should be changed later to take in a FeatureSource so not everything is loaded into memory. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>dsID</CODE> - data Store id.<DD><CODE>type</CODE> - The FeatureTypeInfo of the features being tested.<DD><CODE>reader</CODE> - The collection of features, of a particulare FeatureTypeInfo "type", that are to be validated.<DD><CODE>results</CODE> - Storage for the results of the validation tests.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE> - FeatureValidations throw Exceptions</DL></DD></DL><HR><A NAME="runIntegrityTests(java.util.Set, java.util.Map, com.vividsolutions.jts.geom.Envelope, org.geotools.validation.ValidationResults)"><!-- --></A><H3>runIntegrityTests</H3><PRE>public void <B>runIntegrityTests</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> typeRefs, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> stores, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> envelope, <A HREF="../../../org/geotools/validation/ValidationResults.html" title="interface in org.geotools.validation">ValidationResults</A> results) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>runIntegrityTests <p> Performs a lookup on the FeatureTypeInfo name to determine what IntegrityTests need to be performed. Once these tests are gathered, they are run on the collection features in the Envelope, defined by a FeatureSource (not a FeatureCollection!). The first validation test lookup checks to see if there are any validations that are to be performed on every FeatureTypeInfo. An example of this could be a uniqueID() test on a unique column value in all FeatureTypes. Once those tests have been gathered, a lookup is performed on the TypeName of the FeatureTypeInfo to check for specific Integrity validation tests. A list of validation tests is returned from each lookup, if any exist. When all the validation tests have been gathered, each test is iterated through then run on each Feature, with the ValidationResults coming along for the ride, collecting error information. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>typeRefs</CODE> - List of modified features, or null to use stores.keySet()<DD><CODE>stores</CODE> - the Map of effected features (Map of key=typeRef, value="featureSource"<DD><CODE>envelope</CODE> - The bounding box that contains all modified Features<DD><CODE>results</CODE> - Storage for the results of the validation tests.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE> - Throws an exception if the HashMap contains a value that is not a FeatureSource</DL></DD></DL><HR><A NAME="queryPlugInNames(java.util.Map)"><!-- --></A><H3>queryPlugInNames</H3><PRE>protected static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>queryPlugInNames</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> testSuiteDTOs)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="load(java.io.File, java.io.File)"><!-- --></A><H3>load</H3><PRE>public void <B>load</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> plugins, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> testsuites) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Load testsuites from provided directories. <p> This is mostly useful for testing, you may want to write your own load method with enhanced error reporting. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>plugins</CODE> - DOCUMENT ME!<DD><CODE>testsuites</CODE> - DOCUMENT ME!<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="load(java.util.Map, java.util.Map)"><!-- --></A><H3>load</H3><PRE>public void <B>load</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> plugInDTOs, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> testSuiteDTOs) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Populates this validation processor against the provided DTO objects. <p> This method is useful for testing, it is not forgiving and will error out if things go bad. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>plugInDTOs</CODE> - <DD><CODE>testSuiteDTOs</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE> - DOCUMENT ME!</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/ValidationProcessor.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/validation/ValidationBeanInfo.html" title="class in org.geotools.validation"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/validation/Validator.html" title="class in org.geotools.validation"><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="ValidationProcessor.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 + -