Class EPPRegistryServices.EPPRegistryURI
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryServices.EPPRegistryURI
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPRegistryServices.EPPRegistryObjURI,EPPRegistryServicesExt.EPPRegistryExtURI
- Enclosing class:
EPPRegistryServices
public abstract static class EPPRegistryServices.EPPRegistryURI
extends Object
implements EPPCodecComponent
Abstract class that represents an object or extension URI.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML "required" attributestatic final StringXML element used for an extension URI.static final StringXML local name for extension URI.static final StringXML element used for an object URI.static final StringXML local name for object URI. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryURI(String aUri, Boolean aRequired) Constructor that takes the two required attributes for the URI and the required attribute. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryURI.voidDecode theEPPRegistryURIattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryURIinstance.booleanimplements a deepEPPRegistryURIcompare.Gets the "required" attribute value.abstract StringGets the name of the root XML element.getUri()Gets the object or extension URI.voidsetRequired(Boolean aRequired) Sets the "required" attribute value.voidSets the object or extension URI.toString()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, waitMethods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
Field Details
-
ELM_OBJ_URI_LOCALNAME
XML local name for object URI.- See Also:
-
ELM_OBJ_URI
XML element used for an object URI.- See Also:
-
ELM_EXT_URI_LOCALNAME
XML local name for extension URI.- See Also:
-
ELM_EXT_URI
XML element used for an extension URI.- See Also:
-
ATTR_REQUIRED
XML "required" attribute- See Also:
-
-
Constructor Details
-
EPPRegistryURI
public EPPRegistryURI()Default constructor. The "required" attribute must be set and the URI must be set prior to callingencode(Document). -
EPPRegistryURI
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 Details
-
getRootName
Gets the name of the root XML element.- Returns:
ELM_OBJ_URIfor an object URI andELM_EXT_URIfor an extension URI.
-
encode
Encode 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
Decode 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
CloneEPPRegistryURI.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryURI - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryURIcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getRequired
Gets the "required" attribute value.- Returns:
trueif use of the URI is required;falseotherwise.nullif the attribute has not been set.
-
setRequired
Sets the "required" attribute value.- Parameters:
aRequired-trueif use of the URI is required;falseotherwise.
-
getUri
Gets the object or extension URI.- Returns:
- Object or extension URI if defined;
nullotherwise.
-
setUri
Sets the object or extension URI.- Parameters:
aUri- Object or extension URI value.
-