Package com.verisign.epp.codec.host
Class EPPHostAddRemove
java.lang.Object
com.verisign.epp.codec.host.EPPHostAddRemove
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents attributes to add, remove or change with a
The <host:add> and <host:rem> elements SHALL contain the following child elements:
The <host:chg> element SHALL contain the following child elements:
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 changeThe <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:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPHostAddRemove.EPPHostAddRemove(String aName) Constructor forEPPHostAddRemove.EPPHostAddRemove(Vector<EPPHostAddress> aAddresses) Constructor forEPPHostAddRemovethat includes the attributes as arguments.EPPHostAddRemove(Vector<EPPHostAddress> aAddresses, Vector<EPPHostStatus> aStatuses) Constructor forEPPHostAddRemovethat includes the attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(EPPHostAddress aAddress) Add an address to the list of addresses.voidaddStatus(EPPHostStatus aStatus) Add a status to the list of statuses.clone()CloneEPPHostAddRemove.voidDecode theEPPHostAddRemoveattributes from theaElementDOM Element tree.Encode a DOM Element tree from the attributes of theEPPHostAddRemoveinstance.booleanimplements a deepEPPHostAddRemovecompare.Gets the addresses to add or remove.getName()Gets name.Returns the XML namespace associated with theEPPCodecComponent.Gets statuses.booleanAre addresses set?booleanAre statuses set?voidsetAddresses(Vector<EPPHostAddress> aAddresses) Sets the addresses to add or remove.voidSets name.voidsetStatuses(Vector<EPPHostStatus> aStatuses) Sets statuses.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPHostAddRemove
public EPPHostAddRemove()Default constructor forEPPHostAddRemove. The addresses attribute defaults tonull. -
EPPHostAddRemove
Constructor forEPPHostAddRemovethat includes the attributes as arguments.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances. Isnullor empty for no modifications.
-
EPPHostAddRemove
Constructor forEPPHostAddRemove. The addresses attribute defaults tonull.- Parameters:
aName- DOCUMENT ME!
-
EPPHostAddRemove
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 Details
-
hasAddresses
public boolean hasAddresses()Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
Add an address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
Gets the addresses to add or remove.- Returns:
- Vector
EPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
Sets the addresses to add or remove.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances.
-
encode
Encode 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
Decode theEPPHostAddRemoveattributes from theaElementDOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPHostAddRemovefrom.- Throws:
EPPDecodeException- Unable to decodeaElement.
-
equals
implements a deepEPPHostAddRemovecompare. -
clone
CloneEPPHostAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPHostAddRemove - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Gets name.- Returns:
- String Name
-
hasStatuses
public boolean hasStatuses()Are statuses set?- Returns:
trueif statuses are set;falseotherwise.
-
addStatus
Add a status to the list of statuses.- Parameters:
aStatus- Status to add
-
getStatuses
Gets statuses.- Returns:
VectorofEPPHostStatusif defined;nullotherwise.
-
setStatuses
Sets statuses.- Parameters:
aStatuses-VectorofEPPHostStatusinstances
-
setName
Sets name.- Parameters:
aName- String
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-