Class EPPOrgInfoResp

java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.org.EPPOrgInfoResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPOrgInfoResp extends EPPResponse
Response information associated with an org object.
See Also:
  • Field Details

  • Constructor Details

    • EPPOrgInfoResp

      public EPPOrgInfoResp()
      EPPOrgInfoResp default constructor.
    • EPPOrgInfoResp

      public EPPOrgInfoResp(EPPTransId aTransId)
      EPPOrgInfoResp constructor that only takes the transaction identifier.
      Parameters:
      aTransId - Transaction Id associated with response.
    • EPPOrgInfoResp

      public EPPOrgInfoResp(EPPTransId aTransId, String aOrgId)
      EPPOrgInfoResp constructor that only takes the transaction identifier and the org identifier.
      Parameters:
      aTransId - Transaction Id associated with command. Set to null if a client transaction identifier is not desired.
      aOrgId - Org identifier
  • Method Details

    • getOrgId

      public String getOrgId()
      Gets the org identifier.
      Returns:
      The org identifier if defined;null otherwise.
    • setOrgId

      public void setOrgId(String aOrgId)
      Sets the org identifier.
      Parameters:
      aOrgId - The org identifier
    • getRoid

      public String getRoid()
      Returns:
      the roid
    • setRoid

      public void setRoid(String aRoid)
      Parameters:
      aRoid - the roid to set
    • hasRole

      public boolean hasRole()
      Is there at least one role?
      Returns:
      true if there at least one role; false otherwise.
    • getRoles

      public List<EPPOrgRole> getRoles()
      Gets the roles of the org.
      Returns:
      List of roles of the org.
    • setRoles

      public void setRoles(List<EPPOrgRole> aRoles)
      Sets the roles of the org.
      Parameters:
      aRoles - Organization roles
    • addRole

      public void addRole(EPPOrgRole aRole)
      Add a role to list of org roles.
      Parameters:
      aRole - Org role to add.
    • hasStatus

      public boolean hasStatus()
      Is there at least one status?
      Returns:
      true if there at least one status; false otherwise.
    • getStatuses

      public List<EPPOrgStatus> getStatuses()
      Gets the statuses of the org.
      Returns:
      List of statuses of the org.
    • setStatuses

      public void setStatuses(List<EPPOrgStatus> aStatuses)
      Sets the statuses of the org.
      Parameters:
      aStatuses - Organization statuses
    • addStatus

      public void addStatus(EPPOrgStatus aStatus)
      Add a status to list of org statuses.
      Parameters:
      aStatus - Org status to add.
    • hasParentId

      public boolean hasParentId()
      Is the parentId defined?
      Returns:
      true if the parentId is defined; false otherwise.
    • getParentId

      public String getParentId()
      Gets the parent organization id.
      Returns:
      The parent organization id if defined; null otherwise.
    • setParentId

      public void setParentId(String aParentId)
      Sets the parent organization id.
      Parameters:
      aParentId - the parentId to set
    • hasPostalInfo

      public boolean hasPostalInfo()
      Is there any postal information set?
      Returns:
      true if there is at least one EPPOrgPostalDefinition set in the postal information; false otherwise.
    • addPostalInfo

      public void addPostalInfo(EPPOrgPostalDefinition aPostalInfo)
      Adds a postal definition to the postal information for the org.
      Parameters:
      aPostalInfo - Postal definition to add to the postal information.
    • getPostalInfo

      public List<EPPOrgPostalDefinition> getPostalInfo()
      Gets the postal information for the org. There can be one or two EPPOrgPostalDefinition objects in the postal information list.
      Returns:
      Postal information for the org
    • setPostalInfo

      public void setPostalInfo(List<EPPOrgPostalDefinition> aPostalInfo)
      Sets the postal information for the org. There can be one or two EPPOrgPostalDefinition objects in the postal information list.
      Parameters:
      aPostalInfo - Postal information for the org.
    • getVoice

      public String getVoice()
      Returns:
      the voice
    • setVoice

      public void setVoice(String aVoice)
      Parameters:
      aVoice - the voice to set
    • getVoiceExt

      public String getVoiceExt()
      Returns:
      the voiceExt
    • setVoiceExt

      public void setVoiceExt(String aVoiceExt)
      Parameters:
      aVoiceExt - the voiceExt to set
    • getFax

      public String getFax()
      Returns:
      the fax
    • setFax

      public void setFax(String aFax)
      Parameters:
      aFax - the fax to set
    • getFaxExt

      public String getFaxExt()
      Returns:
      the faxExt
    • setFaxExt

      public void setFaxExt(String aFaxExt)
      Parameters:
      aFaxExt - the faxExt to set
    • getEmail

      public String getEmail()
      Returns:
      the email
    • setEmail

      public void setEmail(String aEmail)
      Parameters:
      aEmail - the email to set
    • getUrl

      public String getUrl()
      Gets the URL of the website of the org.
      Returns:
      URL of the website of the org.
    • setUrl

      public void setUrl(String aUrl)
      Sets the URL of the website of the org.
      Parameters:
      aUrl - URL of the website of the org.
    • hasContacts

      public boolean hasContacts()
      Is there any contacts set?
      Returns:
      true if there is at least one EPPOrgContact set; false otherwise.
    • addContact

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

      public List<EPPOrgContact> getContacts()
      Returns:
      the contacts
    • setContacts

      public void setContacts(List<EPPOrgContact> aContacts)
      Parameters:
      aContacts - the contacts to set
    • getClientId

      public String getClientId()
      Returns:
      the clientId
    • setClientId

      public void setClientId(String aClientId)
      Parameters:
      aClientId - the clientId to set
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      the createdBy
    • setCreatedBy

      public void setCreatedBy(String aCreatedBy)
      Parameters:
      aCreatedBy - the createdBy to set
    • getCreatedDate

      public Date getCreatedDate()
      Returns:
      the createdDate
    • setCreatedDate

      public void setCreatedDate(Date aCreatedDate)
      Parameters:
      aCreatedDate - the createdDate to set
    • getLastUpdatedBy

      public String getLastUpdatedBy()
      Returns:
      the lastUpdatedBy
    • setLastUpdatedBy

      public void setLastUpdatedBy(String aLastUpdatedBy)
      Parameters:
      aLastUpdatedBy - the lastUpdatedBy to set
    • getLastUpdatedDate

      public Date getLastUpdatedDate()
      Gets the last updated date.
      Returns:
      the lastUpdatedDate Last updated date if set; null otherwise.
    • setLastUpdatedDate

      public void setLastUpdatedDate(Date aLastUpdatedDate)
      Sets the last updated date.
      Parameters:
      aLastUpdatedDate - Last updated date and time
    • doEncode

      protected Element doEncode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPOrgInfoResp instance.
      Overrides:
      doEncode in class EPPResponse
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPOrgInfoResp instance.
      Throws:
      EPPEncodeException - Unable to encode EPPOrgInfoResp instance.
    • doDecode

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPOrgInfoResp attributes from the aElement DOM Element tree.
      Overrides:
      doDecode in class EPPResponse
      Parameters:
      aElement - Root DOM Element to decode EPPOrgInfoResp from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

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

      public String getType()
      Gets the EPP response type associated with EPPOrgInfoResp.
      Overrides:
      getType in class EPPResponse
      Returns:
      EPPOrgInfoResp.ELM_NAME
    • getNamespace

      public String getNamespace()
      Gets the EPP command namespace associated with EPPOrgInfoResp .
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Overrides:
      getNamespace in class EPPResponse
      Returns:
      EPPOrgMapFactory.NS
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPOrgInfoResp with this instance.
      Overrides:
      equals in class EPPResponse
      Parameters:
      aObject - Object 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 EPPResponse
      Returns:
      Indented XML String if successful; ERROR otherwise.