public class EPPRegistryExceedMaxExDate extends java.lang.Object implements EPPCodecComponent
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".EPPRegistryDomain,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
EPPRegistryExceedMaxExDate.Policy
Possible values for the
policy attribute. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_COMMAND
XML attribute name for the
command attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryExceedMaxExDate. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryExceedMaxExDate. |
| Constructor and Description |
|---|
EPPRegistryExceedMaxExDate()
Default constructor.
|
EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy,
java.lang.String aCommand)
Construct an instance of
EPPRegistryExceedMaxExDdate with the
required policy and command. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryExceedMaxExDate. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryExceedMaxExDate 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 the
EPPRegistryDomain instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryExceedMaxExDate compare. |
java.lang.String |
getCommand()
Gets the command that the maximum expiration date policy is applied to.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPRegistryExceedMaxExDate.Policy |
getPolicy()
Gets the exceed maximum expiration date policy applied.
|
void |
setCommand(java.lang.String aCommand)
Sets the command that the maximum expiration date policy is applied to.
|
void |
setPolicy(EPPRegistryExceedMaxExDate.Policy aPolicy)
Sets the exceed maximum expiration date policy applied.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryExceedMaxExDate.public static final java.lang.String ELM_NAME
EPPRegistryExceedMaxExDate.public static final java.lang.String ATTR_COMMAND
command attribute.public EPPRegistryExceedMaxExDate()
setPolicy(Policy) and
setCommand(String) before calling the
encode(org.w3c.dom.Document) method.public EPPRegistryExceedMaxExDate(EPPRegistryExceedMaxExDate.Policy aPolicy, java.lang.String aCommand)
EPPRegistryExceedMaxExDdate with the
required policy and command.aPolicy - Exceed maximum expiration date policy appliedaCommand - Command that the policy is applied topublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryDomain instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryDomain instance.EPPEncodeException - - Unable to encode EPPRegistryExceedMaxExDate
instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryExceedMaxExDate attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryExceedMaxExDate
from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryExceedMaxExDate.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryExceedMaxExDatejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryExceedMaxExDate compare.equals in class java.lang.ObjectaObject - EPPRegistryExceedMaxExDate instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public EPPRegistryExceedMaxExDate.Policy getPolicy()
null otherwise.public void setPolicy(EPPRegistryExceedMaxExDate.Policy aPolicy)
aPolicy - The maximum expiration date policy to setpublic java.lang.String getCommand()
null otherwise.public void setCommand(java.lang.String aCommand)
aCommand - That command name, such as "renew" or "transfer".public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.