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 - Attribute keyvalue - Attribute valuepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryKeyValue instance.encode in interface EPPCodecComponentaDocument - 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 EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryKeyValue from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryKeyValue.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryKeyValuejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryKeyValue compare.equals in class java.lang.ObjectaObject - 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.ObjectString if successful; ERROR
otherwise.public java.lang.String getKey()
public void setKey(java.lang.String key)
key - Key to usepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - Value to usepublic java.lang.String getRootName()
ELM_NAMEpublic java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.