EPP 0.2.4

com.neulevel.epp.core.response
Class EppResult

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.response.EppResult

public class EppResult
extends EppEntity

This EppResult class implements EPP Result entity.

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppResult()
          Creates an EppResult object
EppResult(int code)
          Creates an EppResult object
EppResult(int code, java.lang.String message)
          Creates an EppResult object
EppResult(int code, java.lang.String message, java.lang.String value)
          Creates an EppResult object
 
Method Summary
 void addValue(java.lang.String value)
          Adds values to be returned
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppResult object.
 int getCode()
          Gets result code
 EppResultMessage getMessage()
          Gets message to be returned
 java.util.Vector getValue()
          Gets values to be returned
 void setCode(int code)
          Sets result code
 void setMessage(EppResultMessage message)
          Sets message to be returned
 void setMessage(java.lang.String message)
          Sets message to be returned
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppResult object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppResult

public EppResult()
Creates an EppResult object

EppResult

public EppResult(int code)
Creates an EppResult object
Parameters:
code - result code

EppResult

public EppResult(int code,
                 java.lang.String message)
Creates an EppResult object
Parameters:
code - result code
message - message to be returned

EppResult

public EppResult(int code,
                 java.lang.String message,
                 java.lang.String value)
Creates an EppResult object
Parameters:
code - result code
message - message to be returned
value - value to be returned
Method Detail

getCode

public int getCode()
Gets result code

setCode

public void setCode(int code)
Sets result code

getMessage

public EppResultMessage getMessage()
Gets message to be returned

setMessage

public void setMessage(java.lang.String message)
Sets message to be returned

setMessage

public void setMessage(EppResultMessage message)
Sets message to be returned

getValue

public java.util.Vector getValue()
Gets values to be returned

addValue

public void addValue(java.lang.String value)
Adds values to be returned

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppResult object into an XML element
Overrides:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppResult object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppResult object. The caller of this method must make sure that the root node is of the EPP responseType.
Parameters:
root - root node for an EppResult object in XML format
Returns:
an EppResult object, or null if the node is invalid

toString

public java.lang.String toString()
Overrides:
toString in class EppEntity

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.