Interface IMetadataValidator

All Superinterfaces:
All Known Implementing Classes:

public interface IMetadataValidator
extends Serializable

Provides access to methods to validate metadata.

Product Availability

Available with ArcGIS Desktop.

Method Summary
 boolean validate(IPropertySet pPropertySet, boolean silent, String[] failureReasons)
          Validates metadata.

Method Detail


boolean validate(IPropertySet pPropertySet,
                 boolean silent,
                 String[] failureReasons)
                 throws IOException,
Validates metadata.


The pPropertySet parameter should be an XmlPropertySet instance containing an ArcGIS item’s metadata. The Validate method returns a Boolean indicating whether the metadata was successfully validated.

The validation rules are determined by the class’ implementation. For example, the GNValidator class validates metadata based on the requirements for an ArcIMS Metadata Service if its validate property is set to true. When this is the case title, extent, publisher, theme, and content type are required in an item’s metadata, as described in the Desktop Help topic “Publishing requirements”.

In addition to the return value indicating success, the output failureReasons parameter is populated with a string containing the reasons for failure. With the GNValidator class, the reasons are end-line delimited.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms


pPropertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
silent - The silent (in)
failureReasons - The failureReasons (out: use single element array)
The isOk
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.