Class EPPRegistryServices.EPPRegistryURI
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryServices.EPPRegistryURI
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EPPRegistryServices.EPPRegistryObjURI,EPPRegistryServicesExt.EPPRegistryExtURI
- Enclosing class:
- EPPRegistryServices
public abstract static class EPPRegistryServices.EPPRegistryURI extends java.lang.Object implements EPPCodecComponent
Abstract class that represents an object or extension URI.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_REQUIREDXML "required" attributestatic java.lang.StringELM_EXT_URIXML element used for an extension URI.static java.lang.StringELM_EXT_URI_LOCALNAMEXML local name for extension URI.static java.lang.StringELM_OBJ_URIXML element used for an object URI.static java.lang.StringELM_OBJ_URI_LOCALNAMEXML local name for object URI.
-
Constructor Summary
Constructors Constructor Description EPPRegistryURI()Default constructor.EPPRegistryURI(java.lang.String aUri, java.lang.Boolean aRequired)Constructor that takes the two required attributes for the URI and the required attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryURI.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryURIattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryURIinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryURIcompare.java.lang.BooleangetRequired()Gets the "required" attribute value.abstract java.lang.StringgetRootName()Gets the name of the root XML element.java.lang.StringgetUri()Gets the object or extension URI.voidsetRequired(java.lang.Boolean aRequired)Sets the "required" attribute value.voidsetUri(java.lang.String aUri)Sets the object or extension URI.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
-
-
-
Field Detail
-
ELM_OBJ_URI_LOCALNAME
public static final java.lang.String ELM_OBJ_URI_LOCALNAME
XML local name for object URI.- See Also:
- Constant Field Values
-
ELM_OBJ_URI
public static final java.lang.String ELM_OBJ_URI
XML element used for an object URI.- See Also:
- Constant Field Values
-
ELM_EXT_URI_LOCALNAME
public static final java.lang.String ELM_EXT_URI_LOCALNAME
XML local name for extension URI.- See Also:
- Constant Field Values
-
ELM_EXT_URI
public static final java.lang.String ELM_EXT_URI
XML element used for an extension URI.- See Also:
- Constant Field Values
-
ATTR_REQUIRED
public static final java.lang.String ATTR_REQUIRED
XML "required" attribute- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryURI
public EPPRegistryURI()
Default constructor. The "required" attribute must be set and the URI must be set prior to callingencode(Document).
-
EPPRegistryURI
public EPPRegistryURI(java.lang.String aUri, java.lang.Boolean aRequired)Constructor that takes the two required attributes for the URI and the required attribute.- Parameters:
aUri- The object or extension URIaRequired-trueif the use of the object or extension URI is required;falseotherwise.
-
-
Method Detail
-
getRootName
public abstract java.lang.String getRootName()
Gets the name of the root XML element.- Returns:
ELM_OBJ_URIfor an object URI andELM_EXT_URIfor an extension URI.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryURIinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryURIinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryURIinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryURIattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryURIfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryURI.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryURI - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryURIcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryURIinstance 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.
-
getRequired
public java.lang.Boolean getRequired()
Gets the "required" attribute value.- Returns:
trueif use of the URI is required;falseotherwise.nullif the attribute has not been set.
-
setRequired
public void setRequired(java.lang.Boolean aRequired)
Sets the "required" attribute value.- Parameters:
aRequired-trueif use of the URI is required;falseotherwise.
-
getUri
public java.lang.String getUri()
Gets the object or extension URI.- Returns:
- Object or extension URI if defined;
nullotherwise.
-
setUri
public void setUri(java.lang.String aUri)
Sets the object or extension URI.- Parameters:
aUri- Object or extension URI value.
-
-