EPP 0.4.9

com.neulevel.epp.core.response
Class EppResponseDataCreateContact

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.response.EppResponseData
          extended by com.neulevel.epp.core.response.EppResponseDataCreate
              extended by com.neulevel.epp.core.response.EppResponseDataCreateContact

public class EppResponseDataCreateContact
extends EppResponseDataCreate

This EppResponseDataCreateContact class implements EPP Response Data entity for EPP Command Create of EPP Contact objects.

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

Field Summary
 
Fields inherited from class com.neulevel.epp.core.response.EppResponseDataCreate
crDate, roid
 
Constructor Summary
EppResponseDataCreateContact(java.lang.String id)
          Creates an EppResponseDataCreateContact object, given the contact id, with the current date as the creation date
EppResponseDataCreateContact(java.lang.String id, java.util.Calendar crDate)
          Creates an EppResponseDataCreateContact object, given the contact id and the creation date
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppResponseDataCreateContact object.
 java.lang.String getId()
          Gets the contact id
 void setId(java.lang.String id)
          Sets the contact id
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts an EppResponseDataCreateContact object into an XML element.
 
Methods inherited from class com.neulevel.epp.core.response.EppResponseDataCreate
getDateCreated, getRoid, setDateCreated, setRoid
 
Methods inherited from class com.neulevel.epp.core.response.EppResponseData
toString
 
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

EppResponseDataCreateContact

public EppResponseDataCreateContact(java.lang.String id)
Creates an EppResponseDataCreateContact object, given the contact id, with the current date as the creation date


EppResponseDataCreateContact

public EppResponseDataCreateContact(java.lang.String id,
                                    java.util.Calendar crDate)
Creates an EppResponseDataCreateContact object, given the contact id and the creation date

Method Detail

setId

public void setId(java.lang.String id)
Sets the contact id


getId

public java.lang.String getId()
Gets the contact id


fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppResponseDataCreateContact object. The caller of this method must make sure that the root node is the resData element of EPP responseType for creating an EPP Contact object.

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

toXML

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

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

EPP 0.4.9

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