Package com.verisign.epp.codec.host
Class EPPHostAddRemove
- java.lang.Object
-
- 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 aEPPHostUpdateCmd. InEPPHostUpdateCmd, an instance ofEPPHostAddRemoveis used to specify the attributes to add, an instance ofEPPHostAddRemoveis used to specify the attributes to remove and instance ofEPPHostAddRemoveis used to specify the attributes to change
The <host:add> and <host:rem> elements SHALL contain the following child elements:
- One or more <host:address> elements that contains the IP addresses to be associated with or removed from the host. IP address restrictions explained in the <create> command mapping apply here as well.
- One or more <host:status> elements that contain status values to be associated with or removed from the object. When specifying a value to be removed, only the attribute value is significant; element text is not required to match a value for removal.
The <host:chg> element SHALL contain the following child elements:
- A <host:name> element that contains a new fully qualified host name by which the host object will be known.
- See Also:
EPPHostUpdateCmd,EPPHostAddress, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPHostAddRemove()Default constructor forEPPHostAddRemove.EPPHostAddRemove(java.lang.String aName)Constructor forEPPHostAddRemove.EPPHostAddRemove(java.util.Vector aAddresses)Constructor forEPPHostAddRemovethat includes the attributes as arguments.EPPHostAddRemove(java.util.Vector aAddresses, java.util.Vector aStatuses)Constructor forEPPHostAddRemovethat includes the attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPHostAddRemove.voiddecode(org.w3c.dom.Element aElement)Decode theEPPHostAddRemoveattributes from theaElementDOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPHostAddRemoveinstance.booleanequals(java.lang.Object aObject)implements a deepEPPHostAddRemovecompare.java.util.VectorgetAddresses()Gets the addresses to add or remove.java.lang.StringgetName()Gets name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.VectorgetStatuses()Gets statuses.voidsetAddresses(java.util.Vector aAddresses)Sets the addresses to add or remove.voidsetName(java.lang.String aName)Sets name.voidsetStatuses(java.util.Vector aStatuses)Sets statuses.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPHostAddRemove
public EPPHostAddRemove()
Default constructor forEPPHostAddRemove. The addresses attribute defaults tonull.
-
EPPHostAddRemove
public EPPHostAddRemove(java.util.Vector aAddresses)
Constructor forEPPHostAddRemovethat includes the attributes as arguments.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances. Isnullor empty for no modifications.
-
EPPHostAddRemove
public EPPHostAddRemove(java.lang.String aName)
Constructor forEPPHostAddRemove. The addresses attribute defaults tonull.- Parameters:
aName- DOCUMENT ME!
-
EPPHostAddRemove
public EPPHostAddRemove(java.util.Vector aAddresses, java.util.Vector aStatuses)Constructor forEPPHostAddRemovethat includes the attributes as arguments.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances. Isnullor empty for no modifications.aStatuses- Vector ofEPPHostStatusinstances. Isnullor empty for no modifications.
-
-
Method Detail
-
getAddresses
public java.util.Vector getAddresses()
Gets the addresses to add or remove.- Returns:
- Vector
EPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
public void setAddresses(java.util.Vector aAddresses)
Sets the addresses to add or remove.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPHostAddRemoveinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPHostAddRemoveinstance. - Throws:
EPPEncodeException- Unable to encodeEPPHostAddRemoveinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPHostAddRemoveattributes from theaElementDOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPHostAddRemovefrom.- Throws:
EPPDecodeException- Unable to decodeaElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPHostAddRemovecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPHostAddRemoveinstance to compare with- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPHostAddRemove - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
public java.lang.String getName()
Gets name.- Returns:
- String Name
-
getStatuses
public java.util.Vector getStatuses()
Gets statuses.- Returns:
VectorofEPPHostStatusif defined;nullotherwise.
-
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-VectorofEPPHostStatusinstances
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-