Class EPPRegistryDS

java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryKey
com.verisign.epp.codec.registry.EPPRegistryDS
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryDS extends EPPRegistryKey
Defines the DS Data Interface, as defined in RFC 5910, policies. The <registry:dsDataInterface> element contains the following child elements:

See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryDS

      public EPPRegistryDS()
      Constructs a new EPPRegistryDS object. All attributes are set to default. Must call EPPRegistryKey.setMin(Integer) and EPPRegistryKey.setMax(Integer) before calling encode(Document) method.
    • EPPRegistryDS

      public EPPRegistryDS(Integer min, Integer max, List algorithms, List digestTypes)
      Constructs a new EPPRegistryDS with given values.
      Parameters:
      min - minimum number of DS associated with the domain object
      max - maximum number of DS associated with the domain object
      algorithms - List of algorithm String
      digestTypes - List of digest type String
    • EPPRegistryDS

      public EPPRegistryDS(int min, int max, List algorithms, List digestTypes)
      Constructs a new EPPRegistryDS with given values.
      Parameters:
      min - minimum number of DS associated with the domain object
      max - maximum number of DS associated with the domain object
      algorithms - List of algorithm String
      digestTypes - List of digest type String
  • Method Details

    • encode

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

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRegistryDS attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Overrides:
      decode in class EPPRegistryKey
      Parameters:
      aElement - Root DOM Element to decode EPPRegistryDS from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryDS compare.
      Overrides:
      equals in class EPPRegistryKey
      Parameters:
      aObject - EPPRegistryDS instance to compare with
      Returns:
      true if this object is the same as the aObject argument; 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 EPPRegistryKey
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getDigestTypes

      public List getDigestTypes()
      Get digest types.
      Returns:
      List of digest type in String
    • setDigestTypes

      public void setDigestTypes(List digestTypes)
      Set digest types.
      Parameters:
      digestTypes - List of digest type in String
    • addDigestType

      public void addDigestType(String digestType)
      Add one digest type to an existing list.
      Parameters:
      digestType - digest type in String
    • getRootName

      public String getRootName()
      DOCUMENT ME!
      Overrides:
      getRootName in class EPPRegistryKey
      Returns:
      DOCUMENT ME!