|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMetadataValidator
Provides access to methods to validate metadata.
Method Summary | |
---|---|
boolean |
validate(IPropertySet pPropertySet,
boolean silent,
String[] failureReasons)
Validates metadata. |
Method Detail |
---|
boolean validate(IPropertySet pPropertySet, boolean silent, String[] failureReasons) throws IOException, AutomationException
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.
pPropertySet
- A reference to a com.esri.arcgis.system.IPropertySet (in)silent
- The silent (in)failureReasons
- The failureReasons (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |