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.StringELM_NAMEConstant 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.Objectclone()CloneEPPCoaExtKey.voiddecode(org.w3c.dom.Element aElement)Decode the EPPCoaExtKey componentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPCoaExtKeycompare.java.lang.StringgetKey()Returns the key to a key/value pair.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetKey(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.CloneNotSupportedExceptionCloneEPPCoaExtKey.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein 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 EPPDecodeExceptionDecode the EPPCoaExtKey component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- DOM Element to decode- Throws:
EPPDecodeException- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPCoaExtKeycompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPCoaExtKeyinstance 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:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-