public class EPPCoaExtAttr extends java.lang.Object implements EPPCodecComponent
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_NAME
Constant for the key tag
|
Constructor and Description |
---|
EPPCoaExtAttr()
Default constructor
|
EPPCoaExtAttr(java.lang.String aKey,
java.lang.String aValue)
Convenience constructor specifying the key and value as arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
A deep clone of the EPPCoaExtAttr.
|
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPCoaExtAttr element by decoding its <coa:key> and <coa:value>
subelements.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode an EPPCoaExtAttr by encoding its EPPCoaExtKey and EPPCoaExtValue
attributes.
|
boolean |
equals(java.lang.Object aComp)
A deep comparison of this to another EPPCoaExtAttr.
|
EPPCoaExtKey |
getKey()
Gets the key of the COA.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
EPPCoaExtValue |
getValue()
Gets the value of the COA.
|
void |
setKey(EPPCoaExtKey aKey)
Sets the key of the COA.
|
void |
setValue(EPPCoaExtValue aValue)
Sets the value of the COA.
|
public static final java.lang.String ELM_NAME
public EPPCoaExtAttr()
public EPPCoaExtAttr(java.lang.String aKey, java.lang.String aValue)
aKey
- Key of COAaValue
- Value of COApublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPCodecComponent
java.lang.CloneNotSupportedException
- standard Object.clone exceptionObject.clone()
public boolean equals(java.lang.Object aComp)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- root DOM element associated with instanceEPPDecodeException
- Error decoding the DOM element tree.EPPCodecComponent.decode(org.w3c.dom.Element)
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM document used as a factory of DOM objects.EPPEncodeException
- Error encoding the DOM element tree.EPPCodecComponent.encode(org.w3c.dom.Document)
public EPPCoaExtKey getKey()
public void setKey(EPPCoaExtKey aKey)
aKey
- Key of the COApublic EPPCoaExtValue getValue()
public void setValue(EPPCoaExtValue aValue)
aValue
- Value of the COApublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.