|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.GPMessages
public class GPMessages
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 .
Constructor Summary | |
---|---|
GPMessages()
Constructs a GPMessages using ArcGIS Engine. |
|
GPMessages(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPMessages theGPMessages = (GPMessages) obj; |
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 |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
clear()
Clears the message objects from messages object. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
IGPMessagesCallback |
getCallback()
The callback object associated with the GPMessages object. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCount()
The message count. |
String |
getDescription()
The description of the geoprocessing message. |
int |
getErrorCode()
The error code for the geoprocessing message. |
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 |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getType()
The geoprocessing message type. |
int |
hashCode()
the hashcode for this object |
void |
initializeMessages(int nMessages)
Creates a number of empty messages and adds them to this messages object. |
boolean |
isAbort()
Indicates if the message is an abort. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isError()
Indicates if the message is an error. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isInformational()
Indicates if the message is informative. |
boolean |
isWarning()
Indicates if the message is a warning. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
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 |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setCallbackByRef(IGPMessagesCallback messagesCallback)
The callback object associated with the GPMessages object. |
void |
setDescription(String message)
The description of the geoprocessing message. |
void |
setErrorCode(int errorCode)
The error code for the geoprocessing message. |
void |
setType(int type)
The geoprocessing message type. |
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 GPMessages() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GPMessages(Object obj) throws IOException
GPMessages theGPMessages = (GPMessages) obj;
obj
to GPMessages
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setType(int type) throws IOException, AutomationException
setType
in interface IGPMessage
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
The get_Type property returns the message's type. Valid values are defined in the esriGPMessageType enumeration; they are: esriGPMessageTypeInformative, esriGPMessageTypeProcessDefinition, esriGPMessageTypeProcessStart, esriGPMessageTypeProcessStop, esriGPMessageTypeWarning, esriGPMessageTypeAbort, esriGPMessageTypeError, and esriGPMessageTypeEmpty.
getType
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setErrorCode(int errorCode) throws IOException, AutomationException
The ErrorCode property returns the error code for a given message. It applies only to messages of type error.
setErrorCode
in interface IGPMessage
errorCode
- The errorCode (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getErrorCode() throws IOException, AutomationException
The get_ErrorCode property returns the message's error code. It applies only to a message of type esriGPMessageTypeError.
getErrorCode
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String message) throws IOException, AutomationException
setDescription
in interface IGPMessage
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
The get_Description property returns the actual message text string.
getDescription
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isInformational() throws IOException, AutomationException
The IsInformational method returns true if the message is of type esriGPMessageTypeInformative, esriGPMessageTypeProcessDefinition, esriGPMessageTypeProcessStart, and esriGPMessageTypeProcessStop.
isInformational
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isWarning() throws IOException, AutomationException
The IsWarning method returns true if the message is of type esriGPMessageTypeWarning.
isWarning
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isError() throws IOException, AutomationException
The IsError method returns true if the message is of type esriGPMessageTypeError.
isError
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAbort() throws IOException, AutomationException
The IsAbort method returns true if the message is of type esriGPMessageTypeAbort.
isAbort
in interface IGPMessage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCallbackByRef(IGPMessagesCallback messagesCallback) throws IOException, AutomationException
setCallbackByRef
in interface IGPMessages
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.public IGPMessagesCallback getCallback() throws IOException, AutomationException
getCallback
in interface IGPMessages
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear() throws IOException, AutomationException
The Clear method empties a collection of GPMessage objects.
clear
in interface IGPMessages
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void add(IGPMessage msg) throws IOException, AutomationException
The Add method adds a GPMessage object to the GPMessages collection.
add
in interface IGPMessages
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.public void addWarning(String message) throws IOException, AutomationException
The AddWarning method creates a GPMessage of type esriGPMEssageTypeWarning and adds it to this collection.
addWarning
in interface IGPMessages
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addAbort(String message) throws IOException, AutomationException
The AddAbort method creates a GPMessage of type esriGPMEssageTypeAbort and adds it to this collection.
addAbort
in interface IGPMessages
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addError(int errorCode, String message) throws IOException, AutomationException
The AddError method creates a GPMessage of type esriGPMEssageTypeError and adds it to this collection.
addError
in interface IGPMessages
errorCode
- The errorCode (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessage(String message) throws IOException, AutomationException
The AddMessage method creates a GPMessage of type esriGPMEssageTypeInformative and adds it to this collection.
addMessage
in interface IGPMessages
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessages(IGPMessages messages) throws IOException, AutomationException
The AddMessages method adds all messages from the input collection to this collection.
addMessages
in interface IGPMessages
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.public void initializeMessages(int nMessages) throws IOException, AutomationException
The InitializeMessages method creates a number of empty messages and adds them to this collection.
initializeMessages
in interface IGPMessages
nMessages
- The nMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replace(int index, IGPMessage msg) throws IOException, AutomationException
The Replace method replaces a message into a specified position in this GPMessages collection.
replace
in interface IGPMessages
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.public 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.
replaceError
in interface IGPMessages
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.public 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.
replaceWarning
in interface IGPMessages
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
replaceAbort
in interface IGPMessages
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
replaceMessage
in interface IGPMessages
index
- The index (in)message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
The get_Count property returns the number of GPMessage objects in this collection.
getCount
in interface IGPMessages
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPMessage getMessage(int index) throws IOException, AutomationException
The GetMessage property returns the specified GPMessage object from this collection.
getMessage
in interface IGPMessages
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getMessages() throws IOException, AutomationException
The get_Messages property returns all the GPMessage objects in this collection.
getMessages
in interface IGPMessages
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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 .
getMaxSeverity
in interface IGPMessages
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (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 IPersistStream
IOException
- 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 IPersistStream
pstm
- 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 IPersistStream
pstm
- 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 IPersistStream
pcbSize
- 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 IPersist
pClassID
- 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 IXMLSerialize
data
- 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 IXMLSerialize
data
- 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 writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |