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 newEPPRegistryMinMaxLengthobject.EPPRegistryMinMaxLength(int aMin, int aMax)Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asint's.EPPRegistryMinMaxLength(java.lang.Integer aMin, java.lang.Integer aMax)Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asInteger's.EPPRegistryMinMaxLength(java.lang.String aRootLocalName, int aMin, int aMax)Creates a newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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.StringgetElmMax()Gets the maximum element local name.java.lang.StringgetElmMin()Gets the minimum element XML local name.protected org.slf4j.LoggergetLogger()Gets theLoggerto use.java.lang.StringgetRootName()Gets the root element local name.voidsetElmMax(java.lang.String aElmMax)Sets the maximum element XML local name.voidsetElmMin(java.lang.String aElmMin)Sets the minimum element XML local name.voidsetRootName(java.lang.String aRootName)Sets the root element XML local name.protected voidvalidateState()Validate the state of theEPPRegistryMinMaxLengthinstance.
-
-
-
Constructor Detail
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength()
Creates a newEPPRegistryMinMaxLengthobject.
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength(java.lang.Integer aMin, java.lang.Integer aMax)Creates a newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 newEPPRegistryMinMaxLengthobject 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 theminattribute.aMaxLocalName- The XML local name used for themaxattribute.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 newEPPRegistryMinMaxLengthobject 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 theminattribute.aMaxLocalName- The XML local name used for themaxattribute.aMin- Minimum valueaMax- Maximum value
-
-
Method Detail
-
getRootName
public java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootNamein 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:
getElmMinin 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:
getElmMaxin 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 theLoggerto use.- Specified by:
getLoggerin classEPPRegistryAbstractMinMax- Returns:
Loggerinstance to use for logging.
-
validateState
protected void validateState() throws EPPEncodeExceptionValidate the state of theEPPRegistryMinMaxLengthinstance. 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, theEPPCodecExceptionwill contain a description of the error.- Overrides:
validateStatein classEPPRegistryAbstractMinMax- Throws:
EPPEncodeException- Validation error
-
-