public class EPPRegistryMinMaxPeriod extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryMinMaxPeriod . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryMinMaxPeriod . |
Constructor and Description |
---|
EPPRegistryMinMaxPeriod() |
EPPRegistryMinMaxPeriod(java.lang.Integer aMinNumber,
EPPRegistryPeriodType.Unit aMinUnit,
java.lang.Integer aMaxNumber,
EPPRegistryPeriodType.Unit aMaxUnit,
java.lang.Integer aDefaultNumber,
EPPRegistryPeriodType.Unit aDefaultUnit)
Constructor for
EPPRegistryMinMaxPeriod that takes all of the
attribute values as parameters. |
EPPRegistryMinMaxPeriod(int aMinNumber,
EPPRegistryPeriodType.Unit aMinUnit,
int aMaxNumber,
EPPRegistryPeriodType.Unit aMaxUnit,
int aDefaultNumber,
EPPRegistryPeriodType.Unit aDefaultUnit)
Constructor for
EPPRegistryMinMaxPeriod that takes all of the
attribute values as parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryMinMaxPeriod . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryMinMaxPeriod 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
EPPRegistryMinMaxPeriod instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryMinMaxPeriod compare. |
EPPRegistryDefaultPeriodType |
getDefaultLength()
Gets the default supported period length.
|
EPPRegistryMaxPeriodType |
getMax()
Gets the maximum supported period length.
|
EPPRegistryMinPeriodType |
getMin()
Gets the minimum supported period length.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
void |
setDefaultLength(EPPRegistryDefaultPeriodType aDefault)
Sets the default supported period length.
|
void |
setMax(EPPRegistryMaxPeriodType aMax)
Sets the maximum supported period length.
|
void |
setMin(EPPRegistryMinPeriodType aMin)
Sets the minimum supported period length.
|
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
EPPRegistryMinMaxPeriod
.public static final java.lang.String ELM_NAME
EPPRegistryMinMaxPeriod
.public EPPRegistryMinMaxPeriod()
public EPPRegistryMinMaxPeriod(java.lang.Integer aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, java.lang.Integer aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, java.lang.Integer aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit)
EPPRegistryMinMaxPeriod
that takes all of the
attribute values as 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.public EPPRegistryMinMaxPeriod(int aMinNumber, EPPRegistryPeriodType.Unit aMinUnit, int aMaxNumber, EPPRegistryPeriodType.Unit aMaxUnit, int aDefaultNumber, EPPRegistryPeriodType.Unit aDefaultUnit)
EPPRegistryMinMaxPeriod
that takes all of the
attribute values as 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.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryMinMaxPeriod
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryMinMaxPeriod
instance.EPPEncodeException
- - Unable to encode EPPRegistryMinMaxPeriod
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryMinMaxPeriod
attributes from the aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryMinMaxPeriod
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryMinMaxPeriod
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryMinMaxPeriod
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryMinMaxPeriod
compare.equals
in class java.lang.Object
aObject
- EPPRegistryMinMaxPeriod
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.Object
String
if successful; ERROR
otherwise.public EPPRegistryMinPeriodType getMin()
null
otherwise.public void setMin(EPPRegistryMinPeriodType aMin)
aMin
- Minimum supported period lengthpublic EPPRegistryMaxPeriodType getMax()
null
otherwise.public void setMax(EPPRegistryMaxPeriodType aMax)
aMax
- Maximum supported period lengthpublic EPPRegistryDefaultPeriodType getDefaultLength()
null
otherwise.public void setDefaultLength(EPPRegistryDefaultPeriodType aDefault)
aDefault
- Default supported period lengthpublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.