EPP 0.4.9

com.neulevel.epp.core.response
Class EppValueReason

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.response.EppValueReason

public class EppValueReason
extends EppEntity

This EppValueReason class implements EPP value/reason for error diagnostic information.

Warning: Currently, this class supports free text values only. In the future, a DOMNode may be accepted for the value tag.

Version:
$Revision: 1.2 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppValueReason()
          Creates an EppValueReason object
EppValueReason(java.lang.String value, java.lang.String reason)
          Creates an EppValueReason object with a string value and a reason text
EppValueReason(java.lang.String value, java.lang.String reason, java.lang.String language)
          Creates an EppValueReason object with a string value, a reason text and its language code
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppValueReason object.
 java.lang.String getLanguage()
          Gets language type of the reason message
 java.lang.String getReason()
          Gets the reason
 java.lang.String getValue()
          Gets the value
 void setLanguage(java.lang.String language)
          Sets language type of the reason message
 void setReason(java.lang.String reason)
          Sets the reason
 void setValue(java.lang.String value)
          Sets the value
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppValueReason 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

EppValueReason

public EppValueReason()
Creates an EppValueReason object


EppValueReason

public EppValueReason(java.lang.String value,
                      java.lang.String reason)
Creates an EppValueReason object with a string value and a reason text


EppValueReason

public EppValueReason(java.lang.String value,
                      java.lang.String reason,
                      java.lang.String language)
Creates an EppValueReason object with a string value, a reason text and its language code

Method Detail

getValue

public java.lang.String getValue()
Gets the value


setValue

public void setValue(java.lang.String value)
Sets the value


getReason

public java.lang.String getReason()
Gets the reason


setReason

public void setReason(java.lang.String reason)
Sets the reason


getLanguage

public java.lang.String getLanguage()
Gets language type of the reason message


setLanguage

public void setLanguage(java.lang.String language)
Sets language type of the reason message


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppValueReason object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppValueReason object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppValueReason object. The caller of this method must make sure that the root node is of the EPP ExtErrValue Type.

Parameters:
root - root node for an EppValueReason object in XML format
Returns:
an EppValueReason object, or null if the node is invalid

toString

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

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.