Class EPPSyncExtUpdate

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

public class EPPSyncExtUpdate extends Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a sync update.

Title: EPP 1.0 RGP

Description: SYNC Extension to the EPP SDK

Copyright: Copyright (c) 2004

Company: VeriSign

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant for the expiration month/day tag name
    static final String
    Constant for the update tag name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an EPPSyncExtUpdate instance
    EPPSyncExtUpdate(int aMonth, int aDay)
    Create a EPPSyncExtUpdate intance with the given month and day
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone EPPSyncExtUpdate.
    void
    decode(Element aElement)
    Decode the EPPSyncExtUpdate component.
    encode(Document aDocument)
    Sets all this instance's data in the given XML document.
    boolean
    equals(Object aObject)
    implements a deep EPPSyncExtUpdate compare.
    int
    Gets the day of the month
    int
    Returns the month.
    Returns the XML namespace associated with the EPPCodecComponent.
    void
    setDay(int aDay)
    Sets the day of the month
    void
    setMonth(int aMonth)
    Sets the month

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • EPPSyncExtUpdate

      public EPPSyncExtUpdate()
      Create an EPPSyncExtUpdate instance
    • EPPSyncExtUpdate

      public EPPSyncExtUpdate(int aMonth, int aDay)
      Create a EPPSyncExtUpdate intance with the given month and day
      Parameters:
      aMonth - the month using a java.util.Calendar month constant
      aDay - the day
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPSyncExtUpdate.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPSyncExtUpdate
      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. Only a basic precondition check is done on the range of month (Calendar.JANUARY - Calendar.DECEMBER) and day values (1 - 31).
      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 EPPSyncExtUpdate component. It's assumed that date has already been validated by the XML parsing, so the month and day are decoded with no additional validation.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode from
      Throws:
      EPPDecodeException - On encoding error
    • equals

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

      public int getMonth()
      Returns the month.
      Returns:
      the month using a java.util.Calendar month constant
    • setMonth

      public void setMonth(int aMonth)
      Sets the month
      Parameters:
      aMonth - the month using a java.util.Calendar month constant
    • getDay

      public int getDay()
      Gets the day of the month
      Returns:
      the day of the month
    • setDay

      public void setDay(int aDay)
      Sets the day of the month
      Parameters:
      aDay - the day of the month
    • getNamespace

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