com.esri.core.tasks.ags.na
Class NAMessage

java.lang.Object
  extended by com.esri.core.tasks.ags.na.NAMessage

public class NAMessage
extends Object

Class containing a message returned by the server.

Since:
10.1.1

Constructor Summary
NAMessage()
          Empty Constructor
NAMessage(int type, String description)
          Constructor taking the type and description of the message
 
Method Summary
 boolean equals(Object obj)
           
static NAMessage fromJson(org.codehaus.jackson.JsonParser parser)
          Creates a NAMessage object from a json representation
 String getDescription()
          Gets the text description of the message
 int getType()
          Gets the type of the message
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NAMessage

public NAMessage()
Empty Constructor

Since:
10.1.1

NAMessage

public NAMessage(int type,
                 String description)
Constructor taking the type and description of the message

Parameters:
type - The type of the message
description - The text of the message
Since:
10.1.1
Method Detail

getType

public int getType()
Gets the type of the message

Returns:
the type of the message
Since:
10.1.1

getDescription

public String getDescription()
Gets the text description of the message

Returns:
the text description of the message
Since:
10.1.1

fromJson

public static NAMessage fromJson(org.codehaus.jackson.JsonParser parser)
                          throws Exception
Creates a NAMessage object from a json representation

Parameters:
parser - the parser containing the json
Returns:
NAMessage the object created from the json
Throws:
Exception
Since:
10.1.1

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.