|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.catalog.GxToolbox
public class GxToolbox
Catalog object corresponding to toolboxes.
| Constructor Summary | |
|---|---|
GxToolbox()
Constructs a GxToolbox using ArcGIS Engine. |
|
GxToolbox(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GxToolbox theGxToolbox = (GxToolbox) obj; |
|
| Method Summary | |
|---|---|
IGxObject |
addChild(IGxObject child)
Adds a new child and returns a reference to it. |
void |
attach(IGxObject parent,
IGxCatalog pCatalog)
Attaches the object to its parent and the catalog. |
boolean |
canCopy()
Indicates if the object can be copied. |
boolean |
canDelete()
Indicates if the object can be deleted. |
boolean |
canPaste(IEnumName names,
boolean[] moveOperation)
Indicates if the specified names may be pasted into this object. |
boolean |
canRename()
Indicates if the object can be renamed. |
void |
close(boolean saveChanges)
Closes the file, optionally saving changes. |
void |
delete()
Deletes the object. |
void |
deleteChild(IGxObject child)
Deletes the specified child object. |
void |
detach()
Instructs the object to detach itself from its parent and the catalog. |
void |
edit()
Opens an editor to modify the file. |
void |
editProperties(int hParent)
Presents a modal dialog to allow editing the object's properties. |
boolean |
equals(Object o)
Compare this object with another |
void |
esri_new()
Creates a new file. |
String |
getBaseName()
The base name of the object (i.e. |
String |
getCategory()
The category of the object. |
IEnumGxObject |
getChildren()
An enumeration of the child objects. |
IUID |
getClassID()
The class ID of this object. |
static String |
getClsid()
getClsid. |
IUID |
getContextMenu()
The class ID of the context menu for this object. |
IDataset |
getDataset()
The associated dataset. |
IDatasetName |
getDatasetName()
The associated dataset name. |
IUID |
getEditor()
Retrive metadata editor. |
String |
getFullName()
The full name of the object. |
IName |
getInternalObjectName()
The Name for the internal object that this GxObject represents. |
int |
getLargeImage()
The large image that represents the object. |
int |
getLargeSelectedImage()
The large image that represents the object when it is selected. |
IPropertySet |
getMetadata()
The PropertySet containing metadata. |
String |
getName()
The short name of the object. |
INativeType |
getNativeType()
The native type. |
IUID |
getNewMenu()
The class ID of the New menu for this object. |
IGxObject |
getParent()
The parent of the object. |
String |
getPath()
The full path for the file. |
void |
getPropByIndex(int index,
String[] name,
Object[] value)
The name and value of the indexed property in the GxObject. |
Object |
getProperty(String name)
The value of the named property in the GxObject. |
int |
getPropertyCount()
The number of properties in the GxObject. |
int |
getSmallImage()
The small image that represents the object. |
int |
getSmallSelectedImage()
The small image that represents the object when it is selected. |
String |
getStylesheetPath()
Retrieve stylesheet path. |
IGPToolbox |
getToolbox()
The toolbox object associated with this GxGPToolbox object. |
IGPToolboxName |
getToolboxName()
The toolbox name object associated with this GxGPToolbox object. |
int |
getType()
The type of the associated dataset. |
int |
hashCode()
the hashcode for this object |
boolean |
isAreChildrenViewable()
Indicates if the objects children are available for viewing in the tree-view. |
boolean |
isCanEditMetadata()
Indicates if metadata can be edited. |
boolean |
isHasChildren()
Indicates if the object has any children. |
boolean |
isValid()
Indicates if the object is still valid. |
void |
loadCachedObjects()
Loads any objects that should be cached for efficiency. |
void |
onToolAdded(IGPToolboxEventsOnToolAddedEvent theEvent)
Called when a tool is added to the toolbox. |
void |
onToolboxDeleted(IGPToolboxEventsOnToolboxDeletedEvent theEvent)
Called when the toolbox is deleted. |
void |
onToolboxRenamed(IGPToolboxEventsOnToolboxRenamedEvent theEvent)
Called when the toolbox is renamed. |
void |
onToolDeleted(IGPToolboxEventsOnToolDeletedEvent theEvent)
Called when a tool is deleted from the toolbox. |
void |
onToolStateChanged(IGPToolboxEventsOnToolStateChangedEvent theEvent)
Called when a tool's state has changed. |
void |
onToolStored(IGPToolboxEventsOnToolStoredEvent theEvent)
Called when a tool is stored to the toolbox. |
void |
open()
Opens the file. |
boolean |
paste(IEnumName names,
boolean[] moveOperation)
Pastes the specified names into this object. |
void |
refresh()
Updates the object and any children of the object. |
void |
releaseCachedObjects()
Releases any objects that have been cached for efficiency. |
void |
rename(String newShortName)
Renames the object. |
void |
save()
Saves changes without closing the file. |
void |
setDatasetNameByRef(IDatasetName datasetName)
The associated dataset name. |
void |
setMetadata(IPropertySet ppPropertySet)
The PropertySet containing metadata. |
void |
setPath(String path)
The full path for the file. |
void |
setProperty(String name,
Object value)
Set the value of the named property in the GxObject. |
void |
setToolboxNameByRef(IGPToolboxName toolboxName)
The toolbox name object associated with this GxGPToolbox object. |
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 GxToolbox()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GxToolbox(Object obj)
throws IOException
GxToolbox theGxToolbox = (GxToolbox) obj;
obj to GxToolbox.
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 String getName()
throws IOException,
AutomationException
getName in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getFullName()
throws IOException,
AutomationException
getFullName in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getBaseName()
throws IOException,
AutomationException
getBaseName in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCategory()
throws IOException,
AutomationException
getCategory in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxObject getParent()
throws IOException,
AutomationException
getParent in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getClassID()
throws IOException,
AutomationException
getClassID in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IName getInternalObjectName()
throws IOException,
AutomationException
getInternalObjectName in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isValid()
throws IOException,
AutomationException
isValid in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void attach(IGxObject parent,
IGxCatalog pCatalog)
throws IOException,
AutomationException
attach in interface IGxObjectparent - A reference to a com.esri.arcgis.catalog.IGxObject (in)pCatalog - A reference to a com.esri.arcgis.catalog.IGxCatalog (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void detach()
throws IOException,
AutomationException
detach in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws IOException,
AutomationException
refresh in interface IGxObjectIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSmallImage()
throws IOException,
AutomationException
getSmallImage in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSmallSelectedImage()
throws IOException,
AutomationException
getSmallSelectedImage in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLargeImage()
throws IOException,
AutomationException
getLargeImage in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLargeSelectedImage()
throws IOException,
AutomationException
getLargeSelectedImage in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getContextMenu()
throws IOException,
AutomationException
getContextMenu in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getNewMenu()
throws IOException,
AutomationException
getNewMenu in interface IGxObjectUIIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasChildren()
throws IOException,
AutomationException
Note: This property always return True even when it has no children. This was done to improve the overall ArcCatalog browsing performance.
isHasChildren in interface IGxObjectContainerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumGxObject getChildren()
throws IOException,
AutomationException
getChildren in interface IGxObjectContainerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAreChildrenViewable()
throws IOException,
AutomationException
isAreChildrenViewable in interface IGxObjectContainerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxObject addChild(IGxObject child)
throws IOException,
AutomationException
addChild in interface IGxObjectContainerchild - A reference to a com.esri.arcgis.catalog.IGxObject (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteChild(IGxObject child)
throws IOException,
AutomationException
deleteChild in interface IGxObjectContainerchild - A reference to a com.esri.arcgis.catalog.IGxObject (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getPropertyCount()
throws IOException,
AutomationException
getPropertyCount in interface IGxObjectPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getPropByIndex(int index,
String[] name,
Object[] value)
throws IOException,
AutomationException
getPropByIndex in interface IGxObjectPropertiesindex - The index (in)name - The name (in/out: use single element array)value - A Variant (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getProperty(String name)
throws IOException,
AutomationException
getProperty in interface IGxObjectPropertiesname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setProperty(String name,
Object value)
throws IOException,
AutomationException
setProperty in interface IGxObjectPropertiesname - The name (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canPaste(IEnumName names,
boolean[] moveOperation)
throws IOException,
AutomationException
canPaste in interface IGxPasteTargetnames - A reference to a com.esri.arcgis.system.IEnumName (in)moveOperation - The moveOperation (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean paste(IEnumName names,
boolean[] moveOperation)
throws IOException,
AutomationException
paste in interface IGxPasteTargetnames - A reference to a com.esri.arcgis.system.IEnumName (in)moveOperation - The moveOperation (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadCachedObjects()
throws IOException,
AutomationException
loadCachedObjects in interface IGxCachedObjectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void releaseCachedObjects()
throws IOException,
AutomationException
releaseCachedObjects in interface IGxCachedObjectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canRename()
throws IOException,
AutomationException
canRename in interface IGxObjectEditIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void rename(String newShortName)
throws IOException,
AutomationException
rename in interface IGxObjectEditnewShortName - The newShortName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canDelete()
throws IOException,
AutomationException
canDelete in interface IGxObjectEditIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws IOException,
AutomationException
delete in interface IGxObjectEditIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void editProperties(int hParent)
throws IOException,
AutomationException
editProperties in interface IGxObjectEdithParent - The hParent (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canCopy()
throws IOException,
AutomationException
CanCopy must return True if your customized GxObject is intended to support copy/paste, drag/drop within ArcCatalog or drag/drop from ArcCatalog to ArcMap.
canCopy in interface IGxObjectEditIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getEditor()
throws IOException,
AutomationException
getEditor in interface IGxMetadataSupportIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getStylesheetPath()
throws IOException,
AutomationException
getStylesheetPath in interface IGxMetadataSupportIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDatasetNameByRef(IDatasetName datasetName)
throws IOException,
AutomationException
setDatasetNameByRef in interface IGxDatasetdatasetName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDatasetName getDatasetName()
throws IOException,
AutomationException
getDatasetName in interface IGxDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDataset()
throws IOException,
AutomationException
getDataset in interface IGxDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws IOException,
AutomationException
getType in interface IGxDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPToolboxName getToolboxName()
throws IOException,
AutomationException
getToolboxName in interface IGxGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setToolboxNameByRef(IGPToolboxName toolboxName)
throws IOException,
AutomationException
setToolboxNameByRef in interface IGxGPToolboxtoolboxName - A reference to a com.esri.arcgis.geoprocessing.IGPToolboxName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPToolbox getToolbox()
throws IOException,
AutomationException
getToolbox in interface IGxGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPath(String path)
throws IOException,
AutomationException
setPath in interface IGxFilepath - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPath()
throws IOException,
AutomationException
getPath in interface IGxFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_new()
throws IOException,
AutomationException
esri_new in interface IGxFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void open()
throws IOException,
AutomationException
open in interface IGxFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void close(boolean saveChanges)
throws IOException,
AutomationException
close in interface IGxFilesaveChanges - The saveChanges (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void edit()
throws IOException,
AutomationException
edit in interface IGxFileIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save()
throws IOException,
AutomationException
save in interface IGxFileIOException - 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.
public boolean isCanEditMetadata()
throws IOException,
AutomationException
This property is available to those objects that support metadata.
isCanEditMetadata in interface IMetadataEditIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INativeType getNativeType()
throws IOException,
AutomationException
getNativeType in interface INativeTypeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolboxDeleted(IGPToolboxEventsOnToolboxDeletedEvent theEvent)
throws IOException,
AutomationException
onToolboxDeleted in interface IGPToolboxEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolboxRenamed(IGPToolboxEventsOnToolboxRenamedEvent theEvent)
throws IOException,
AutomationException
onToolboxRenamed in interface IGPToolboxEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolAdded(IGPToolboxEventsOnToolAddedEvent theEvent)
throws IOException,
AutomationException
onToolAdded in interface IGPToolboxEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolDeleted(IGPToolboxEventsOnToolDeletedEvent theEvent)
throws IOException,
AutomationException
onToolDeleted in interface IGPToolboxEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolStored(IGPToolboxEventsOnToolStoredEvent theEvent)
throws IOException,
AutomationException
onToolStored in interface IGPToolboxEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onToolStateChanged(IGPToolboxEventsOnToolStateChangedEvent theEvent)
throws IOException,
AutomationException
onToolStateChanged in interface IGPToolboxEventstheEvent - The event
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 | ||||||||