|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.GPToolboxName
public class GPToolboxName
Light-weight object referencing a geoprocessing toolbox.
| Constructor Summary | |
|---|---|
GPToolboxName()
Constructs a GPToolboxName using ArcGIS Engine. |
|
GPToolboxName(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPToolboxName theGPToolboxName = (GPToolboxName) obj; |
|
| Method Summary | |
|---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
String |
getCategory()
The category of the dataset. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IEnumDatasetName |
getControllerNames(int datasetType)
The names of the dataset of the specified type. |
String |
getName()
The name of the dataset. |
String |
getNameString()
The name string of the object. |
String |
getPathName()
The path name of the toolbox. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getSQLPrivileges()
The database privileges. |
IEnumDatasetName |
getSubsetNames()
Subset names contained within this dataset name. |
int |
getType()
The type of the dataset. |
IWorkspaceName |
getWorkspaceName()
The WorkspaceName of the DatasetName. |
void |
grant(String userName,
int privileges,
boolean withGrant)
Grants privileges for the database user. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
Object |
open()
Opens the object referred to by this name. |
void |
readExternal(ObjectInput in)
|
void |
revoke(String userName,
int privileges)
Revokes privileges for the database user. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setCategory(String category)
The category of the dataset. |
void |
setControllerNameByRef(IDatasetName rhs1)
Add a DatasetName. |
void |
setName(String name)
The name of the dataset. |
void |
setNameString(String nameString)
The name string of the object. |
void |
setWorkspaceNameByRef(IWorkspaceName workspaceName)
The WorkspaceName of the DatasetName. |
void |
writeExternal(ObjectOutput out)
|
| 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 GPToolboxName()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GPToolboxName(Object obj)
throws IOException
GPToolboxName theGPToolboxName = (GPToolboxName) obj;
obj to GPToolboxName.
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 void setNameString(String nameString)
throws IOException,
AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
setNameString in interface INamenameString - The nameString (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getNameString()
throws IOException,
AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
getNameString in interface INameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object open()
throws IOException,
AutomationException
The Open method lets you instantiate the actual object given the name object.
Note: Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.
IName pName = pFeatureClassName;
pFeatureClass = new IFeatureClassProxy(pName.open());
open in interface INameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IDatasetNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface IDatasetNamename - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws IOException,
AutomationException
getType in interface IDatasetNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCategory()
throws IOException,
AutomationException
getCategory in interface IDatasetNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCategory(String category)
throws IOException,
AutomationException
setCategory in interface IDatasetNamecategory - The category (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspaceName getWorkspaceName()
throws IOException,
AutomationException
getWorkspaceName in interface IDatasetNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWorkspaceNameByRef(IWorkspaceName workspaceName)
throws IOException,
AutomationException
setWorkspaceNameByRef in interface IDatasetNameworkspaceName - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetName getSubsetNames()
throws IOException,
AutomationException
getSubsetNames in interface IDatasetNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPathName()
throws IOException,
AutomationException
getPathName in interface IGPToolboxNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSQLPrivileges()
throws IOException,
AutomationException
getSQLPrivileges in interface ISQLPrivilegeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void grant(String userName,
int privileges,
boolean withGrant)
throws IOException,
AutomationException
The esriSQLPrivilege enumeration defines privieges that that can be granted with ISQLPrivilege:
| Enumeration esriSQLPrivilege | SQL Privileges |
|---|---|
|
1 - esriSelectPrivilege |
Select |
|
2 - esriUpdatePrivilege |
Update |
|
4 - esriInsertPrivilege |
Insert |
|
8 - esriDeletePrivilege |
Delete |
The values may be bitwise OR'd together if more than one privilege applies (note that this is equal to summing the integer values). The dataset name could be a feature dataset, in which case the user would receive privileges on all the contents of the feature dataset.
If TRUE, the withGrant parameter denotes that
the user may grant access privileges to other users.
grant in interface ISQLPrivilegeuserName - The userName (in)privileges - The privileges (in)withGrant - The withGrant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void revoke(String userName,
int privileges)
throws IOException,
AutomationException
The esriSQLPrivilege enumeration defines privieges that that can be revoked with ISQLPrivilege:
| Enumeration esriSQLPrivilege | SQL Privileges |
|---|---|
|
1 - esriSelectPrivilege |
Select |
|
2 - esriUpdatePrivilege |
Update |
|
4 - esriInsertPrivilege |
Insert |
|
8 - esriDeletePrivilege |
Delete |
The values may be bitwise OR'd together if more than one priviege applies (note that this is equal to summing the integer values). The dataset name could be a feature dataset, in which case the user would no longer have privileges on the contents of the feature dataset.
revoke in interface ISQLPrivilegeuserName - The userName (in)privileges - The privileges (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - 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 IEnumDatasetName getControllerNames(int datasetType)
throws IOException,
AutomationException
getControllerNames in interface IDatasetName2datasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setControllerNameByRef(IDatasetName rhs1)
throws IOException,
AutomationException
setControllerNameByRef in interface IDatasetName2rhs1 - 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 void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||