|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.catalog.GNValidator
public class GNValidator
Esri Geography Network Metadata Validator.
Validates metadata using rules that are appropriate for an ArcIMS Metadata Service.
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 |
---|
public GNValidator() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GNValidator(Object obj) throws IOException
GNValidator theGNValidator = (GNValidator) obj;
obj
to GNValidator
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
validate
in interface IMetadataValidator
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 |