|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMdElement
Provides access to properties/methods of a model element.
The IMdElement provides access to model element's properties such as State and Valid, and its methods such as GetMessages and Validate.
MdElement objects are the items that define the contents of a model. A Model Process [IMdProcess] represents the invocation of a tool with its set of values. A Moel Variable [IMdVariable] represents a specific value that is used as input or output of one or more model processes.
The attached sample code show how to access a model process.
Method Summary | |
---|---|
IEnumMdElement |
getDependents(int direction,
int connectionType)
Returns an enumeration of model elements that are dependent on the model element in the given direction and of the given connection type. |
int |
getID()
Unique identifier of the model element. |
IGPMessages |
getMessages()
Returns the messages returned from the last call to Validate(). |
IMdModel |
getModel()
The model the model element is contained within. |
String |
getName()
Name of the model element. |
int |
getState()
The state of the model element. |
boolean |
isAltered()
Indicates if the model element has been altered by the user. |
boolean |
isCurrent()
Indicates if the model element is current (i.e., has been created). |
boolean |
isDependentOn(IMdElement pMdElement,
int direction,
int connectionType)
Returns whether or not the model element is dependent on the given model element in the given direction of the given connection type. |
boolean |
isMarked()
Indicates if the model element has been marked for validation/execution. |
boolean |
isValid()
Indicates if the model element is valid. |
void |
setAltered(boolean altered)
Indicates if the model element has been altered by the user. |
void |
setCurrent(boolean current)
Indicates if the model element is current (i.e., has been created). |
void |
setID(int identifier)
Unique identifier of the model element. |
void |
setMarked(boolean marked)
Indicates if the model element has been marked for validation/execution. |
void |
setModelByRef(IMdModel model)
The model the model element is contained within. |
void |
setName(String name)
Name of the model element. |
void |
setValid(boolean valid)
Indicates if the model element is valid. |
IGPMessages |
validate(boolean updateValues,
IGPEnvironmentManager pEnvMgr)
Validates the model element. |
Method Detail |
---|
int getID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setID(int identifier) throws IOException, AutomationException
identifier
- The identifier (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
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isMarked() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMarked(boolean marked) throws IOException, AutomationException
marked
- The marked (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCurrent() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCurrent(boolean current) throws IOException, AutomationException
current
- The current (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isValid() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setValid(boolean valid) throws IOException, AutomationException
valid
- The valid (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMdModel getModel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setModelByRef(IMdModel model) throws IOException, AutomationException
model
- A reference to a com.esri.arcgis.geoprocessing.IMdModel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getState() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumMdElement getDependents(int direction, int connectionType) throws IOException, AutomationException
direction
- A com.esri.arcgis.geoprocessing.esriMdDirection constant (in)connectionType
- A com.esri.arcgis.geoprocessing.esriMdConnectionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDependentOn(IMdElement pMdElement, int direction, int connectionType) throws IOException, AutomationException
pMdElement
- A reference to a com.esri.arcgis.geoprocessing.IMdElement (in)direction
- A com.esri.arcgis.geoprocessing.esriMdDirection constant (in)connectionType
- A com.esri.arcgis.geoprocessing.esriMdConnectionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessages validate(boolean updateValues, IGPEnvironmentManager pEnvMgr) throws IOException, AutomationException
updateValues
- The updateValues (in)pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessages getMessages() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAltered() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAltered(boolean altered) throws IOException, AutomationException
altered
- The altered (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 |