|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryKeyValue
public class EPPRegistryKeyValue
Defines one key, value pair used in 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.
Field Summary | |
---|---|
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 Summary | |
---|---|
EPPRegistryKeyValue()
Default constructor. |
|
EPPRegistryKeyValue(java.lang.String key,
java.lang.String value)
Constructs a new instance with given key and value. |
Method Summary | |
---|---|
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 |
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 . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_NAME
EPPRegistryKeyValue
root element.
public static final java.lang.String ATTR_KEY
key
attribute.
Constructor Detail |
---|
public EPPRegistryKeyValue()
setKey(String)
and setValue(String)
before calling
encode(Document)
.
public EPPRegistryKeyValue(java.lang.String key, java.lang.String value)
key
- value
- Method Detail |
---|
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 with
true
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |