com.esri.arcgis.catalog
Class GNValidator

java.lang.Object
  extended by com.esri.arcgis.catalog.GNValidator
All Implemented Interfaces:
IMetadataValidator, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class GNValidator
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IMetadataValidator

Esri Geography Network Metadata Validator.

Description

Validates metadata using rules that are appropriate for an ArcIMS Metadata Service.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
GNValidator()
          Constructs a GNValidator using ArcGIS Engine.
GNValidator(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GNValidator theGNValidator = (GNValidator) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 boolean validate(IPropertySet pPropertySet, boolean silent, String[] failureReasons)
          Validates metadata.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

GNValidator

public GNValidator()
            throws IOException,
                   UnknownHostException
Constructs a GNValidator using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

GNValidator

public GNValidator(Object obj)
            throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GNValidator theGNValidator = (GNValidator) obj;

Construct a GNValidator using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GNValidator.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

validate

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

Remarks

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

Windows

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