Package com.verisign.epp.codec.coaext
Class EPPCoaExtKey
- java.lang.Object
-
- com.verisign.epp.codec.coaext.EPPCoaExtKey
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPCoaExtKey extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a COA Key Tag.Title: EPP 1.0 Client Object Attribute - Key
Description: The Key tag represents the name of a Client Object Attribute. It contains simply the Client Object Attribute name as text.
Copyright: Copyright (c) 2011
Company: VeriSign
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_NAME
Constant for the key tag
-
Constructor Summary
Constructors Constructor Description EPPCoaExtKey()
Create an EPPCoaExtKey instanceEPPCoaExtKey(java.lang.String aKey)
Create a EPPCoaExtKey intance with the given key
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPCoaExtKey
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPCoaExtKey componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPCoaExtKey
compare.java.lang.String
getKey()
Returns the key to a key/value pair.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setKey(java.lang.String aKey)
Sets the Key
-
-
-
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.CloneNotSupportedException
CloneEPPCoaExtKey
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPCoaExtKey
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException
- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode the EPPCoaExtKey component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- DOM Element to decode- Throws:
EPPDecodeException
- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPCoaExtKey
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPCoaExtKey
instance to compare with- Returns:
- true if equal false otherwise
-
getKey
public java.lang.String getKey()
Returns the key to a key/value pair.- Returns:
- the COA key
-
setKey
public void setKey(java.lang.String aKey)
Sets the Key- Parameters:
aKey
- Key of COA
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-