Package com.verisign.epp.codec.registry
Class EPPRegistryPeriodType
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryPeriodType
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPRegistryDefaultPeriodType,EPPRegistryGracePeriod,EPPRegistryMaxPeriodType,EPPRegistryMinPeriodType,EPPRegistryPendingDeletePeriodType,EPPRegistryPendingRestorePeriodType,EPPRegistryRedemptionPeriodType,EPPRegistryTransferHoldPeriodType
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPRegistryPeriodType(int number, String unit) EPPRegistryPeriodType(Integer number, String unit) -
Method Summary
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
-
PERIOD_UNIT_MONTH
Period in Unit Month- See Also:
-
PERIOD_UNIT_YEAR
Period in Unit Year- See Also:
-
PERIOD_UNIT_DAY
Period in Unit Day- See Also:
-
PERIOD_UNIT_HOUR
Period in Unit Hour- See Also:
-
VALID_UNITS
-
rootName
-
ELM_NAME
- See Also:
-
number
-
unit
-
-
Constructor Details
-
EPPRegistryPeriodType
public EPPRegistryPeriodType() -
EPPRegistryPeriodType
-
EPPRegistryPeriodType
-
-
Method Details
-
getRootName
-
encode
Description copied from interface:EPPCodecComponentencode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.
For example, the <command> element ofEPPCommandis created and is used to append the attribute nodes ofEPPCommand.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
Description copied from interface:EPPCodecComponentdecode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
For example, the <command> element ofEPPCommandis passed intodecodeof EPPCommand to be decoded and used to set the instance attributes.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root DOM element associated with instance- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
-
clone
Description copied from interface:EPPCodecComponentclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
-
getNumber
-
setNumber
-
getUnit
-
setUnit
-