EPP 0.2.4

com.neulevel.epp.core.command
Class EppCommandUpdate

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.command.EppCommand
              |
              +--com.neulevel.epp.core.command.EppCommandUpdate
Direct Known Subclasses:
EppCommandUpdateContact, EppCommandUpdateDomain, EppCommandUpdateHost

public abstract class EppCommandUpdate
extends EppCommand

This EppCommandUpdate class implements EPP Command Update entity.

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

Field Summary
protected  java.util.Vector statusAdded
           
protected  java.util.Vector statusRemoved
           
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandUpdate()
           
 
Method Summary
 void addStatus(EppStatus status)
           
 void addStatus(java.lang.String status)
          Adds a new status for the EPP object
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandUpdate object.
 java.util.Vector getAddedStatus()
          Gets the list of new status to be added for the EPP object
 java.util.Vector getRemovedStatus()
          Gets the list of old status to be removed for the EPP object
 void removeStatus(EppStatus status)
           
 void removeStatus(java.lang.String status)
           
protected  void statusFromXML(org.w3c.dom.Node root, java.util.Vector statusList)
          Converts a list of EPP Status objects from XML
protected  void statusToXML(org.w3c.dom.Document doc, org.w3c.dom.Element body, java.util.Vector list)
          Converts a list of EPP Status objects into XML
 java.lang.String 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, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statusAdded

protected java.util.Vector statusAdded

statusRemoved

protected java.util.Vector statusRemoved
Constructor Detail

EppCommandUpdate

public EppCommandUpdate()
Method Detail

getAddedStatus

public java.util.Vector getAddedStatus()
Gets the list of new status to be added for the EPP object

addStatus

public void addStatus(java.lang.String status)
Adds a new status for the EPP object

addStatus

public void addStatus(EppStatus status)

getRemovedStatus

public java.util.Vector getRemovedStatus()
Gets the list of old status to be removed for the EPP object

removeStatus

public void removeStatus(java.lang.String status)

removeStatus

public void removeStatus(EppStatus status)

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppCommandUpdate object. The caller of this method must make sure that the root node is of an EPP Command Update entity.
Parameters:
root - root node for an EppCommandUpdate object in XML format
Returns:
an EppCommandUpdate object, or null if the node is invalid

statusToXML

protected void statusToXML(org.w3c.dom.Document doc,
                           org.w3c.dom.Element body,
                           java.util.Vector list)
Converts a list of EPP Status objects into XML
Parameters:
doc - the XML Document object
body - the XML Element object to which the list of EPP Status objects is appended
list - the list of EPP Status objects to be converted

statusFromXML

protected void statusFromXML(org.w3c.dom.Node root,
                             java.util.Vector statusList)
Converts a list of EPP Status objects from XML
Parameters:
root - the XML Node object containing the list of EPP Status objects
statusList - the list of EPP Status objects to be stored

toString

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

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.