Class EPPRegistryExceedMaxExDate
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryExceedMaxExDate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryExceedMaxExDdate defines the action taken by the server
when executing commands that will result in an expiration date that exceeds
the maximum expiration date. The required "command" attribute is used to
define the command with a renewal feature, such as "renew" or "transfer". New
commands can be defined that include a renewal feature, such as "sync".- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for thepolicyattribute. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy, String aCommand) Construct an instance ofEPPRegistryExceedMaxExDdatewith the required policy and command. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryExceedMaxExDate.voidDecode theEPPRegistryExceedMaxExDateattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryDomaininstance.booleanimplements a deepEPPRegistryExceedMaxExDatecompare.Gets the command that the maximum expiration date policy is applied to.Returns the XML namespace associated with theEPPCodecComponent.Gets the exceed maximum expiration date policy applied.voidsetCommand(String aCommand) Sets the command that the maximum expiration date policy is applied to.voidSets the exceed maximum expiration date policy applied.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryExceedMaxExDate.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryExceedMaxExDate.- See Also:
-
ATTR_COMMAND
XML attribute name for thecommandattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryExceedMaxExDate
public EPPRegistryExceedMaxExDate()Default constructor. Must callsetPolicy(Policy)andsetCommand(String)before calling theencode(org.w3c.dom.Document)method. -
EPPRegistryExceedMaxExDate
Construct an instance ofEPPRegistryExceedMaxExDdatewith the required policy and command.- Parameters:
aPolicy- Exceed maximum expiration date policy appliedaCommand- Command that the policy is applied to
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDomaininstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDomaininstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryExceedMaxExDateinstance.
-
decode
Decode theEPPRegistryExceedMaxExDateattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryExceedMaxExDatefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryExceedMaxExDate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryExceedMaxExDate - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryExceedMaxExDatecompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getPolicy
Gets the exceed maximum expiration date policy applied.- Returns:
- The maximum expiration date policy applied if defined;
nullotherwise.
-
setPolicy
Sets the exceed maximum expiration date policy applied.- Parameters:
aPolicy- The maximum expiration date policy to set
-
getCommand
Gets the command that the maximum expiration date policy is applied to.- Returns:
- The command name if defined;
nullotherwise.
-
setCommand
Sets the command that the maximum expiration date policy is applied to.- Parameters:
aCommand- That command name, such as "renew" or "transfer".
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-