Class EPPRegistryMinMaxLength
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
-
- com.verisign.epp.codec.registry.v02.EPPRegistryMinMaxLength
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryMinMaxLength extends EPPRegistryAbstractMinMax
Represents a general element that supports min and max length sub-elements. The actual XML elements are configurable include:- root element name - The root element name must be defined.
- min sub-element name - The min sub-element name can be overridden with
the default set to
EPPRegistryAbstractMinMax.ELM_MIN_LENGTH
. - max sub-element name - The max sub-element name can be overridden with
the default set to
EPPRegistryAbstractMinMax.ELM_MAX_LENGTH
.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryMinMaxLength()
Creates a newEPPRegistryMinMaxLength
object.EPPRegistryMinMaxLength(int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.EPPRegistryMinMaxLength(java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.EPPRegistryMinMaxLength(java.lang.String aRootLocalName, int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElmMax()
Gets the maximum element local name.java.lang.String
getElmMin()
Gets the minimum element XML local name.protected org.slf4j.Logger
getLogger()
Gets theLogger
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 theEPPRegistryMinMaxLength
instance.
-
-
-
Constructor Detail
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength()
Creates a newEPPRegistryMinMaxLength
object.
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.- Parameters:
aMin
- Minimum valueaMax
- Maximum value
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.- Parameters:
aMin
- Minimum valueaMax
- Maximum value
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.- Parameters:
aRootLocalName
- The XML root element local name to use.aMin
- Minimum valueaMax
- Maximum value
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.String aRootLocalName, int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.- Parameters:
aRootLocalName
- The XML root element local name to use.aMin
- Minimum valueaMax
- Maximum value
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asInteger
's.- Parameters:
aRootLocalName
- The XML root element local name to use.aMinLocalName
- The XML local name used for themin
attribute.aMaxLocalName
- The XML local name used for themax
attribute.aMin
- Minimum valueaMax
- Maximum value
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, int aMin, int aMax)
Creates a newEPPRegistryMinMaxLength
object that takes both the minimum and maximum values asint
's.- Parameters:
aRootLocalName
- The XML root element local name to use.aMinLocalName
- The XML local name used for themin
attribute.aMaxLocalName
- The XML local name used for themax
attribute.aMin
- Minimum valueaMax
- Maximum value
-
-
Method Detail
-
getRootName
public java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootName
in classEPPRegistryAbstractMinMax
- Returns:
- Root element local name.
-
setRootName
public void setRootName(java.lang.String aRootName)
Sets the root element XML local name.- Parameters:
aRootName
- Root element XML local name.
-
getElmMin
public java.lang.String getElmMin()
Gets the minimum element XML local name.- Specified by:
getElmMin
in classEPPRegistryAbstractMinMax
- Returns:
- Minimum element XML local name.
-
setElmMin
public void setElmMin(java.lang.String aElmMin)
Sets the minimum element XML local name.- Parameters:
aElmMin
- The minimum element XML local name.
-
getElmMax
public java.lang.String getElmMax()
Gets the maximum element local name.- Specified by:
getElmMax
in classEPPRegistryAbstractMinMax
- Returns:
- Maximum element local name.
-
setElmMax
public void setElmMax(java.lang.String aElmMax)
Sets the maximum element XML local name.- Parameters:
aElmMax
- The maximum element XML local name.
-
getLogger
protected org.slf4j.Logger getLogger()
Gets theLogger
to use.- Specified by:
getLogger
in classEPPRegistryAbstractMinMax
- Returns:
Logger
instance to use for logging.
-
validateState
protected void validateState() throws EPPEncodeException
Validate the state of theEPPRegistryMinMaxLength
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, theEPPCodecException
will contain a description of the error.- Overrides:
validateState
in classEPPRegistryAbstractMinMax
- Throws:
EPPEncodeException
- Validation error
-
-