EPP 0.2.6

com.neulevel.epp.core.command
Class EppCommandUpdateDomain

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.EppCommandUpdateDomain

public class EppCommandUpdateDomain
extends EppCommandUpdate

This EppCommandUpdateDomain class implements EPP Command Update entity for EPP Domain 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
EppCommandUpdateDomain(java.lang.String name)
          Creates an EppCommandUpdateDomain given the name of the domain
EppCommandUpdateDomain(java.lang.String name, java.lang.String xid)
          Creates an EppCommandUpdateDomain given the name of the domain and a client transaction id
 
Method Summary
 void addContact(EppContactType contact)
          Adds a new contact to be associated with the domain
 void addNameServer(java.lang.String nameServer)
          Adds a new name server to be associated with the domain
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandUpdateDomain object.
 java.util.Vector getContactAdded()
          Gets the list of new contacts to be added to the domain
 java.util.Vector getContactRemoved()
          Gets the list of old contacts to be removed from the domain
 java.lang.String getName()
          Gets the name of the domain to be updated
 java.util.Vector getNameServerAdded()
          Gets the list of new name servers to be added to the domain
 java.util.Vector getNameServerRemoved()
          Gets the list of old name servers to be removed from the domain
 EppAuthInfo getNewAuthInfo()
          Gets the new authorization information for the domain, or null if the authorization information of the domain is not to be changed
 java.lang.String getNewRegistrant()
          Gets the new registrant's contact id for the domain, or null if the registrant of the domain is not to be changed
 void removeContact(EppContactType contact)
           
 void removeNameServer(java.lang.String nameServer)
          Removes an old name server associated with the domain
 void setName(java.lang.String name)
          Sets the name of the domain to be updated
 void setNewAuthInfo(EppAuthInfo authInfo)
          Sets the new authorization information for the domain if it needs to be changed
 void setNewRegistrant(java.lang.String registrant)
          Sets the new registrant's contact id for the domain if a new registrant claims the ownership of the domain
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandUpdateDomain 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

EppCommandUpdateDomain

public EppCommandUpdateDomain(java.lang.String name)
Creates an EppCommandUpdateDomain given the name of the domain


EppCommandUpdateDomain

public EppCommandUpdateDomain(java.lang.String name,
                              java.lang.String xid)
Creates an EppCommandUpdateDomain given the name of the domain and a client transaction id

Method Detail

getName

public java.lang.String getName()
Gets the name of the domain to be updated


setName

public void setName(java.lang.String name)
Sets the name of the domain to be updated


getNameServerAdded

public java.util.Vector getNameServerAdded()
Gets the list of new name servers to be added to the domain


addNameServer

public void addNameServer(java.lang.String nameServer)
Adds a new name server to be associated with the domain


getNameServerRemoved

public java.util.Vector getNameServerRemoved()
Gets the list of old name servers to be removed from the domain


removeNameServer

public void removeNameServer(java.lang.String nameServer)
Removes an old name server associated with the domain


getContactAdded

public java.util.Vector getContactAdded()
Gets the list of new contacts to be added to the domain


addContact

public void addContact(EppContactType contact)
Adds a new contact to be associated with the domain


getContactRemoved

public java.util.Vector getContactRemoved()
Gets the list of old contacts to be removed from the domain


removeContact

public void removeContact(EppContactType contact)

getNewRegistrant

public java.lang.String getNewRegistrant()
Gets the new registrant's contact id for the domain, or null if the registrant of the domain is not to be changed


setNewRegistrant

public void setNewRegistrant(java.lang.String registrant)
Sets the new registrant's contact id for the domain if a new registrant claims the ownership of the domain


getNewAuthInfo

public EppAuthInfo getNewAuthInfo()
Gets the new authorization information for the domain, or null if the authorization information of the domain is not to be changed


setNewAuthInfo

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


toXML

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

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppCommandUpdateDomain 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 Domain object.

Parameters:
root - root node for an EppCommandUpdate 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.