Package com.verisign.epp.codec.registry
Class EPPRegistryCustomData
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryCustomData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryCustomData extends java.lang.Object implements EPPCodecComponent
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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEXML Element Name ofEPPRegistryCustomDataroot element.
-
Constructor Summary
Constructors Constructor Description EPPRegistryCustomData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyValue(EPPRegistryKeyValue keyValue)Add one key/value pair to existing key/value pairs.java.lang.Objectclone()CloneEPPRegistryCustomData.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryCustomDataattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryCustomDatainstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryCustomDatacompare.java.util.ListgetKeyValues()Get the custom key/value pairs.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetKeyValues(java.util.List keyValues)Set the custom key/value pairs.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryCustomDataroot element.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryCustomData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryCustomData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryCustomDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryCustomDatainstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getKeyValues
public java.util.List getKeyValues()
Get the custom key/value pairs.- Returns:
Listof key/value pair, instance ofEPPRegistryKeyValue
-
setKeyValues
public void setKeyValues(java.util.List keyValues)
Set the custom key/value pairs.- Parameters:
keyValues-Listof key/value pair, instance ofEPPRegistryKeyValue
-
addKeyValue
public void addKeyValue(EPPRegistryKeyValue keyValue)
Add one key/value pair to existing key/value pairs.- Parameters:
keyValue- key/value pair
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-