EPP 0.2.4

com.neulevel.epp.core
Class EppStatus

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

public class EppStatus
extends EppEntity

This EppStatus class implements EPP Status entity. Different EPP objects have different status values:

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

Constructor Summary
EppStatus()
          Creates an EppStatus object, with default status as "ok" and language as "en"
EppStatus(java.lang.String status)
          Creates an EppStatus object with a status code
EppStatus(java.lang.String status, java.lang.String lang, java.lang.String message)
          Creates an EppStatus object with a status code, and a descriptive message
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppStatus object.
 java.lang.String getLanguage()
          Gets the language for encoding the description message
 java.lang.String getMessage()
          Gets the description message associated with the EppStatus object
 java.lang.String getStatus()
          Gets the status code string
 void setLanguage(java.lang.String language)
          Sets the language for encoding the description message
 void setMessage(java.lang.String message)
          Sets the description message associated with the EppStatus object
 void setStatus(java.lang.String status)
          Sets the status code string
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppStatus 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

EppStatus

public EppStatus()
Creates an EppStatus object, with default status as "ok" and language as "en"

EppStatus

public EppStatus(java.lang.String status)
Creates an EppStatus object with a status code

EppStatus

public EppStatus(java.lang.String status,
                 java.lang.String lang,
                 java.lang.String message)
Creates an EppStatus object with a status code, and a descriptive message
Method Detail

getMessage

public java.lang.String getMessage()
Gets the description message associated with the EppStatus object

setMessage

public void setMessage(java.lang.String message)
Sets the description message associated with the EppStatus object

getStatus

public java.lang.String getStatus()
Gets the status code string

setStatus

public void setStatus(java.lang.String status)
Sets the status code string

getLanguage

public java.lang.String getLanguage()
Gets the language for encoding the description message

setLanguage

public void setLanguage(java.lang.String language)
Sets the language for encoding the description message

toXML

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

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppStatus object. The caller of this method must make sure that the root node is of the EPP Status type.
Parameters:
root - root node for an EppStatus object in XML format
Returns:
an EppStatus 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.