|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPMessages
Provides access to Geoprocessor messages.
The GPMessages object manages an array of GPMessage objects. This object contains methods to generate and replace message objects. The Validate() method returns a GPMessages object that contains one message for each parameter.
See also IGPMessage
The IGPMessages returns the messages that are generated during validation and execution of a geoprocessing tool. The GPMessages object is a container of a collection of GPMessage objects.
For the Validate method, the messages are returned as an array of GPMessage objects. The layout of the returned array is the same as the input array of values, which is the same as the array of tool parameter descriptions.
Also refer to Building Geoprocessing Function Tools .
Method Summary | |
---|---|
void |
add(IGPMessage msg)
Adds a message object to the messages. |
void |
addAbort(String message)
Adds an abort message to the messages. |
void |
addError(int errorCode,
String message)
Adds an error message to the messages. |
void |
addMessage(String message)
Adds an informative message to the messages. |
void |
addMessages(IGPMessages messages)
Adds all messages from an existing messages object to this messages object. |
void |
addWarning(String message)
Adds a warning message to the messages. |
void |
clear()
Clears the message objects from messages object. |
IGPMessagesCallback |
getCallback()
The callback object associated with the GPMessages object. |
int |
getCount()
The message count. |
int |
getMaxSeverity()
The maximum message severity. |
IGPMessage |
getMessage(int index)
Provides a message object from the specified location. |
IArray |
getMessages()
The array of message objects. |
void |
initializeMessages(int nMessages)
Creates a number of empty messages and adds them to this messages object. |
void |
replace(int index,
IGPMessage msg)
Replace an existing message in a specified location with a new message object. |
void |
replaceAbort(int index,
String message)
Creates message of type esriGPMessageTypeAbort and replaces it into a specified position. |
void |
replaceError(int index,
int errorCode,
String message)
Creates message of type esriGPMessageTypeError and replaces it into a specified position. |
void |
replaceMessage(int index,
String message)
Creates message and replaces it into a specified position. |
void |
replaceWarning(int index,
String message)
Creates message of type esriGPMessageTypeWarning and replaces it into a specified position. |
void |
setCallbackByRef(IGPMessagesCallback messagesCallback)
The callback object associated with the GPMessages object. |
Method Detail |
---|
void setCallbackByRef(IGPMessagesCallback messagesCallback) throws IOException, AutomationException
messagesCallback
- A reference to a com.esri.arcgis.geodatabase.IGPMessagesCallback (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessagesCallback getCallback() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clear() throws IOException, AutomationException
The Clear method empties a collection of GPMessage objects.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void add(IGPMessage msg) throws IOException, AutomationException
The Add method adds a GPMessage object to the GPMessages collection.
msg
- A reference to a com.esri.arcgis.geodatabase.IGPMessage (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addWarning(String message) throws IOException, AutomationException
The AddWarning method creates a GPMessage of type esriGPMEssageTypeWarning and adds it to this collection.
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addAbort(String message) throws IOException, AutomationException
The AddAbort method creates a GPMessage of type esriGPMEssageTypeAbort and adds it to this collection.
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addError(int errorCode, String message) throws IOException, AutomationException
The AddError method creates a GPMessage of type esriGPMEssageTypeError and adds it to this collection.
errorCode
- The errorCode (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addMessage(String message) throws IOException, AutomationException
The AddMessage method creates a GPMessage of type esriGPMEssageTypeInformative and adds it to this collection.
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addMessages(IGPMessages messages) throws IOException, AutomationException
The AddMessages method adds all messages from the input collection to this collection.
messages
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void initializeMessages(int nMessages) throws IOException, AutomationException
The InitializeMessages method creates a number of empty messages and adds them to this collection.
nMessages
- The nMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replace(int index, IGPMessage msg) throws IOException, AutomationException
The Replace method replaces a message into a specified position in this GPMessages collection.
index
- The index (in)msg
- A reference to a com.esri.arcgis.geodatabase.IGPMessage (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replaceError(int index, int errorCode, String message) throws IOException, AutomationException
The ReplaceError method creates a GPMessage of type esriGPMEssageTypeError and replaces it into a specified position in this GPMessages collection.
index
- The index (in)errorCode
- The errorCode (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replaceWarning(int index, String message) throws IOException, AutomationException
The ReplaceWarning method creates a GPMessage of type esriGPMEssageTypeWarning and replaces it into a specified position in this GPMessages collection.
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replaceAbort(int index, String message) throws IOException, AutomationException
The ReplaceAbort method creates a GPMessage of type esriGPMEssageTypeAbort and replaces it into a specified position in this GPMessages collection.
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replaceMessage(int index, String message) throws IOException, AutomationException
The ReplaceMessage method creates a GPMessage of type esriGPMEssageTypeInformative and replaces it into a specified position in this GPMessages collection.
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCount() throws IOException, AutomationException
The get_Count property returns the number of GPMessage objects in this collection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessage getMessage(int index) throws IOException, AutomationException
The GetMessage property returns the specified GPMessage object from this collection.
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getMessages() throws IOException, AutomationException
The get_Messages property returns all the GPMessage objects in this collection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxSeverity() throws IOException, AutomationException
The get_MaxSeverity property returns the highest message type class in this collection. Valid values are defined and stored in the enumeration esriGPMessageSeverity ; they are: esriGPMessageSeverityInformative, esriGPMessageSeverityWarning, esriGPMessageSeverityError, and esriGPMessageSeverityAbort .
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 |