Class EPPRegistryExceedMaxExDate
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryExceedMaxExDate
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryExceedMaxExDate extends java.lang.Object implements EPPCodecComponent
EPPRegistryExceedMaxExDdatedefines 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:
EPPRegistryDomain, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRegistryExceedMaxExDate.PolicyPossible values for thepolicyattribute.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_COMMANDXML attribute name for thecommandattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryExceedMaxExDate.static java.lang.StringELM_NAMEXML root tag forEPPRegistryExceedMaxExDate.
-
Constructor Summary
Constructors Constructor Description EPPRegistryExceedMaxExDate()Default constructor.EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy, java.lang.String aCommand)Construct an instance ofEPPRegistryExceedMaxExDdatewith the required policy and command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryExceedMaxExDate.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryExceedMaxExDateattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryDomaininstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryExceedMaxExDatecompare.java.lang.StringgetCommand()Gets the command that the maximum expiration date policy is applied to.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryExceedMaxExDate.PolicygetPolicy()Gets the exceed maximum expiration date policy applied.voidsetCommand(java.lang.String aCommand)Sets the command that the maximum expiration date policy is applied to.voidsetPolicy(EPPRegistryExceedMaxExDate.Policy aPolicy)Sets the exceed maximum expiration date policy applied.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryExceedMaxExDate.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryExceedMaxExDate.- See Also:
- Constant Field Values
-
ATTR_COMMAND
public static final java.lang.String ATTR_COMMAND
XML attribute name for thecommandattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryExceedMaxExDate
public EPPRegistryExceedMaxExDate()
Default constructor. Must callsetPolicy(Policy)andsetCommand(String)before calling theencode(org.w3c.dom.Document)method.
-
EPPRegistryExceedMaxExDate
public EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy, java.lang.String aCommand)
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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryExceedMaxExDate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryExceedMaxExDate - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryExceedMaxExDatecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryExceedMaxExDateinstance 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.
-
getPolicy
public EPPRegistryExceedMaxExDate.Policy getPolicy()
Gets the exceed maximum expiration date policy applied.- Returns:
- The maximum expiration date policy applied if defined;
nullotherwise.
-
setPolicy
public void setPolicy(EPPRegistryExceedMaxExDate.Policy aPolicy)
Sets the exceed maximum expiration date policy applied.- Parameters:
aPolicy- The maximum expiration date policy to set
-
getCommand
public java.lang.String getCommand()
Gets the command that the maximum expiration date policy is applied to.- Returns:
- The command name if defined;
nullotherwise.
-
setCommand
public void setCommand(java.lang.String aCommand)
Sets the command that the maximum expiration date policy is applied to.- Parameters:
aCommand- That command name, such as "renew" or "transfer".
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-