Class EPPRegistryMinMaxPeriod
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryMinMaxPeriod
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The default, minimum, and maximum period length for the command type. The
<registry:length> element contains the following child elements, where
all of the child elements require the "unit" attribute with possible values
of "y" for year and "m" for month
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPRegistryMinMaxPeriod(int aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, int aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, int aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit) Constructor forEPPRegistryMinMaxPeriodthat takes all of the attribute values as parameters.EPPRegistryMinMaxPeriod(Integer aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, Integer aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, Integer aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit) Constructor forEPPRegistryMinMaxPeriodthat takes all of the attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryMinMaxPeriod.voidDecode theEPPRegistryMinMaxPeriodattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryMinMaxPeriodinstance.booleanimplements a deepEPPRegistryMinMaxPeriodcompare.Gets the default supported period length.getMax()Gets the maximum supported period length.getMin()Gets the minimum supported period length.Returns the XML namespace associated with theEPPCodecComponent.voidsetDefaultLength(EPPRegistryDefaultPeriodType aDefault) Sets the default supported period length.voidSets the maximum supported period length.voidSets the minimum supported period length.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryMinMaxPeriod.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryMinMaxPeriod.- See Also:
-
-
Constructor Details
-
EPPRegistryMinMaxPeriod
public EPPRegistryMinMaxPeriod() -
EPPRegistryMinMaxPeriod
public EPPRegistryMinMaxPeriod(Integer aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, Integer aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, Integer aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit) Constructor forEPPRegistryMinMaxPeriodthat takes all of the attribute values as parameters.- Parameters:
aMinNumber- The minimum supported period length number.aMinUnit- The minimum supported period length unit.aMaxNumber- The maximum supported period length number.aMaxUnit- The maximum supported period length unit.aDefaultNumber- The default period length number if not defined by the client.aDefaultUnit- The default period length unit if not defined by the client.
-
EPPRegistryMinMaxPeriod
public EPPRegistryMinMaxPeriod(int aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, int aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, int aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit) Constructor forEPPRegistryMinMaxPeriodthat takes all of the attribute values as parameters.- Parameters:
aMinNumber- The minimum supported period length number.aMinUnit- The minimum supported period length unit.aMaxNumber- The maximum supported period length number.aMaxUnit- The maximum supported period length unit.aDefaultNumber- The default period length number if not defined by the client.aDefaultUnit- The default period length unit if not defined by the client.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryMinMaxPeriodinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryMinMaxPeriodinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryMinMaxPeriodinstance.
-
decode
Decode theEPPRegistryMinMaxPeriodattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryMinMaxPeriodfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryMinMaxPeriod.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryMinMaxPeriod - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryMinMaxPeriodcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getMin
Gets the minimum supported period length.- Returns:
- Minimum supported period length if defined;
nullotherwise.
-
setMin
Sets the minimum supported period length.- Parameters:
aMin- Minimum supported period length
-
getMax
Gets the maximum supported period length.- Returns:
- Maximum supported period length if defined;
nullotherwise.
-
setMax
Sets the maximum supported period length.- Parameters:
aMax- Maximum supported period length
-
getDefaultLength
Gets the default supported period length.- Returns:
- Default supported period length if defined;
nullotherwise.
-
setDefaultLength
Sets the default supported period length.- Parameters:
aDefault- Default supported period length
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-