Package com.verisign.epp.codec.coaext
Class EPPCoaExtUpdate
java.lang.Object
com.verisign.epp.codec.coaext.EPPCoaExtUpdate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPCodecComponent that encodes and decodes a COA Update Tag.
As XML, it is represented by a <coa:update> element, which in turn contains one or more of the following elements:
Title: EPP 1.0 Client Object Attribute - Update
Description: The Update tag is used to represent the changes to an object's Client Object Attributes being performed as part of an epp <update> command. It consists of three collections, each of which are optional.
- A collection of EPPCoaExtAttr objects representing new COAs being added to the object or having their values changed.
- A collection of EPPCoaExtKey objects identifying existing COAs which are being removed from the object
As XML, it is represented by a <coa:update> element, which in turn contains one or more of the following elements:
- A <coa:put> element containing in turn one or more <coa:attr> elements, each describing a new COA being added or updated.
- A <coa:rem> element containing in turn one or more <coa:key> elements, each identifying an existing COA being removed.
Copyright: Copyright (c) 2011
Company: VeriSign
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendPutAttr(EPPCoaExtAttr aAttr) Appends to theListof attributesEPPCoaExtAttrinstances to add or update.voidappendRemAttr(EPPCoaExtKey aKey) Appends to theListof attribute keysEPPCoaExtKeyinstances to remove.clone()A deep clone of the EPPCoaCreate.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAppend all data from this COA update to the given DOM Documentboolean(non-Javadoc)Returns the XML namespace associated with theEPPCodecComponent.Gets the list of Attributes to be added or updated.Gets the list of Attribute keys to be removed.voidsetPutAttrs(List aPutAttrs) Sets theListof attributesEPPCoaExtAttrinstances to create.voidsetRemAttrs(List remAttrs) Sets theListof attribute keyEPPCoaExtKeyinstances to remove.
-
Field Details
-
ELM_NAME
Constant for the key tag- See Also:
-
ELM_PUT
Element tag name for the put- See Also:
-
ELM_REM
Element tag name for the rem- See Also:
-
-
Constructor Details
-
EPPCoaExtUpdate
public EPPCoaExtUpdate()
-
-
Method Details
-
getPutAttrs
Gets the list of Attributes to be added or updated.- Returns:
Listof attributeEPPCoaExtAttrinstances if defined;nullotherwise.
-
setPutAttrs
Sets theListof attributesEPPCoaExtAttrinstances to create.- Parameters:
aPutAttrs-ListofEPPCoaExtAttrinstances
-
getRemAttrs
Gets the list of Attribute keys to be removed.- Returns:
Listof attributeEPPCoaExtKeyinstances if defined;nullotherwise.
-
setRemAttrs
Sets theListof attribute keyEPPCoaExtKeyinstances to remove.- Parameters:
remAttrs-ListofEPPCoaExtAttrinstances
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the report fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
encode
Append all data from this COA update to the given DOM Document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- The DOM Document to append data to- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
clone
A deep clone of the EPPCoaCreate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception- See Also:
-
equals
(non-Javadoc) -
appendPutAttr
Appends to theListof attributesEPPCoaExtAttrinstances to add or update.- Parameters:
aAttr-EPPCoaExtAttrinstance
-
appendRemAttr
Appends to theListof attribute keysEPPCoaExtKeyinstances to remove.- Parameters:
aKey-EPPCoaExtKeyinstance
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-