public class EPPRegistryKeyValue extends java.lang.Object implements EPPCodecComponent
EPPRegistryCustomData
. The
<registry:value> element contains a required "key" attribute for the
value in the element. Use getKey()
and getKey()
to get and
set the key. Use getValue()
and setValue(String)
to get and
set the value.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_KEY
XML attribute name for the
key attribute. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPRegistryKeyValue root element. |
Constructor and Description |
---|
EPPRegistryKeyValue()
Default constructor.
|
EPPRegistryKeyValue(java.lang.String key,
java.lang.String value)
Constructs a new instance with given key and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryKeyValue . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryKeyValue attributes from the aElement DOM
Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPRegistryKeyValue instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryKeyValue compare. |
java.lang.String |
getKey()
Get the key.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getRootName()
Get the root name.
|
java.lang.String |
getValue()
Get the value
|
void |
setKey(java.lang.String key)
Set the key.
|
void |
setValue(java.lang.String value)
Set the value
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_NAME
EPPRegistryKeyValue
root element.public static final java.lang.String ATTR_KEY
key
attribute.public EPPRegistryKeyValue()
setKey(String)
and setValue(String)
before calling
encode(Document)
.public EPPRegistryKeyValue(java.lang.String key, java.lang.String value)
key
- value
- public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryKeyValue
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryKeyValue
instance.EPPEncodeException
- - Unable to encode EPPRegistryKeyValue
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryKeyValue
attributes from the aElement DOM
Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryKeyValue
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryKeyValue
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryKeyValue
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryKeyValue
compare.equals
in class java.lang.Object
aObject
- EPPRegistryKeyValue
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- public java.lang.String getRootName()
ELM_NAME
public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.Copyright © VeriSign Inc. All Rights Reserved.