Class EPPRegistryMinMaxPeriod
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryMinMaxPeriod
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryMinMaxPeriod extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryMinMaxPeriod.static java.lang.StringELM_NAMEXML root tag forEPPRegistryMinMaxPeriod.
-
Constructor Summary
Constructors Constructor Description EPPRegistryMinMaxPeriod()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.EPPRegistryMinMaxPeriod(java.lang.Integer aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, java.lang.Integer aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, java.lang.Integer aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit)Constructor forEPPRegistryMinMaxPeriodthat takes all of the attribute values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryMinMaxPeriod.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryMinMaxPeriodattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryMinMaxPeriodinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryMinMaxPeriodcompare.EPPRegistryDefaultPeriodTypegetDefaultLength()Gets the default supported period length.EPPRegistryMaxPeriodTypegetMax()Gets the maximum supported period length.EPPRegistryMinPeriodTypegetMin()Gets the minimum supported period length.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetDefaultLength(EPPRegistryDefaultPeriodType aDefault)Sets the default supported period length.voidsetMax(EPPRegistryMaxPeriodType aMax)Sets the maximum supported period length.voidsetMin(EPPRegistryMinPeriodType aMin)Sets the minimum supported period length.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 forEPPRegistryMinMaxPeriod.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryMinMaxPeriod.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryMinMaxPeriod
public EPPRegistryMinMaxPeriod()
-
EPPRegistryMinMaxPeriod
public EPPRegistryMinMaxPeriod(java.lang.Integer aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, java.lang.Integer aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, java.lang.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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryMinMaxPeriod.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryMinMaxPeriod - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryMinMaxPeriodcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryMinMaxPeriodinstance 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.
-
getMin
public EPPRegistryMinPeriodType getMin()
Gets the minimum supported period length.- Returns:
- Minimum supported period length if defined;
nullotherwise.
-
setMin
public void setMin(EPPRegistryMinPeriodType aMin)
Sets the minimum supported period length.- Parameters:
aMin- Minimum supported period length
-
getMax
public EPPRegistryMaxPeriodType getMax()
Gets the maximum supported period length.- Returns:
- Maximum supported period length if defined;
nullotherwise.
-
setMax
public void setMax(EPPRegistryMaxPeriodType aMax)
Sets the maximum supported period length.- Parameters:
aMax- Maximum supported period length
-
getDefaultLength
public EPPRegistryDefaultPeriodType getDefaultLength()
Gets the default supported period length.- Returns:
- Default supported period length if defined;
nullotherwise.
-
setDefaultLength
public void setDefaultLength(EPPRegistryDefaultPeriodType aDefault)
Sets the default supported period length.- Parameters:
aDefault- Default supported period length
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-