public abstract class EPPRegistryAbstractMinMax extends java.lang.Object implements EPPCodecComponent
min
and max
sub-elements.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ELM_MAX
Possible XML Element Name of
max attribute. |
protected static java.lang.String |
ELM_MAX_LENGTH
Possible XML Element Name of
max attribute. |
protected static java.lang.String |
ELM_MIN
Possible XML Element Name of
min attribute. |
protected static java.lang.String |
ELM_MIN_LENGTH
Possible XML Element Name of
min attribute. |
Constructor and Description |
---|
EPPRegistryAbstractMinMax()
Default
EPPRegistryAbstractMinMax constructor. |
EPPRegistryAbstractMinMax(java.lang.Integer aMin,
java.lang.Integer aMax)
EPPRegistryAbstractMinMax that takes both the minimum and maximum
values as Integer 's. |
EPPRegistryAbstractMinMax(int aMin,
int aMax)
EPPRegistryAbstractMinMax that takes both the minimum and maximum
values as int 's. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryAbstractMinMax . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryAbstractMinMax 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
EPPRegistryAbstractMinMax instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryAbstractMinMax compare. |
protected abstract java.lang.String |
getElmMax()
Gets the maximum element local name.
|
protected abstract java.lang.String |
getElmMin()
Gets the minimum element local name.
|
protected abstract org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
java.lang.Integer |
getMax()
Gets the maximum value.
|
java.lang.Integer |
getMin()
Gets the minimum value.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
protected abstract java.lang.String |
getRootName()
Gets the root element local name.
|
void |
setMax(java.lang.Integer aMax)
Sets the maximum value.
|
void |
setMin(java.lang.Integer aMin)
Sets the minimum value.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
protected void |
validateState()
Validate the state of the
EPPRegistryAbstractMinMax instance. |
protected static final java.lang.String ELM_MIN_LENGTH
min
attribute.protected static final java.lang.String ELM_MAX_LENGTH
max
attribute.protected static final java.lang.String ELM_MIN
min
attribute.protected static final java.lang.String ELM_MAX
max
attribute.public EPPRegistryAbstractMinMax()
EPPRegistryAbstractMinMax
constructor.public EPPRegistryAbstractMinMax(java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryAbstractMinMax
that takes both the minimum and maximum
values as Integer
's.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryAbstractMinMax(int aMin, int aMax)
EPPRegistryAbstractMinMax
that takes both the minimum and maximum
values as int
's.aMin
- Minimum valueaMax
- Maximum valueprotected abstract java.lang.String getRootName()
protected abstract java.lang.String getElmMin()
protected abstract java.lang.String getElmMax()
protected abstract org.apache.log4j.Logger getLogger()
Logger
to use.Logger
instance to use for logging.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryAbstractMinMax
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryAbstractMinMax
instance.EPPEncodeException
- - Unable to encode EPPRegistryAbstractMinMax
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryAbstractMinMax
attributes from the aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryAbstractMinMax
from.EPPDecodeException
- Unable to decode aElementprotected void validateState() throws EPPEncodeException
EPPRegistryAbstractMinMax
instance. A
valid state means that all of the required attributes have been set. If
validateState returns without an exception, the state is valid. If the
state is not valid, the EPPCodecException
will contain a description of
the error.EPPCodecException
- Validation errorEPPEncodeException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryAbstractMinMax
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryAbstractMinMax
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryAbstractMinMax
compare.equals
in class java.lang.Object
aObject
- EPPRegistryAbstractMinMax
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.Integer getMin()
null
otherwise.public void setMin(java.lang.Integer aMin)
aMin
- Minimum valuepublic java.lang.Integer getMax()
null
otherwise.public void setMax(java.lang.Integer aMax)
aMax
- Maximum valuepublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.public 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.Copyright © VeriSign Inc. All Rights Reserved.