Class EPPRegistryServicesExt
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryServicesExt
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryServicesExt extends java.lang.Object implements EPPCodecComponent
Class that represents the "registry:svcExtension" element that contains a list of extension namespace URIs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EPPRegistryServicesExt.EPPRegistryExtURI
Extension service URI that includes the URI value and a "required" attribute that indicates whether use of the extension service is required.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryServicesExt
.static java.lang.String
ELM_NAME
XML root tag forEPPRegistryServicesExt
.
-
Constructor Summary
Constructors Constructor Description EPPRegistryServicesExt()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtURI(EPPRegistryServicesExt.EPPRegistryExtURI aURI)
Adds an extension namespace URI to the list.java.lang.Object
clone()
CloneEPPRegistryServicesExt
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryServicesExt
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 theEPPRegistryServicesExt
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryServicesExt
compare.java.util.List
getExtURIs()
Gets the extension namespace URIs.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setExtURIs(java.util.List aExtURIs)
Sets the extension namespace URIs.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryServicesExt
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryServicesExt
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryServicesExt
public EPPRegistryServicesExt()
Default constructor. At least one extension namespace URI must be defined prior to callingencode(Document)
.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryServicesExt
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryServicesExt
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryServices
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryServicesExt
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryServicesExt
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryServicesExt
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPRegistryServicesExt
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryServicesExt
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistryServicesExt
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getExtURIs
public java.util.List getExtURIs()
Gets the extension namespace URIs.- Returns:
List
ofEPPRegistryServicesExt.EPPRegistryExtURI
instances containing the extension namespace URIs.
-
setExtURIs
public void setExtURIs(java.util.List aExtURIs)
Sets the extension namespace URIs.- Parameters:
aExtURIs
-List
ofEPPRegistryServicesExt.EPPRegistryExtURI
instances containing the extension namespace URIs.
-
addExtURI
public void addExtURI(EPPRegistryServicesExt.EPPRegistryExtURI aURI)
Adds an extension namespace URI to the list.- Parameters:
aURI
- Extension namespace URI to add to the list.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-