Class EPPRegistryAbstractMinMax
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPRegistryContactCity,EPPRegistryContactName,EPPRegistryContactOrg,EPPRegistryContactPostalCode,EPPRegistryContactStateProvince,EPPRegistryContactStreet,EPPRegistryDomainContact,EPPRegistryDomainHostLimit,EPPRegistryDomainNSLimit,EPPRegistryDS,EPPRegistryExternalHost,EPPRegistryInternalHost,EPPRegistryKey,EPPRegistryMinMaxLength
Abstract base class for defining a complex element that includes
min
and max sub-elements.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringPossible XML Element Name ofmaxattribute.protected static final StringPossible XML Element Name ofmaxattribute.protected static final StringPossible XML Element Name ofminattribute.protected static final StringPossible XML Element Name ofminattribute. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEPPRegistryAbstractMinMaxconstructor.EPPRegistryAbstractMinMax(int aMin, int aMax) EPPRegistryAbstractMinMaxthat takes both the minimum and maximum values asint's.EPPRegistryAbstractMinMax(Integer aMin, Integer aMax) EPPRegistryAbstractMinMaxthat takes both the minimum and maximum values asInteger's. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryAbstractMinMax.voidDecode theEPPRegistryAbstractMinMaxattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryAbstractMinMaxinstance.booleanimplements a deepEPPRegistryAbstractMinMaxcompare.protected abstract StringGets the maximum element local name.protected abstract StringGets the minimum element local name.protected abstract org.slf4j.LoggerGets theLoggerto use.getMax()Gets the maximum value.getMin()Gets the minimum value.Returns the XML namespace associated with theEPPCodecComponent.protected abstract StringGets the root element local name.voidSets the maximum value.voidSets the minimum value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.protected voidValidate the state of theEPPRegistryAbstractMinMaxinstance.
-
Field Details
-
ELM_MIN_LENGTH
Possible XML Element Name ofminattribute.- See Also:
-
ELM_MAX_LENGTH
Possible XML Element Name ofmaxattribute.- See Also:
-
ELM_MIN
Possible XML Element Name ofminattribute.- See Also:
-
ELM_MAX
Possible XML Element Name ofmaxattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryAbstractMinMax
public EPPRegistryAbstractMinMax()DefaultEPPRegistryAbstractMinMaxconstructor. -
EPPRegistryAbstractMinMax
EPPRegistryAbstractMinMaxthat takes both the minimum and maximum values asInteger's.- Parameters:
aMin- Minimum valueaMax- Maximum value
-
EPPRegistryAbstractMinMax
public EPPRegistryAbstractMinMax(int aMin, int aMax) EPPRegistryAbstractMinMaxthat takes both the minimum and maximum values asint's.- Parameters:
aMin- Minimum valueaMax- Maximum value
-
-
Method Details
-
getRootName
Gets the root element local name.- Returns:
- Root element local name.
-
getElmMin
Gets the minimum element local name.- Returns:
- Minimum element local name.
-
getElmMax
Gets the maximum element local name.- Returns:
- Maximum element local name.
-
getLogger
protected abstract org.slf4j.Logger getLogger()Gets theLoggerto use.- Returns:
Loggerinstance to use for logging.
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryAbstractMinMaxinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryAbstractMinMaxinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryAbstractMinMaxinstance.
-
decode
Decode theEPPRegistryAbstractMinMaxattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryAbstractMinMaxfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
validateState
Validate the state of theEPPRegistryAbstractMinMaxinstance. 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.- Throws:
EPPEncodeException- Validation error
-
clone
CloneEPPRegistryAbstractMinMax.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryAbstractMinMax - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryAbstractMinMaxcompare. -
getMin
Gets the minimum value.- Returns:
- Minimum value if defined;
nullotherwise.
-
setMin
Sets the minimum value.- Parameters:
aMin- Minimum value
-
getMax
Gets the maximum value.- Returns:
- Maximum value if defined;
nullotherwise.
-
setMax
Sets the maximum value.- Parameters:
aMax- Maximum value
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-