Class EPPRegistryMinMaxLength

    • Constructor Summary

      Constructors 
      Constructor Description
      EPPRegistryMinMaxLength()
      Creates a new EPPRegistryMinMaxLength object.
      EPPRegistryMinMaxLength​(int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      EPPRegistryMinMaxLength​(java.lang.Integer aMin, java.lang.Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
      EPPRegistryMinMaxLength​(java.lang.String aRootLocalName, int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      EPPRegistryMinMaxLength​(java.lang.String aRootLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
      EPPRegistryMinMaxLength​(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, int aMin, int aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as int's.
      EPPRegistryMinMaxLength​(java.lang.String aRootLocalName, java.lang.String aMinLocalName, java.lang.String aMaxLocalName, java.lang.Integer aMin, java.lang.Integer aMax)
      Creates a new EPPRegistryMinMaxLength object that takes both the minimum and maximum values as Integer's.
    • Constructor Detail

      • EPPRegistryMinMaxLength

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

        public EPPRegistryMinMaxLength​(java.lang.Integer aMin,
                                       java.lang.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​(java.lang.String aRootLocalName,
                                       java.lang.Integer aMin,
                                       java.lang.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​(java.lang.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​(java.lang.String aRootLocalName,
                                       java.lang.String aMinLocalName,
                                       java.lang.String aMaxLocalName,
                                       java.lang.Integer aMin,
                                       java.lang.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​(java.lang.String aRootLocalName,
                                       java.lang.String aMinLocalName,
                                       java.lang.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 Detail

      • getRootName

        public java.lang.String getRootName()
        Gets the root element local name.
        Specified by:
        getRootName in class EPPRegistryAbstractMinMax
        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 class EPPRegistryAbstractMinMax
        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 class EPPRegistryAbstractMinMax
        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 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