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

public class EPPRegistryMinMaxLength extends EPPRegistryAbstractMinMax
Represents a general element that supports min and max length sub-elements. The actual XML elements are configurable include:
See Also:
  • Constructor Details

    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength()
      Creates a new EPPRegistryMinMaxLength object.
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(Integer aMin, Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
      Parameters:
      aMin - Minimum value
      aMax - Maximum value
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      Parameters:
      aMin - Minimum value
      aMax - Maximum value
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(String aRootLocalName, Integer aMin, Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
      Parameters:
      aRootLocalName - The XML root element local name to use.
      aMin - Minimum value
      aMax - Maximum value
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(String aRootLocalName, int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      Parameters:
      aRootLocalName - The XML root element local name to use.
      aMin - Minimum value
      aMax - Maximum value
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(String aRootLocalName, String aMinLocalName, String aMaxLocalName, Integer aMin, Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
      Parameters:
      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 value
      aMax - Maximum value
    • EPPRegistryMinMaxLength

      public EPPRegistryMinMaxLength(String aRootLocalName, String aMinLocalName, String aMaxLocalName, int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      Parameters:
      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 value
      aMax - Maximum value
  • Method Details

    • getRootName

      public String getRootName()
      Gets the root element local name.
      Specified by:
      getRootName in class EPPRegistryAbstractMinMax
      Returns:
      Root element local name.
    • setRootName

      public void setRootName(String aRootName)
      Sets the root element XML local name.
      Parameters:
      aRootName - Root element XML local name.
    • getElmMin

      public String getElmMin()
      Gets the minimum element XML local name.
      Specified by:
      getElmMin in class EPPRegistryAbstractMinMax
      Returns:
      Minimum element XML local name.
    • setElmMin

      public void setElmMin(String aElmMin)
      Sets the minimum element XML local name.
      Parameters:
      aElmMin - The minimum element XML local name.
    • getElmMax

      public String getElmMax()
      Gets the maximum element local name.
      Specified by:
      getElmMax in class EPPRegistryAbstractMinMax
      Returns:
      Maximum element local name.
    • setElmMax

      public void setElmMax(String aElmMax)
      Sets the maximum element XML local name.
      Parameters:
      aElmMax - The maximum element XML local name.
    • getLogger

      protected org.slf4j.Logger getLogger()
      Gets the Logger to use.
      Specified by:
      getLogger in class EPPRegistryAbstractMinMax
      Returns:
      Logger instance to use for logging.
    • validateState

      protected void validateState() throws EPPEncodeException
      Validate the state of the 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.
      Overrides:
      validateState in class EPPRegistryAbstractMinMax
      Throws:
      EPPEncodeException - Validation error