Package com.verisign.epp.codec.registry
Class EPPRegistryCustomData
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryCustomData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents custom data using key/value pairs. The
<registry:customeData> element contains the following child elements:
- <registry:value> - one or more elements with a required "key"
attribute, which defines the key for the value. Use
getKeyValues()andsetKeyValues(List)to get and set the elements. UseaddKeyValue(EPPRegistryKeyValue)to add one key/value pair to existingList.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyValue(EPPRegistryKeyValue keyValue) Add one key/value pair to existing key/value pairs.clone()CloneEPPRegistryCustomData.voidDecode theEPPRegistryCustomDataattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryCustomDatainstance.booleanimplements a deepEPPRegistryCustomDatacompare.Get the custom key/value pairs.Returns the XML namespace associated with theEPPCodecComponent.voidsetKeyValues(List keyValues) Set the custom key/value pairs.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryCustomDataroot element.- See Also:
-
-
Constructor Details
-
EPPRegistryCustomData
public EPPRegistryCustomData()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryCustomDatainstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryCustomDatainstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryCustomDatainstance.
-
decode
Decode theEPPRegistryCustomDataattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryCustomDatafrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryCustomData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryCustomData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryCustomDatacompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getKeyValues
Get the custom key/value pairs.- Returns:
Listof key/value pair, instance ofEPPRegistryKeyValue
-
setKeyValues
Set the custom key/value pairs.- Parameters:
keyValues-Listof key/value pair, instance ofEPPRegistryKeyValue
-
addKeyValue
Add one key/value pair to existing key/value pairs.- Parameters:
keyValue- key/value pair
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-