EPP 0.2.6

com.neulevel.epp.core.command
Class EppCommandUpdateContact

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.command.EppCommand
          extended bycom.neulevel.epp.core.command.EppCommandUpdate
              extended bycom.neulevel.epp.core.command.EppCommandUpdateContact

public class EppCommandUpdateContact
extends EppCommandUpdate

This EppCommandUpdateContact class implements EPP Command Update entity for EPP Contact objects.

Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
 
Fields inherited from class com.neulevel.epp.core.command.EppCommandUpdate
statusAdded, statusRemoved
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandUpdateContact(java.lang.String id)
          Creates an EppCommandUpdateContact given the id of the contact
EppCommandUpdateContact(java.lang.String id, java.lang.String xid)
          Creates an EppCommandUpdateContact given the id of the contact and a client transaction id
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandUpdateDomain object.
 java.lang.String getId()
          Gets the id of the contact to be updated
 EppContactData getNewAscii()
          Gets the new contact data in ascii encoding, or null if not changed
 EppAuthInfo getNewAuthInfo()
           
 java.lang.String getNewEmail()
          Gets the new email address of the contact, or null if not changed
 EppE164 getNewFax()
          Gets the new fax number
 EppContactData getNewI15d()
          Gets the new contact data in native encoding, or null if not changed
 EppE164 getNewVoice()
          Gets the new voice phone number
 void setId(java.lang.String id)
          Sets the id of the contact to be updated
 void setNewAscii(EppContactData ascii)
          Sets the new contact data in ascii encoding, or null if not changed
 void setNewAuthInfo(EppAuthInfo authInfo)
          Sets the new authorization information for the contact if it needs to be changed
 void setNewEmail(java.lang.String email)
          Sets the new email address of the contact, or null if not changed
 void setNewFax(EppE164 fax)
          Sets the new fax number
 void setNewFax(java.lang.String fax)
          Sets the new fax number
 void setNewFax(java.lang.String fax, java.lang.String ext)
          Sets the new fax number
 void setNewI15d(EppContactData i15d)
          Sets the new contact data in ascii encoding, or null if not changed
 void setNewVoice(EppE164 voice)
          Sets the new voice phone number
 void setNewVoice(java.lang.String voice)
          Sets the new voice phone number
 void setNewVoice(java.lang.String voice, java.lang.String ext)
          Sets the new voice phone number
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandUpdateContact object into an XML element
 
Methods inherited from class com.neulevel.epp.core.command.EppCommandUpdate
addStatus, addStatus, getAddedStatus, getRemovedStatus, removeStatus, removeStatus, statusFromXML, statusToXML, toString
 
Methods inherited from class com.neulevel.epp.core.command.EppCommand
check, create, delete, getClientTransactionId, getCreds, getUnspec, info, renew, setClientTransactionId, setCreds, setUnspec, toXMLCommon, toXMLCommon, toXMLCommon, toXMLCommon, transfer, update
 
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

EppCommandUpdateContact

public EppCommandUpdateContact(java.lang.String id)
Creates an EppCommandUpdateContact given the id of the contact


EppCommandUpdateContact

public EppCommandUpdateContact(java.lang.String id,
                               java.lang.String xid)
Creates an EppCommandUpdateContact given the id of the contact and a client transaction id

Method Detail

getId

public java.lang.String getId()
Gets the id of the contact to be updated


setId

public void setId(java.lang.String id)
Sets the id of the contact to be updated


getNewAscii

public EppContactData getNewAscii()
Gets the new contact data in ascii encoding, or null if not changed


setNewAscii

public void setNewAscii(EppContactData ascii)
Sets the new contact data in ascii encoding, or null if not changed


getNewI15d

public EppContactData getNewI15d()
Gets the new contact data in native encoding, or null if not changed


setNewI15d

public void setNewI15d(EppContactData i15d)
Sets the new contact data in ascii encoding, or null if not changed


getNewVoice

public EppE164 getNewVoice()
Gets the new voice phone number


setNewVoice

public void setNewVoice(java.lang.String voice)
Sets the new voice phone number


setNewVoice

public void setNewVoice(java.lang.String voice,
                        java.lang.String ext)
Sets the new voice phone number


setNewVoice

public void setNewVoice(EppE164 voice)
Sets the new voice phone number


getNewFax

public EppE164 getNewFax()
Gets the new fax number


setNewFax

public void setNewFax(java.lang.String fax)
Sets the new fax number


setNewFax

public void setNewFax(java.lang.String fax,
                      java.lang.String ext)
Sets the new fax number


setNewFax

public void setNewFax(EppE164 fax)
Sets the new fax number


getNewEmail

public java.lang.String getNewEmail()
Gets the new email address of the contact, or null if not changed


setNewEmail

public void setNewEmail(java.lang.String email)
Sets the new email address of the contact, or null if not changed


getNewAuthInfo

public EppAuthInfo getNewAuthInfo()

setNewAuthInfo

public void setNewAuthInfo(EppAuthInfo authInfo)
Sets the new authorization information for the contact if it needs to be changed


toXML

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

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

fromXML

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

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

EPP 0.2.6

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.