Class EPPCourt

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

public class EPPCourt extends Object implements EPPCodecComponent
Class for a Court that can be included in the list of courts contained in the EPPMark.
See Also:
  • Field Details

  • Constructor Details

    • EPPCourt

      public EPPCourt()
      Create an EPPCourt instance. Use the setter methods to set the attributes of the instance.
  • Method Details

    • clone

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

      public byte[] encode() throws EPPEncodeException
      Encode the court to a byte[].
      Returns:
      Encoded court
      Throws:
      EPPEncodeException - Error encoding the court
    • 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(byte[] aMarkArray) throws EPPDecodeException
      Decode the EPPCourt attributes from the input byte[].
      Parameters:
      aMarkArray - byte[] to decode the attribute values
      Throws:
      EPPDecodeException - Error decoding the byte[].
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPCourt component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root element of the EPPCourt
      Throws:
      EPPDecodeException - Error decoding the EPPCourt
    • equals

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

      public String getId()
      Gets the identifier for the court.
      Returns:
      The identifier for the court if set; null otherwise.
    • setId

      public void setId(String aId)
      Sets the identifier for the court.
      Parameters:
      aId - Identifier for the court
    • getName

      public String getName()
      Gets the registered court text string.
      Returns:
      The registered court text string if set; null otherwise.
    • setName

      public void setName(String aName)
      Sets the registered court text string.
      Parameters:
      aName - the registered court text string
    • getHolders

      public List<EPPMarkContact> getHolders()
      Gets holders of the court.
      Returns:
      the holders of the court if set; Empty List otherwise.
    • setHolders

      public void setHolders(List<EPPMarkContact> aHolders)
      Sets holders of the court.
      Parameters:
      aHolders - the holders of the court
    • addHolder

      public void addHolder(EPPMarkContact aHolder)
      Adds a holder to the list of holders of the court.
      Parameters:
      aHolder - Holder to add to list of holders of the court.
    • getContacts

      public List<EPPMarkContact> getContacts()
      Gets contacts of the court.
      Returns:
      the contacts of the court if set; Empty List otherwise.
    • setContacts

      public void setContacts(List<EPPMarkContact> aContacts)
      Sets contacts of the court.
      Parameters:
      aContacts - the contacts of the court
    • addContact

      public void addContact(EPPMarkContact aContact)
      Adds a contact to the list of contacts of the court.
      Parameters:
      aContact - Contact to add to list of contacts of the court.
    • getLabels

      public List<String> getLabels()
      Gets the domain name labels that corresponds to the court.
      Returns:
      the domain name labels that corresponds to the court if set; Empty List otherwise.
    • setLabels

      public void setLabels(List<String> aLabels)
      Sets the domain name labels that corresponds to the court.
      Parameters:
      aLabels - the domain name labels that corresponds to the treaty or statute
    • addLabel

      public void addLabel(String aLabel)
      Adds a domain name label to the domain name labels that corresponds to the court.
      Parameters:
      aLabel - Domain name label to add.
    • getGoodsAndServices

      public String getGoodsAndServices()
      Gets full description of the goods and services mentioned in the treaty or statute registration document.
      Returns:
      The goods and services if set; null otherwise.
    • setGoodsAndServices

      public void setGoodsAndServices(String aGoodsAndServices)
      Sets full description of the goods and services mentioned in the treaty or statute registration document.
      Parameters:
      aGoodsAndServices - The goods and services
    • getRefNum

      public String getRefNum()
      Gets the reference number of the mark of the court's opinion.
      Returns:
      Reference number of the mark of the court's opinion if defined; null otherwise.
    • setRefNum

      public void setRefNum(String aRefNum)
      Sets the reference number of the mark of the court's opinion.
      Parameters:
      aRefNum - Reference number of the mark of the court's opinion.
    • getProDate

      public Date getProDate()
      Gets the date of protection of the mark.
      Returns:
      The date of protection of the mark if defined; null otherwise.
    • setProDate

      public void setProDate(Date aProDate)
      Sets the date of protection of the mark.
      Parameters:
      aProDate - The date of protection of the mark.
    • getCc

      public String getCc()
      Gets two-character code of the country where the court is located from [ISO3166-2].
      Returns:
      Two-character code of the country where the court is located if set; null otherwise.
    • setCc

      public void setCc(String aCc)
      Sets two-character code of the country where the court is located from [ISO3166-2].
      Parameters:
      aCc - Two-character code of the country where the court is located from [ISO3166-2].
    • getRegions

      public List<String> getRegions()
      Gets the regions where the mark is protected. A region is the name of a city, state, province or other geographic location.
      Returns:
      The regions where the mark is protected if set; Empty List otherwise.
    • setRegions

      public void setRegions(List<String> aRegions)
      Sets the regions where the mark is protected. A region is the name of a city, state, province or other geographic location.
      Parameters:
      aRegions - The regions where the mark is protected.
    • addRegions

      public void addRegions(String aRegion)
      Adds a region to the list or regions where the mark is protected.
      Parameters:
      aRegion - Region where the mark is protected.
    • getCourtName

      public String getCourtName()
      Gets the name of the court.
      Returns:
      The name of the court if set; null otherwise.
    • setCourtName

      public void setCourtName(String aCourtName)
      Sets the name of the court.
      Parameters:
      aCourtName - The name of the court.
    • 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.