public class EPPRegistryMinMaxLength extends EPPRegistryAbstractMinMax
EPPRegistryAbstractMinMax.ELM_MIN_LENGTH
.EPPRegistryAbstractMinMax.ELM_MAX_LENGTH
.ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
Constructor and Description |
---|
EPPRegistryMinMaxLength()
Creates a new
EPPRegistryMinMaxLength object. |
EPPRegistryMinMaxLength(java.lang.Integer aMin,
java.lang.Integer aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as Integer 's. |
EPPRegistryMinMaxLength(int aMin,
int aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as int 's. |
EPPRegistryMinMaxLength(java.lang.String aRootLocalName,
java.lang.Integer aMin,
java.lang.Integer aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as Integer 's. |
EPPRegistryMinMaxLength(java.lang.String aRootLocalName,
int aMin,
int aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as int 's. |
EPPRegistryMinMaxLength(java.lang.String aRootLocalName,
java.lang.String aMinLocalName,
java.lang.String aMaxLocalName,
java.lang.Integer aMin,
java.lang.Integer aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as Integer 's. |
EPPRegistryMinMaxLength(java.lang.String aRootLocalName,
java.lang.String aMinLocalName,
java.lang.String aMaxLocalName,
int aMin,
int aMax)
Creates a new
EPPRegistryMinMaxLength object that takes both the
minimum and maximum values as int 's. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElmMax()
Gets the maximum element local name.
|
java.lang.String |
getElmMin()
Gets the minimum element XML local name.
|
protected org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
java.lang.String |
getRootName()
Gets the root element local name.
|
void |
setElmMax(java.lang.String aElmMax)
Sets the maximum element XML local name.
|
void |
setElmMin(java.lang.String aElmMin)
Sets the minimum element XML local name.
|
void |
setRootName(java.lang.String aRootName)
Sets the root element XML local name.
|
protected void |
validateState()
Validate the state of the
EPPRegistryMinMaxLength instance. |
public EPPRegistryMinMaxLength()
EPPRegistryMinMaxLength
object.public EPPRegistryMinMaxLength(java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as Integer
's.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryMinMaxLength(int aMin, int aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as int
's.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as Integer
's.aRootLocalName
- The XML root element local name to use.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryMinMaxLength(java.lang.String aRootLocalName, int aMin, int aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as int
's.aRootLocalName
- The XML root element local name to use.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as Integer
's.aRootLocalName
- The XML root element local name to use.aMinLocalName
- The XML local name used for the min
attribute.aMaxLocalName
- The XML local name used for the max
attribute.aMin
- Minimum valueaMax
- Maximum valuepublic EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, int aMin, int aMax)
EPPRegistryMinMaxLength
object that takes both the
minimum and maximum values as int
's.aRootLocalName
- The XML root element local name to use.aMinLocalName
- The XML local name used for the min
attribute.aMaxLocalName
- The XML local name used for the max
attribute.aMin
- Minimum valueaMax
- Maximum valuepublic java.lang.String getRootName()
getRootName
in class EPPRegistryAbstractMinMax
public void setRootName(java.lang.String aRootName)
aRootName
- Root element XML local name.public java.lang.String getElmMin()
getElmMin
in class EPPRegistryAbstractMinMax
public void setElmMin(java.lang.String aElmMin)
aElmMin
- The minimum element XML local name.public java.lang.String getElmMax()
getElmMax
in class EPPRegistryAbstractMinMax
public void setElmMax(java.lang.String aElmMax)
aElmMax
- The maximum element XML local name.protected org.apache.log4j.Logger getLogger()
Logger
to use.getLogger
in class EPPRegistryAbstractMinMax
Logger
instance to use for logging.protected void validateState() throws EPPEncodeException
EPPRegistryMinMaxLength
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.validateState
in class EPPRegistryAbstractMinMax
EPPEncodeException
- Validation error