|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.MetadataSynchronizer
public class MetadataSynchronizer
ESRI Metadata Synchronizer object (singleton).
Constructor Summary | |
---|---|
MetadataSynchronizer()
Constructs a MetadataSynchronizer using ArcGIS Engine. |
|
MetadataSynchronizer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MetadataSynchronizer theMetadataSynchronizer = (MetadataSynchronizer) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IUID |
getClassID()
The class ID of the metadata synchronizer. |
static String |
getClsid()
getClsid. |
boolean |
getEnabled(int index)
Indicates whether the Nth synchronizer is enabled. |
String |
getName()
The name of the metadata synchronizer. |
int |
getNumSynchronizers()
The number of available synchronizers. |
IMetadataSynchronizer |
getSynchronizer(int index)
Gets the nth synchronizer. |
int |
hashCode()
the hashcode for this object |
void |
setEnabled(int index,
boolean enabled)
Set the synchronizer to be enabled or disabled. |
void |
update(IXmlPropertySet propertySet,
String itemDesc,
Object value)
Updates the metadata item using the value passed in. |
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 MetadataSynchronizer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MetadataSynchronizer(Object obj) throws IOException
MetadataSynchronizer theMetadataSynchronizer = (MetadataSynchronizer) obj;
obj
to MetadataSynchronizer
.
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 String getName() throws IOException, AutomationException
A string that identifies the synchronizer. The Name is used when managing metadata synchronizers through the IMetadataSynchronizationManager interface.
getName
in interface IMetadataSynchronizer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getClassID() throws IOException, AutomationException
A UID object that must be unique to the synchronizer.
getClassID
in interface IMetadataSynchronizer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void update(IXmlPropertySet propertySet, String itemDesc, Object value) throws IOException, AutomationException
This method is used to define the structure of the metadata that is written during synchronization. It is called once for each property of the dataset during synchronization. The method requires three parameters; pPropertySet, itemDesc, and Value.
The pPropertySet parameter is an XML property set representing the metadata of the dataset being synchronized.
The itemDesc string parameter describes what object is being passed in the Value parameter.
The Value parameter is an object of the data sets whose metadata is being synchronized.
The different objects passed to the Update method, the Value parameter, vary from type of data set that is being synchronized. Not all itemDesc are supported for all data types. For instance CoverageEntity objects only apply to ArcInfo coverages and ArcInfo tables.
A complete list of the expected Values for the supported itemDesc items is available in the Technical Paper "Creating a Custom Metadata Synchronizer", May 2001.
update
in interface IMetadataSynchronizer
propertySet
- A reference to a com.esri.arcgis.geodatabase.IXmlPropertySet (in)itemDesc
- The itemDesc (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNumSynchronizers() throws IOException, AutomationException
Returns the number of metadata synchronizers registered on the machine.
getNumSynchronizers
in interface IMetadataSynchronizerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMetadataSynchronizer getSynchronizer(int index) throws IOException, AutomationException
The GetSynchronizer method provides a reference to the IMetadataSynchronizer object.
Because the GetSynchronizer method uses an index to get the desired synchronizer, the IMetadataSynchronizerManager::NumSynchronizers property and IMetadataSynchronizer::Name are often used to first specify the metadata sychronizer of choice.
getSynchronizer
in interface IMetadataSynchronizerManager
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEnabled(int index, boolean enabled) throws IOException, AutomationException
The SetEnabled method sets the enabled/disabled state of the synchronizer referenced by the index passed in to the first argument.
The Index parameter is used to indicate the specific metadata synchronizer.
The second argument, of data type boolean, sets the state of the synchronizer.
Note that enabling and disabling synchronizers through this interface is persisted across sessions. If changes are meant to be temporary, it's recommended that the current enabled status of each synchronizer be stored prior to any changes being made, then restored after.
setEnabled
in interface IMetadataSynchronizerManager
index
- The index (in)enabled
- The enabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getEnabled(int index) throws IOException, AutomationException
The GetEnabled method returns a boolean if the metadata sychronizer, specified using the index parameter, is currently enabled.
getEnabled
in interface IMetadataSynchronizerManager
index
- The index (in)
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 |