Class EPPLaunchNotice

java.lang.Object
com.verisign.epp.codec.launch.EPPLaunchNotice
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPLaunchNotice extends Object implements EPPCodecComponent
Class to hold the launch notice information including the notice identifier, the expiration (not after) date and time, and the date and time the claims notice was accepted.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant for the local name
    static final String
    Constant for the tag name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for EPPLaunchNotice.
    EPPLaunchNotice(String aNoticeId, Date aNotAfterDate, Date aAcceptedDate)
    Constructor that takes all of he attributes of the EPPLaunchNotice.
    EPPLaunchNotice(String aNoticeId, Date aNotAfterDate, Date aAcceptedDate, String aValidatorId)
    Constructor that takes all of he attributes of the EPPLaunchNotice.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone EPPLaunchNotice.
    void
    decode(Element aElement)
    Decode the EPPLaunchNotice component
    encode(Document aDocument)
    Sets all this instance's data in the given XML document
    boolean
    equals(Object aObject)
    implements a deep EPPLaunchNotice compare.
    Gets the date and time that the claims notice was displayed or accepted.
    Returns the XML namespace associated with the EPPCodecComponent.
    Gets the date and time of expiration of the claims notice.
    Gets the unique notice identifier of the claims notice.
    Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information.
    boolean
    Is the Validator Identifier defined?
    void
    setAcceptedDate(Date aAcceptedDate)
    Sets the date and time that the claims notice was displayed or accepted.
    void
    setNotAfterDate(Date aNotAfterDate)
    Sets the date and time of expiration of the claims notice.
    void
    setNoticeId(String aNoticeId)
    Sets the unique notice identifier of the claims notice.
    void
    setValidatorId(String aValidatorId)
    Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information.
    Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EPPLaunchNotice

      public EPPLaunchNotice()
      Default constructor for EPPLaunchNotice.
    • EPPLaunchNotice

      public EPPLaunchNotice(String aNoticeId, Date aNotAfterDate, Date aAcceptedDate)
      Constructor that takes all of he attributes of the EPPLaunchNotice.
      Parameters:
      aNoticeId - Unique notice identifier of the claims notice
      aNotAfterDate - Date and time of the expiration of the claims notice
      aAcceptedDate - Date and time when the notice was displayed or accepted
    • EPPLaunchNotice

      public EPPLaunchNotice(String aNoticeId, Date aNotAfterDate, Date aAcceptedDate, String aValidatorId)
      Constructor that takes all of he attributes of the EPPLaunchNotice.
      Parameters:
      aNoticeId - Unique notice identifier of the claims notice
      aNotAfterDate - Date and time of the expiration of the claims notice
      aAcceptedDate - Date and time when the notice was displayed or accepted
      aValidatorId - Identifier of the Trademark Validator used to query for the Claims Notice information.
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPLaunchNotice.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPLaunchNotice
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - a DOM Document to attach data to.
      Returns:
      The root element of this component.
      Throws:
      EPPEncodeException - Thrown if any errors prevent encoding.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPLaunchNotice component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root element of the EPPLaunchNotice
      Throws:
      EPPDecodeException - Error decoding the EPPLaunchNotice
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPLaunchNotice compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPLaunchNotice instance to compare with
      Returns:
      true if equal false otherwise
    • getNoticeId

      public String getNoticeId()
      Gets the unique notice identifier of the claims notice.
      Returns:
      Unique notice identifier if set; null otherwise.
    • setNoticeId

      public void setNoticeId(String aNoticeId)
      Sets the unique notice identifier of the claims notice.
      Parameters:
      aNoticeId - Unique notice identifier
    • getValidatorId

      public String getValidatorId()
      Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information. If undefined, the ICANN TMCH is the Validator or if the value is "tmch".
      Returns:
      The Validator Identifier if defined; null otherwise to indicate to use the ICANN TMCH.
    • setValidatorId

      public void setValidatorId(String aValidatorId)
      Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information. If undefined, the ICANN TMCH is the Validator or if the value is "tmch".
      Parameters:
      aValidatorId - Validator Identifier, where null or a value of "tmch" can be specified to indicate the use of the ICANN TMCH.
    • hasValidatorId

      public boolean hasValidatorId()
      Is the Validator Identifier defined?
      Returns:
      true if the Validator Identifier is defined; false otherwise.
    • getNotAfterDate

      public Date getNotAfterDate()
      Gets the date and time of expiration of the claims notice.
      Returns:
      Date and time of the expiration of the claims notice if set; null otherwise.
    • setNotAfterDate

      public void setNotAfterDate(Date aNotAfterDate)
      Sets the date and time of expiration of the claims notice.
      Parameters:
      aNotAfterDate - Date and time of expiration of the claims notice.
    • getAcceptedDate

      public Date getAcceptedDate()
      Gets the date and time that the claims notice was displayed or accepted.
      Returns:
      Date and time that the claims notice was displayed or accepted if set; null otherwise.
    • setAcceptedDate

      public void setAcceptedDate(Date aAcceptedDate)
      Sets the date and time that the claims notice was displayed or accepted.
      Parameters:
      aAcceptedDate - Date and time that the claims notice was displayed or accepted.
    • toString

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

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.