Class EPPRegistryContactName

java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
com.verisign.epp.codec.registry.EPPRegistryContactName
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryContactName extends EPPRegistryMinMaxLength
Represents the minimum and maximum length of <contact:name> element defined RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
See Also:
  • Field Details

    • ELM_NAME

      public static final String ELM_NAME
      XML Element Name of EPPRegistryContactName root element.
      See Also:
  • Constructor Details

    • EPPRegistryContactName

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

      public EPPRegistryContactName(Integer min, Integer max)
      Creates a new EPPRegistryContactName object with min length and max length.
      Parameters:
      min - minimum length of the contact name
      max - maximum length of the contact name
    • EPPRegistryContactName

      public EPPRegistryContactName(int min, int max)
      Creates a new EPPRegistryContactName object with min length and max length.
      Parameters:
      min - minimum length of the contact name
      max - maximum length of the contact name
  • Method Details

    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRegistryContactName compare.
      Overrides:
      equals in class EPPRegistryMinMaxLength
      Parameters:
      aObject - EPPRegistryContactName instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • validateState

      protected void validateState() throws EPPEncodeException
      Validate the state of the EPPRegistryContactName 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. throws EPPCodecException State error. This will contain the name of the attribute that is not valid.
      Overrides:
      validateState in class EPPRegistryMinMaxLength
      Throws:
      EPPEncodeException - On invalid state