Class EPPLaunchCheck

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

public class EPPLaunchCheck extends Object implements EPPCodecComponent
Extension to the domain check command to implement the check in three different forms, which include Claims Check Form, Availability Check Form, or Trademark Check Form.
See Also:
  • Field Details

    • TYPE_CLAIMS

      public static final String TYPE_CLAIMS
      Constant used to specify the claims check form type
      See Also:
    • TYPE_AVAILABILITY

      public static final String TYPE_AVAILABILITY
      Constant used to specify the availability check form type
      See Also:
    • TYPE_TRADEMARK

      public static final String TYPE_TRADEMARK
      Constant used to specify the trademark check form type
      See Also:
    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      Constant for the launch phase check extension local name
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      Constant for the launch phase info extension tag
      See Also:
  • Constructor Details

    • EPPLaunchCheck

      public EPPLaunchCheck()
      Create an EPPLaunchInf instance
    • EPPLaunchCheck

      public EPPLaunchCheck(EPPLaunchPhase aPhase)
      Create a EPPLaunchCheck instance with the required phase attribute value.
      Parameters:
      aPhase - The phase with the value of to execute the check against.
    • EPPLaunchCheck

      public EPPLaunchCheck(EPPLaunchPhase aPhase, String aType)
      Create a EPPLaunchCheck instance with the phase and optional type attribute value.
      Parameters:
      aPhase - The phase with the value of to execute the check against.
      aType - Claims form type using either TYPE_CLAIMS or TYPE_AVAILABILITY or TYPE_TRADEMARK.
    • EPPLaunchCheck

      public EPPLaunchCheck(String aType)
      Create a EPPLaunchCheck instance with the type attribute value.
      Parameters:
      aType - Claims form type using either TYPE_CLAIMS or TYPE_AVAILABILITY or TYPE_TRADEMARK.
  • Method Details

    • hasType

      public boolean hasType()
      Is the check form type defined?
      Returns:
      true if the type is defined; false otherwise.
    • getType

      public String getType()
      Gets the check form type, which should be either TYPE_CLAIMS, TYPE_AVAILABILITY, or null for undefined.
      Returns:
      TYPE_CLAIMS, TYPE_AVAILABILITY, or null for undefined.
    • setType

      public void setType(String aType)
      Sets the check form type. The XML schema defines the default as TYPE_CLAIMS if undefined.
      Parameters:
      aType - TYPE_CLAIMS or TYPE_AVAILABILITY
    • hasPhase

      public boolean hasPhase()
      Is the phase defined?
      Returns:
      true if the phase is defined; false otherwise.
    • getPhase

      public EPPLaunchPhase getPhase()
      Gets phase of the check command.
      Returns:
      phase of the check command if set; null otherwise.
    • setPhase

      public void setPhase(EPPLaunchPhase aPhase)
      Sets the phase of the check command.
      Parameters:
      aPhase - The phase with the value of to execute the check against.
    • setPhase

      public void setPhase(String aPhaseString)
      Sets the phase with one of the EPPLaunchPhase PHASE constants.
      Parameters:
      aPhaseString - One of the EPPLaunchPhase PHASE constants.
    • isClaimsCheckForm

      public boolean isClaimsCheckForm()
      Is the Claims Check Form being used?
      Returns:
      true if Claims Check Form is defined; false otherwise.
    • isAvailabilityCheckForm

      public boolean isAvailabilityCheckForm()
      Is the Availability Check Form being used?
      Returns:
      true if Availability Check Form is defined; false otherwise.
    • isTrademarkCheckForm

      public boolean isTrademarkCheckForm()
      Is the Trademark Check Form being used?
      Returns:
      true if Trademark Check Form is defined; false otherwise.
    • clone

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

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode the EPPLaunchCheck to a DOM Element
      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 DOM element to the EPPLaunchCheck.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - DOM Element to decode the attribute values
      Throws:
      EPPDecodeException - Error decoding the DOM Element
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPLaunchCheck compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPLaunchCheck instance to compare with
      Returns:
      true if equal false otherwise
    • 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.