|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDomain
Provides access to members that return and modify domains and their merge and split policies.
| Method Summary | |
|---|---|
String |
getDescription()
The description of the domain. |
int |
getDomainID()
The ID of the domain. |
int |
getFieldType()
The field type of the field. |
int |
getMergePolicy()
The merge policy. |
String |
getName()
The name of the domain. |
String |
getOwner()
The owner of the domain. |
int |
getSplitPolicy()
The split policy. |
int |
getType()
The domain type. |
boolean |
memberOf(Object value)
Indicates whether the value is a valid member of the domain. |
void |
setDescription(String description)
The description of the domain. |
void |
setDomainID(int iD)
The ID of the domain. |
void |
setFieldType(int fieldType)
The field type of the field. |
void |
setMergePolicy(int policy)
The merge policy. |
void |
setName(String name)
The name of the domain. |
void |
setOwner(String owner)
The owner of the domain. |
void |
setSplitPolicy(int policy)
The split policy. |
| Method Detail |
|---|
int getDomainID()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setDomainID(int iD)
throws IOException,
AutomationException
iD - The iD (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getDescription()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setDescription(String description)
throws IOException,
AutomationException
description - The description (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getFieldType()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setFieldType(int fieldType)
throws IOException,
AutomationException
//Create a new range domain
IRangeDomain pCode = new RangeDomain();
pCode.setMinValue ( "9#");
pCode.setMaxValue ("600000#");
IDomain pDomain = pCode;
pDomain.setName("Area constraint");
pDomain.setFieldType(esriFieldType.esriFieldTypeDouble);
pDomain.setDescription ( "Constrains the area of buildings");
pDomain.setMergePolicy (esriMergePolicyType.esriMPTAreaWeighted);
pDomain.setSplitPolicy (esriSplitPolicyType.esriSPTGeometryRatio);
fieldType - A com.esri.arcgis.geodatabase.esriFieldType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getMergePolicy()
throws IOException,
AutomationException
This property sets or returns the merge policy for the domain object. The merge policy describes what happens to the values of the field that the domain is applied to when two objects are merged into a single object. The merge policy is an esriMergePolicyType enumeration.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setMergePolicy(int policy)
throws IOException,
AutomationException
//Create a new range domain
IRangeDomain pCode = new RangeDomain();
pCode.setMinValue ( "9#");
pCode.setMaxValue ("600000#");IDomain pDomain = pCode;
pDomain.setName("Area constraint");
pDomain.setFieldType(esriFieldType.esriFieldTypeDouble);
pDomain.setDescription ( "Constrains the area of buildings");
pDomain.setMergePolicy (esriMergePolicyType.esriMPTAreaWeighted);
pDomain.setSplitPolicy (esriSplitPolicyType.esriSPTGeometryRatio);
policy - A com.esri.arcgis.geodatabase.esriMergePolicyType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getSplitPolicy()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setSplitPolicy(int policy)
throws IOException,
AutomationException
//Create a new range domain
IRangeDomain pCode = new RangeDomain();
pCode.setMinValue ( "9#");
pCode.setMaxValue ("600000#");IDomain pDomain = pCode;
pDomain.setName("Area constraint");
pDomain.setFieldType(esriFieldType.esriFieldTypeDouble);
pDomain.setDescription ( "Constrains the area of buildings");
pDomain.setMergePolicy (esriMergePolicyType.esriMPTAreaWeighted);
pDomain.setSplitPolicy (esriSplitPolicyType.esriSPTGeometryRatio);
policy - A com.esri.arcgis.geodatabase.esriSplitPolicyType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getName()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setName(String name)
throws IOException,
AutomationException
//Create a new range domain
IRangeDomain pCode = new RangeDomain();
pCode.setMinValue ( "9#");
pCode.setMaxValue ("600000#");IDomain pDomain = pCode;
pDomain.setName("Area constraint");
pDomain.setFieldType(esriFieldType.esriFieldTypeDouble);
pDomain.setDescription ( "Constrains the area of buildings");
pDomain.setMergePolicy (esriMergePolicyType.esriMPTAreaWeighted);
pDomain.setSplitPolicy (esriSplitPolicyType.esriSPTGeometryRatio);
name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getOwner()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setOwner(String owner)
throws IOException,
AutomationException
owner - The owner (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getType()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean memberOf(Object value)
throws IOException,
AutomationException
value - A Variant (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 | ||||||||