public class EPPHostAddRemove extends java.lang.Object implements EPPCodecComponent
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 changeEPPHostUpdateCmd
,
EPPHostAddress
,
Serialized FormConstructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
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 . |
public EPPHostAddRemove()
EPPHostAddRemove
. The addresses
attribute defaults to null
.public EPPHostAddRemove(java.util.Vector aAddresses)
EPPHostAddRemove
that includes the
attributes as arguments.aAddresses
- Vector of EPPHostAddress
instances. Is
null
or empty for no modifications.public EPPHostAddRemove(java.lang.String aName)
EPPHostAddRemove
. The addresses attribute
defaults to null
.aName
- DOCUMENT ME!public EPPHostAddRemove(java.util.Vector aAddresses, java.util.Vector aStatuses)
EPPHostAddRemove
that includes the
attributes as arguments.aAddresses
- Vector of EPPHostAddress
instances. Is
null
or empty for no modifications.aStatuses
- Vector of EPPHostStatus
instances. Is
null
or empty for no modifications.public java.util.Vector getAddresses()
EPPHostAddress
instances if defined;
null
otherwise.public void setAddresses(java.util.Vector aAddresses)
aAddresses
- Vector of EPPHostAddress
instances.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPHostAddRemove
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPHostAddRemove
instance.EPPEncodeException
- Unable to encode
EPPHostAddRemove
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPHostAddRemove
attributes from the
aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPHostAddRemove
from.EPPDecodeException
- Unable to decode aElement
.public boolean equals(java.lang.Object aObject)
EPPHostAddRemove
compare.equals
in class java.lang.Object
aObject
- EPPHostAddRemove
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPHostAddRemove
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPHostAddRemove
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in
an indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getName()
public java.util.Vector getStatuses()
Vector
of EPPHostStatus
if defined;
null
otherwise.public void setName(java.lang.String aName)
aName
- Stringpublic void setStatuses(java.util.Vector aStatuses)
aStatuses
- Vector
of EPPHostStatus
instancespublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.