Package com.verisign.epp.codec.coaext
Class EPPCoaExtAttr
java.lang.Object
com.verisign.epp.codec.coaext.EPPCoaExtAttr
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPCodecComponent that encodes and decodes a COA Attr Tag.
Title: EPP 1.0 Client Object Attribute - Attr
Description: Each EPPCoaExtAttr object represents a single Client Object Attribute. As
such it contains a single key-value pair, represented by one EPPCoaExtKey and
one EPPCoaExtValue element.
As XML, is is represented by a <coa:attr> element
containing a single <coa:key> element and a single <coa:value> element.
Copyright: Copyright (c) 2011
Company: VeriSign
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEPPCoaExtAttr(String aKey, String aValue) Convenience constructor specifying the key and value as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()A deep clone of the EPPCoaExtAttr.voidDecode the EPPCoaExtAttr element by decoding its <coa:key> and <coa:value> subelements.Encode an EPPCoaExtAttr by encoding its EPPCoaExtKey and EPPCoaExtValue attributes.booleanA deep comparison of this to another EPPCoaExtAttr.getKey()Gets the key of the COA.Returns the XML namespace associated with theEPPCodecComponent.getValue()Gets the value of the COA.voidsetKey(EPPCoaExtKey aKey) Sets the key of the COA.voidsetValue(EPPCoaExtValue aValue) Sets the value of the COA.
-
Field Details
-
ELM_NAME
Constant for the key tag- See Also:
-
-
Constructor Details
-
EPPCoaExtAttr
public EPPCoaExtAttr()Default constructor -
EPPCoaExtAttr
Convenience constructor specifying the key and value as arguments.- Parameters:
aKey- Key of COAaValue- Value of COA
-
-
Method Details
-
clone
A deep clone of the EPPCoaExtAttr.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception- See Also:
-
equals
A deep comparison of this to another EPPCoaExtAttr. -
decode
Decode the EPPCoaExtAttr element by decoding its <coa:key> and <coa:value> subelements.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root DOM element associated with instance- Throws:
EPPDecodeException- Error decoding the DOM element tree.- See Also:
-
encode
Encode an EPPCoaExtAttr by encoding its EPPCoaExtKey and EPPCoaExtValue attributes.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.- See Also:
-
getKey
Gets the key of the COA.- Returns:
- Key of the COA
-
setKey
Sets the key of the COA.- Parameters:
aKey- Key of the COA
-
getValue
Gets the value of the COA.- Returns:
- Value of the COA
-
setValue
Sets the value of the COA.- Parameters:
aValue- Value of the COA
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-