Class EPPValidateCheckCmd

    • Field Detail

      • ELM_LOCALNAME

        public static final java.lang.String ELM_LOCALNAME
        Constant for the name verification check command
        See Also:
        Constant Field Values
    • Constructor Detail

      • EPPValidateCheckCmd

        public EPPValidateCheckCmd()
        EPPValidateCheckCmd default constructor.
      • EPPValidateCheckCmd

        public EPPValidateCheckCmd​(java.lang.String aTransId)
        EPPValidateCheckCmd constructor with just the client transaction identifier.
        Parameters:
        aTransId - Transaction Id associated with command.
      • EPPValidateCheckCmd

        public EPPValidateCheckCmd​(java.lang.String aTransId,
                                   EPPValidateContact aContact)
        EPPValidateCheckCmd constructor that will check an individual contact.
        Parameters:
        aTransId - Transaction Id associated with command.
        aContact - Contact to validate
      • EPPValidateCheckCmd

        public EPPValidateCheckCmd​(java.lang.String aTransId,
                                   java.util.List<EPPValidateContact> aContacts)
        EPPValidateCheckCmd constructor that will check a list of contacts.
        Parameters:
        aTransId - Transaction Id associated with command.
        aContacts - List of labels to check
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object aObject)
        Compare an instance of EPPValidateCheckCmd with this instance.
        Overrides:
        equals in class EPPCheckCmd
        Parameters:
        aObject - Object to compare with.
        Returns:
        true if equal; false otherwise.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Clone EPPValidateCheckCmd.
        Specified by:
        clone in interface EPPCodecComponent
        Overrides:
        clone in class EPPCommand
        Returns:
        Deep copy clone of EPPValidateCheckCmd
        Throws:
        java.lang.CloneNotSupportedException - standard Object.clone exception
      • toString

        public java.lang.String toString()
        Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
        Overrides:
        toString in class EPPCommand
        Returns:
        Indented XML String if successful; ERROR otherwise.
      • hasContacts

        public boolean hasContacts()
        Is there any contacts set?
        Returns:
        true if there is at least one EPPValidateContact set; false otherwise.
      • setContact

        public void setContact​(EPPValidateContact aContact)
        Sets individual contact to validate.
        Parameters:
        aContact - Contact to validate
      • getContacts

        public java.util.List<EPPValidateContact> getContacts()
        Gets contacts to validate.
        Returns:
        List of contacts.
      • setLabels

        public void setLabels​(java.util.List<EPPValidateContact> aContacts)
        Sets contacts to validate.
        Parameters:
        aContacts - Contacts to validate.
      • addContact

        public void addContact​(EPPValidateContact aContact)
        Add a contact to the list of contacts to validate.
        Parameters:
        aContact - Contact to add
      • doEncode

        protected org.w3c.dom.Element doEncode​(org.w3c.dom.Document aDocument)
                                        throws EPPEncodeException
        Encode a DOM Element tree from the attributes of the EPPValidateCheckCmd instance.
        Specified by:
        doEncode in class EPPCheckCmd
        Parameters:
        aDocument - DOM Document that is being built. Used as an Element factory.
        Returns:
        Element Root DOM Element representing the EPPValidateCheckCmd instance.
        Throws:
        EPPEncodeException - Unable to encode EPPValidateCheckCmd instance.
      • doDecode

        protected void doDecode​(org.w3c.dom.Element aElement)
                         throws EPPDecodeException
        Decode the EPPValidateCheckCmd attributes from the aElement DOM Element tree.
        Specified by:
        doDecode in class EPPCheckCmd
        Parameters:
        aElement - Root DOM Element to decode EPPValidateCheckCmd from.
        Throws:
        EPPDecodeException - Unable to decode aElement