com.verisign.epp.codec.host
Class EPPHostAddRemove

java.lang.Object
  extended by com.verisign.epp.codec.host.EPPHostAddRemove
All Implemented Interfaces:
EPPCodecComponent, java.io.Serializable, java.lang.Cloneable

public class EPPHostAddRemove
extends java.lang.Object
implements EPPCodecComponent

Represents attributes to add, remove or change with a EPPHostUpdateCmd. In EPPHostUpdateCmd, an instance of EPPHostAddRemove is used to specify the attributes to add, an instance of EPPHostAddRemove is used to specify the attributes to remove and instance of EPPHostAddRemove is used to specify the attributes to change

The <host:add> and <host:rem> elements SHALL contain the following child elements:


The <host:chg> element SHALL contain the following child elements:


Version:
$Revision: 1.2 $
Author:
$Author: jim $
See Also:
EPPHostUpdateCmd, EPPHostAddress, Serialized Form

Constructor Summary
EPPHostAddRemove()
          Default constructor for EPPHostAddRemove.
EPPHostAddRemove(java.lang.String aName)
          Constructor for EPPHostAddRemove.
EPPHostAddRemove(java.util.Vector aAddresses)
          Constructor for EPPHostAddRemove that includes the attributes as arguments.
EPPHostAddRemove(java.util.Vector aAddresses, java.util.Vector aStatuses)
          Constructor for EPPHostAddRemove that includes the attributes as arguments.
 
Method Summary
 java.lang.Object clone()
          Clone EPPHostAddRemove.
 void decode(org.w3c.dom.Element aElement)
          Decode the EPPHostAddRemove attributes from the aElement DOM Element tree.
 org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
          Encode a DOM Element tree from the attributes of the EPPHostAddRemove instance.
 boolean equals(java.lang.Object aObject)
          implements a deep EPPHostAddRemove compare.
 java.util.Vector getAddresses()
          Gets the addresses to add or remove.
 java.lang.String getName()
          Gets name.
 java.util.Vector getStatuses()
          Gets statuses.
 void setAddresses(java.util.Vector aAddresses)
          Sets the addresses to add or remove.
 void setName(java.lang.String aName)
          Sets name.
 void setStatuses(java.util.Vector aStatuses)
          Sets statuses.
 java.lang.String toString()
          Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPPHostAddRemove

public EPPHostAddRemove()
Default constructor for EPPHostAddRemove. The addresses attribute defaults to null.


EPPHostAddRemove

public EPPHostAddRemove(java.util.Vector aAddresses)
Constructor for EPPHostAddRemove that includes the attributes as arguments.

Parameters:
aAddresses - Vector of EPPHostAddress instances. Is null or empty for no modifications.

EPPHostAddRemove

public EPPHostAddRemove(java.lang.String aName)
Constructor for EPPHostAddRemove. The addresses attribute defaults to null.

Parameters:
aName - DOCUMENT ME!

EPPHostAddRemove

public EPPHostAddRemove(java.util.Vector aAddresses,
                        java.util.Vector aStatuses)
Constructor for EPPHostAddRemove that includes the attributes as arguments.

Parameters:
aAddresses - Vector of EPPHostAddress instances. Is null or empty for no modifications.
aStatuses - Vector of EPPHostStatus instances. Is null or empty for no modifications.
Method Detail

getAddresses

public java.util.Vector getAddresses()
Gets the addresses to add or remove.

Returns:
Vector EPPHostAddress instances if defined; null otherwise.

setAddresses

public void setAddresses(java.util.Vector aAddresses)
Sets the addresses to add or remove.

Parameters:
aAddresses - Vector of EPPHostAddress instances.

encode

public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
                           throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPHostAddRemove instance.

Specified by:
encode in interface EPPCodecComponent
Parameters:
aDocument - DOM Document that is being built. Used as an Element factory.
Returns:
Root DOM Element representing the EPPHostAddRemove instance.
Throws:
EPPEncodeException - Unable to encode EPPHostAddRemove instance.

decode

public void decode(org.w3c.dom.Element aElement)
            throws EPPDecodeException
Decode the EPPHostAddRemove attributes from the aElement DOM Element tree.

Specified by:
decode in interface EPPCodecComponent
Parameters:
aElement - Root DOM Element to decode EPPHostAddRemove from.
Throws:
EPPDecodeException - Unable to decode aElement.

equals

public boolean equals(java.lang.Object aObject)
implements a deep EPPHostAddRemove compare.

Overrides:
equals in class java.lang.Object
Parameters:
aObject - EPPHostAddRemove instance to compare with
Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone EPPHostAddRemove.

Specified by:
clone in interface EPPCodecComponent
Overrides:
clone in class java.lang.Object
Returns:
clone of EPPHostAddRemove
Throws:
java.lang.CloneNotSupportedException - standard Object.clone exception

toString

public java.lang.String toString()
Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

Overrides:
toString in class java.lang.Object
Returns:
Indented XML String if successful; ERROR otherwise.

getName

public java.lang.String getName()
Gets name.

Returns:
String Name

getStatuses

public java.util.Vector getStatuses()
Gets statuses.

Returns:
Vector of EPPHostStatus if defined; null otherwise.

setName

public void setName(java.lang.String aName)
Sets name.

Parameters:
aName - String

setStatuses

public void setStatuses(java.util.Vector aStatuses)
Sets statuses.

Parameters:
aStatuses - Vector of EPPHostStatus instances


Copyright © VeriSign Inc. All Rights Reserved.