|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.WorkspaceDefinition
public class WorkspaceDefinition
The Workspace Definition Object.
| Constructor Summary | |
|---|---|
WorkspaceDefinition()
Constructs a WorkspaceDefinition using ArcGIS Engine. |
|
WorkspaceDefinition(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. WorkspaceDefinition theWorkspaceDefinition = (WorkspaceDefinition) obj; |
|
| Method Summary | |
|---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IArray |
getChildren()
The list of sub-elements. |
static String |
getClsid()
getClsid. |
IArray |
getDomains()
The list of Domains. |
IGPReplica |
getGPReplica()
The replica. |
IPropertySet |
getMetadata()
The PropertySet containing metadata. |
String |
getVersion()
The workspace version. |
int |
getWorkspaceType()
The workspace type. |
int |
hashCode()
the hashcode for this object |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setChildrenByRef(IArray dataElements)
The list of sub-elements. |
void |
setDomainsByRef(IArray domains)
The list of Domains. |
void |
setGPReplicaByRef(IGPReplica replica)
The replica. |
void |
setMetadata(IPropertySet ppPropertySet)
The PropertySet containing metadata. |
void |
setVersion(String workspaceVersion)
The workspace version. |
void |
setWorkspaceType(int workspaceType)
The workspace type. |
void |
synchronize(int action,
int interval)
Updates metadata with the current properties; may create metadata if it doesn't already exist. |
| 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 WorkspaceDefinition()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public WorkspaceDefinition(Object obj)
throws IOException
WorkspaceDefinition theWorkspaceDefinition = (WorkspaceDefinition) obj;
obj to WorkspaceDefinition.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getWorkspaceType()
throws IOException,
AutomationException
getWorkspaceType in interface IWorkspaceDefinitionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWorkspaceType(int workspaceType)
throws IOException,
AutomationException
setWorkspaceType in interface IWorkspaceDefinitionworkspaceType - A com.esri.arcgis.geodatabase.esriWorkspaceType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getVersion()
throws IOException,
AutomationException
getVersion in interface IWorkspaceDefinitionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVersion(String workspaceVersion)
throws IOException,
AutomationException
setVersion in interface IWorkspaceDefinitionworkspaceVersion - The workspaceVersion (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getDomains()
throws IOException,
AutomationException
getDomains in interface IWorkspaceDefinitionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDomainsByRef(IArray domains)
throws IOException,
AutomationException
setDomainsByRef in interface IWorkspaceDefinitiondomains - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getChildren()
throws IOException,
AutomationException
getChildren in interface IWorkspaceDefinitionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setChildrenByRef(IArray dataElements)
throws IOException,
AutomationException
setChildrenByRef in interface IWorkspaceDefinitiondataElements - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGPReplicaByRef(IGPReplica replica)
throws IOException,
AutomationException
setGPReplicaByRef in interface IWorkspaceDefinition2replica - A reference to a com.esri.arcgis.geodatabase.IGPReplica (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPReplica getGPReplica()
throws IOException,
AutomationException
getGPReplica in interface IWorkspaceDefinition2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws IOException,
AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getMetadata()
throws IOException,
AutomationException
The variable to hold the data must be of IPropertySet data type.
The metadata property is frequently used to save, or update, changes to metadata documents that have taken place through methods available on the IPropertySet, IXmlPropertySet, and/or IXmlPropertySet2 interfaces.
getMetadata in interface IMetadataIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMetadata(IPropertySet ppPropertySet)
throws IOException,
AutomationException
setMetadata in interface IMetadatappPropertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void synchronize(int action,
int interval)
throws IOException,
AutomationException
The Synchronize method is used to extract metadata properties from an object and write those properties to the metadata .xml. Depending on the value of the esriMetaSyncAction, the Synchronize method may generate a new set of metadata if it doesn't already exist.
The following actions will result in synchronization given each of the listed conditions:
| Action | Metadata status | Esri/Sync element | Interval parameter |
|---|---|---|---|
| esriMSAAccessed | Doesn't matter | Must not be FALSE | Must be less than actual interval |
| esriMSAAlways | Doesn't matter | Doesn't matter | Doesn't matter |
| esriMSACreated | Must not exist | Must not be FALSE | Must be less than actual interval |
| esriMSANotCreated | Must exist | Must not be FALSE | Must be less than actual interval |
| esriMSAOverwrite | Doesn't matter | Doesn't matter | Doesn't matter |
The difference between esriMSAAlways and esriMSAOverwrite lies in which elements are synchronized. esriMSAAlways will honor the removal or value change of an element's Sync attribute (to disable synchronization), whereas using esriMSAOverwrite is equivalent to setting the IXmlPropertySet2.OverwriteSyncAttribute to true for the metadata's property set, meaning that even elements without a Sync attribute of TRUE will be synchronized.
synchronize in interface IMetadataaction - A com.esri.arcgis.geodatabase.esriMetadataSyncAction constant (in)interval - The interval (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 | ||||||||