Package com.verisign.epp.codec.coaext
Class EPPCoaExtAttr
- java.lang.Object
-
- com.verisign.epp.codec.coaext.EPPCoaExtAttr
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPCoaExtAttr extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEConstant for the key tag
-
Constructor Summary
Constructors Constructor Description EPPCoaExtAttr()Default constructorEPPCoaExtAttr(java.lang.String aKey, java.lang.String aValue)Convenience constructor specifying the key and value as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()A deep clone of the EPPCoaExtAttr.voiddecode(org.w3c.dom.Element aElement)Decode the EPPCoaExtAttr element by decoding its <coa:key> and <coa:value> subelements.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode an EPPCoaExtAttr by encoding its EPPCoaExtKey and EPPCoaExtValue attributes.booleanequals(java.lang.Object aComp)A deep comparison of this to another EPPCoaExtAttr.EPPCoaExtKeygetKey()Gets the key of the COA.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPCoaExtValuegetValue()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 Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the key tag- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionA deep clone of the EPPCoaExtAttr.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPCodecComponent - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception- See Also:
Object.clone()
-
equals
public boolean equals(java.lang.Object aComp)
A deep comparison of this to another EPPCoaExtAttr.- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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:
EPPCodecComponent.decode(org.w3c.dom.Element)
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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:
EPPCodecComponent.encode(org.w3c.dom.Document)
-
getKey
public EPPCoaExtKey getKey()
Gets the key of the COA.- Returns:
- Key of the COA
-
setKey
public void setKey(EPPCoaExtKey aKey)
Sets the key of the COA.- Parameters:
aKey- Key of the COA
-
getValue
public EPPCoaExtValue getValue()
Gets the value of the COA.- Returns:
- Value of the COA
-
setValue
public void setValue(EPPCoaExtValue aValue)
Sets the value of the COA.- Parameters:
aValue- Value of the COA
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-