Package com.verisign.epp.codec.registry
Class EPPRegistryKeyValue
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryKeyValue
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryKeyValue(String key, String value) Constructs a new instance with given key and value. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryKeyValue.voidDecode theEPPRegistryKeyValueattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryKeyValueinstance.booleanimplements a deepEPPRegistryKeyValuecompare.getKey()Get the key.Returns the XML namespace associated with theEPPCodecComponent.Get the root name.getValue()Get the valuevoidSet the key.voidSet the valuetoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryKeyValueroot element.- See Also:
-
ATTR_KEY
XML attribute name for thekeyattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryKeyValue
public EPPRegistryKeyValue()Default constructor. All attributes are set to default values. Must callsetKey(String)andsetValue(String)before callingencode(Document). -
EPPRegistryKeyValue
Constructs a new instance with given key and value.- Parameters:
key- Attribute keyvalue- Attribute value
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryKeyValueinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryKeyValueinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryKeyValueinstance.
-
decode
Decode theEPPRegistryKeyValueattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryKeyValuefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryKeyValue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryKeyValue - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryKeyValuecompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getKey
Get the key.- Returns:
- key
-
setKey
Set the key.- Parameters:
key- Key to use
-
getValue
Get the value- Returns:
- value
-
setValue
Set the value- Parameters:
value- Value to use
-
getRootName
Get the root name.- Returns:
- root name of the xml element. Always return
ELM_NAME
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-