|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.IWorkspaceDomainsProxy com.esri.arcgis.geodatabase.IWorkspaceDomains2Proxy
public class IWorkspaceDomains2Proxy
Provides access to members that allow you to alter a domain.
The IWorkspaceDomains2 interface was added to enable users to modify an existing domain. Without this interface, in order to modify an existing domain, it would first be necessary to disassociated it with all fields, delete the domain, create a new (and modified) domain, and reassociated it with the appropriate fields. Note that schema locks are acquired when altering a domain.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IWorkspaceDomains2Proxy()
|
|
IWorkspaceDomains2Proxy(Object obj)
|
protected |
IWorkspaceDomains2Proxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
alterDomain(IDomain domain)
Alters an existing domain in the workspace. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.geodatabase.IWorkspaceDomainsProxy |
---|
addDomain, deleteDomain, getDomainByName, getDomains, getDomainsByFieldType, isCanDeleteDomain |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.geodatabase.IWorkspaceDomains |
---|
addDomain, deleteDomain, getDomainByName, getDomains, getDomainsByFieldType, isCanDeleteDomain |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IWorkspaceDomains2Proxy()
public IWorkspaceDomains2Proxy(Object obj) throws IOException
IOException
protected IWorkspaceDomains2Proxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class IWorkspaceDomainsProxy
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class IWorkspaceDomainsProxy
IOException
public void alterDomain(IDomain domain) throws IOException, AutomationException
The AlterDomain method allows the user to either take an existing domain and modify it, and then call AlterDomain passing it as an argument. Alternatively, the user may create a new instance of a domain with the same name, owner, and field type as an existing domain. The existing domain would be replaced with the new domain. The identifier of the new domain will be modified to match that of the existing domain that is being altered.
The main use of AlterDomain is for modifying the range or coded values associated with the domain. Please note that the renaming of a Domain is not permitted.
alterDomain
in interface IWorkspaceDomains2
domain
- A reference to a com.esri.arcgis.geodatabase.IDomain (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 |