Class EPPRegistryMinMaxLength
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
com.verisign.epp.codec.registry.v02.EPPRegistryMinMaxLength
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
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
ConstructorsConstructorDescriptionCreates a newEPPRegistryMinMaxLengthobject.EPPRegistryMinMaxLength(int aMin, int aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asint's.EPPRegistryMinMaxLength(Integer aMin, Integer aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asInteger's.EPPRegistryMinMaxLength(String aRootLocalName, int aMin, int aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asint's.EPPRegistryMinMaxLength(String aRootLocalName, Integer aMin, Integer aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asInteger's.EPPRegistryMinMaxLength(String aRootLocalName, String aMinLocalName, String aMaxLocalName, int aMin, int aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asint's.EPPRegistryMinMaxLength(String aRootLocalName, String aMinLocalName, String aMaxLocalName, Integer aMin, Integer aMax) Creates a newEPPRegistryMinMaxLengthobject that takes both the minimum and maximum values asInteger's. -
Method Summary
Modifier and TypeMethodDescriptionGets the maximum element local name.Gets the minimum element XML local name.protected org.slf4j.LoggerGets theLoggerto use.Gets the root element local name.voidSets the maximum element XML local name.voidSets the minimum element XML local name.voidsetRootName(String aRootName) Sets the root element XML local name.protected voidValidate the state of theEPPRegistryMinMaxLengthinstance.
-
Constructor Details
-
EPPRegistryMinMaxLength
public EPPRegistryMinMaxLength()Creates a newEPPRegistryMinMaxLengthobject. -
EPPRegistryMinMaxLength
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
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
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(String aRootLocalName, String aMinLocalName, String aMaxLocalName, Integer aMin, 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(String aRootLocalName, String aMinLocalName, 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 Details
-
getRootName
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
setRootName
Sets the root element XML local name.- Parameters:
aRootName- Root element XML local name.
-
getElmMin
Gets the minimum element XML local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element XML local name.
-
setElmMin
Sets the minimum element XML local name.- Parameters:
aElmMin- The minimum element XML local name.
-
getElmMax
Gets the maximum element local name.- Specified by:
getElmMaxin classEPPRegistryAbstractMinMax- Returns:
- Maximum element local name.
-
setElmMax
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
Validate 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
-