Class EPPRelatedDomainExtField

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

public class EPPRelatedDomainExtField extends Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:field> tag

Title: EPP 1.0 Related Domain - field tag

Description: The EPPRelatedDomainExtField has two attributes. The inSync boolean attribute specifies whether or not the name attribute is in synchronized with the rest of the related domains in the family.
As XML, it is represented by a <relDom:field> element with two attributes: name and inSync

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    EPPRelatedDomainExtField default constructor
    EPPRelatedDomainExtField(String aFieldName, boolean aInSync)
    EPPRelatedDomainExtField constructor that accepts the name of the field and the boolean inSync attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    A deep clone of the EPPRelatedDomainExtField
    void
    decode(Element aElement)
    Populate the data of this instance with the data stored in the given Element of the DOM tree
    encode(Document aDocument)
    Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtField instance.
    boolean
    implements a deep EPPRelatedDomainExtField compare.
    boolean
    Returns the inSync attribute
    Returns the name of the filed
    Returns the XML namespace associated with the EPPCodecComponent.
    void
    setInSync(boolean aInSync)
    Sets inSync attribute
    void
    setName(String aName)
    Sets aName value to name attribute
    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
  • Constructor Details

    • EPPRelatedDomainExtField

      public EPPRelatedDomainExtField()
      EPPRelatedDomainExtField default constructor
    • EPPRelatedDomainExtField

      public EPPRelatedDomainExtField(String aFieldName, boolean aInSync)
      EPPRelatedDomainExtField constructor that accepts the name of the field and the boolean inSync attribute.
      Parameters:
      aFieldName - Name of the field
      aInSync - Boolean attribute that defines the field is synchronized across all of the related domains
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      A deep clone of the EPPRelatedDomainExtField
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPCodecComponent
      Throws:
      CloneNotSupportedException - standard Object.clone exception
      See Also:
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtField instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element - Root DOM Element representing the EPPDomainPeriod instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPDomainPeriod instance.
    • equals

      public boolean equals(Object obj)
      implements a deep EPPRelatedDomainExtField compare.
      Overrides:
      equals in class Object
      Parameters:
      obj - EPPRelatedDomainExtField instance to compare with
      Returns:
      true if the objects are equal
    • getInSync

      public boolean getInSync()
      Returns the inSync attribute
      Returns:
      the inSync attribute
    • getName

      public String getName()
      Returns the name of the filed
      Returns:
      the name of the field
    • setInSync

      public void setInSync(boolean aInSync)
      Sets inSync attribute
      Parameters:
      aInSync - the inSync attribute to set
    • setName

      public void setName(String aName)
      Sets aName value to name attribute
      Parameters:
      aName - the name of the field to set
    • 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.