Class EPPLaunchCodeMark

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

public class EPPLaunchCodeMark extends Object implements EPPCodecComponent
Class for an address within an EPPMarkContact.
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 EPPLaunchCodeMark.
    Constructor that takes just the mark attribute of the EPPLaunchCodeMark.
    Constructor that takes just the code attribute of the EPPLaunchCodeMark.
    Constructor that takes both the code and mark attributes of the EPPLaunchCodeMark.
    EPPLaunchCodeMark(String aCode, String aValidatorId)
    Constructor that takes just the code attribute of the EPPLaunchCodeMark and the validator identifier of the code.
    EPPLaunchCodeMark(String aCode, String aValidatorId, EPPMark aMark)
    Constructor that takes both the code, code validator identifier, and mark attributes of the EPPLaunchCodeMark.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone EPPLaunchCodeMark.
    void
    decode(Element aElement)
    Decode the EPPMark component
    encode(Document aDocument)
    Sets all this instance's data in the given XML document
    boolean
    equals(Object aObject)
    implements a deep EPPLaunchCodeMark compare.
    Gets the mark code used to validate the mark information.
    Gets the mark information.
    Returns the XML namespace associated with the EPPCodecComponent.
    Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that the code originates from.
    boolean
    Is the mark code set?
    boolean
    Is both the mark code and mark set?
    boolean
    Is the mark set?
    boolean
    Is the Validator Identifier defined?
    void
    setCode(String aCode)
    Sets the mark code used to validate the mark information.
    void
    Sets the mark information.
    void
    setValidatorId(String aValidatorId)
    Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that the code originates from.
    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

    • EPPLaunchCodeMark

      public EPPLaunchCodeMark()
      Default constructor for EPPLaunchCodeMark.
    • EPPLaunchCodeMark

      public EPPLaunchCodeMark(String aCode)
      Constructor that takes just the code attribute of the EPPLaunchCodeMark.
      Parameters:
      aCode - Mark code
    • EPPLaunchCodeMark

      public EPPLaunchCodeMark(String aCode, String aValidatorId)
      Constructor that takes just the code attribute of the EPPLaunchCodeMark and the validator identifier of the code.
      Parameters:
      aCode - Mark code
      aValidatorId - Identifier of the Trademark Validator that aCode originated from.
    • EPPLaunchCodeMark

      public EPPLaunchCodeMark(EPPMark aMark)
      Constructor that takes just the mark attribute of the EPPLaunchCodeMark.
      Parameters:
      aMark - Mark information
    • EPPLaunchCodeMark

      public EPPLaunchCodeMark(String aCode, EPPMark aMark)
      Constructor that takes both the code and mark attributes of the EPPLaunchCodeMark.
      Parameters:
      aCode - Mark code
      aMark - Mark information
    • EPPLaunchCodeMark

      public EPPLaunchCodeMark(String aCode, String aValidatorId, EPPMark aMark)
      Constructor that takes both the code, code validator identifier, and mark attributes of the EPPLaunchCodeMark.
      Parameters:
      aCode - Mark code
      aValidatorId - Identifier of the Trademark Validator that aCode originated from.
      aMark - Mark information
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPLaunchCodeMark.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPLaunchCodeMark
      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 EPPMark component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root element of the EPPMark
      Throws:
      EPPDecodeException - Error decoding the EPPMark
    • equals

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

      public boolean hasCodeMark()
      Is both the mark code and mark set?
      Returns:
      true if the mark code and mark are set; false otherwise.
    • hasCode

      public boolean hasCode()
      Is the mark code set?
      Returns:
      true if the mark code is set; false otherwise.
    • getCode

      public String getCode()
      Gets the mark code used to validate the mark information.
      Returns:
      The mark code if defined; null otherwise.
    • setCode

      public void setCode(String aCode)
      Sets the mark code used to validate the mark information.
      Parameters:
      aCode - The mark code
    • getValidatorId

      public String getValidatorId()
      Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that the code originates from.
      Returns:
      The Validator Identifier if defined; otherwise null.
    • setValidatorId

      public void setValidatorId(String aValidatorId)
      Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that the code originates from.
      Parameters:
      aValidatorId - Validator Identifier
    • hasValidatorId

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

      public boolean hasMark()
      Is the mark set?
      Returns:
      true if the mark is set; false otherwise.
    • getMark

      public EPPMark getMark()
      Gets the mark information.
      Returns:
      the mark information if defined; null otherwise.
    • setMark

      public void setMark(EPPMark aMark)
      Sets the mark information.
      Parameters:
      aMark - The mark information
    • 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.