com.verisign.epp.codec.reseller
Class EPPResellerCreateCmd

java.lang.Object
  extended by com.verisign.epp.codec.gen.EPPCommand
      extended by com.verisign.epp.codec.gen.EPPCreateCmd
          extended by com.verisign.epp.codec.reseller.EPPResellerCreateCmd
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, java.io.Serializable, java.lang.Cloneable

public class EPPResellerCreateCmd
extends EPPCreateCmd

Command used to create a reseller object.

See Also:
EPPResellerCreateResp, Serialized Form

Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerCreateCmd.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerCreateCmd.
 
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE
 
Constructor Summary
EPPResellerCreateCmd()
          EPPResellerCreateCmd default constructor with the default form of Form.LIST_FORM.
EPPResellerCreateCmd(java.lang.String aTransId)
          EPPResellerCreateCmd constructor that takes the client transaction identifier.
 
Method Summary
 void addContact(EPPResellerContact aContact)
          Adds a contact to the list of contacts.
 void addPostalInfo(EPPResellerPostalDefinition aPostalInfo)
          Adds a postal definition to the postal information for the reseller.
 java.lang.Object clone()
          Clone EPPResellerCreateCmd.
protected  void doDecode(org.w3c.dom.Element aElement)
          Decode the EPPResellerCreateCmd attributes from the aElement DOM Element tree.
protected  org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
          Encode a DOM Element tree from the attributes of the EPPResellerCreateCmd instance.
 boolean equals(java.lang.Object aObject)
          Compare an instance of EPPResellerCreateCmd with this instance.
 java.util.List<EPPResellerContact> getContacts()
          Gets the list of reseller contacts.
 EPPResellerDisclose getDisclose()
          Gets the disclosure information.
 java.lang.String getEmail()
           
 java.lang.String getFax()
           
 java.lang.String getFaxExt()
           
 java.lang.String getNamespace()
          Gets the EPP command namespace associated with EPPResellerCreateCmd.
 java.lang.String getParentId()
           
 java.util.List<EPPResellerPostalDefinition> getPostalInfo()
          Gets the postal information for the reseller.
 java.lang.String getResellerId()
          Gets the reseller identifier.
 State getState()
          Gets the operational state of the reseller.
 java.lang.String getType()
          Gets the EPP response type associated with EPPResellerCreateCmd.
 java.lang.String getUrl()
          Gets the URL of the website of the reseller.
 java.lang.String getVoice()
           
 java.lang.String getVoiceExt()
           
 boolean hasContacts()
          Is there any contacts set?
 boolean hasPostalInfo()
          Is there any postal information set?
 void setContacts(java.util.List<EPPResellerContact> aContacts)
          Sets the list of reseller contacts.
 void setDisclose(EPPResellerDisclose aDisclose)
          Sets the disclosure information.
 void setEmail(java.lang.String aEmail)
           
 void setFax(java.lang.String aFax)
           
 void setFaxExt(java.lang.String aFaxExt)
           
 void setParentId(java.lang.String aParentId)
           
 void setPostalInfo(java.util.List<EPPResellerPostalDefinition> aPostalInfo)
          Sets the postal information for the reseller.
 void setResellerId(java.lang.String aResellerId)
          Sets the reseller identifier.
 void setState(State aState)
          Sets the operational state of the reseller.
 void setUrl(java.lang.String aUrl)
          Sets the URL of the website of the reseller.
 void setVoice(java.lang.String aVoice)
           
 void setVoiceExt(java.lang.String aVoiceExt)
           
 java.lang.String toString()
          Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
 
Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncode
 
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELM_LOCALNAME

public static final java.lang.String ELM_LOCALNAME
XML local name for EPPResellerCreateCmd.

See Also:
Constant Field Values

ELM_NAME

public static final java.lang.String ELM_NAME
XML root tag for EPPResellerCreateCmd.

See Also:
Constant Field Values
Constructor Detail

EPPResellerCreateCmd

public EPPResellerCreateCmd()
EPPResellerCreateCmd default constructor with the default form of Form.LIST_FORM.


EPPResellerCreateCmd

public EPPResellerCreateCmd(java.lang.String aTransId)
EPPResellerCreateCmd constructor that takes the client transaction identifier.

Parameters:
aTransId - Client transaction identifier.
Method Detail

getResellerId

public java.lang.String getResellerId()
Gets the reseller identifier.

Returns:
The reseller identifier if defined;null otherwise.

setResellerId

public void setResellerId(java.lang.String aResellerId)
Sets the reseller identifier.

Parameters:
aResellerId - The reseller identifier

getState

public State getState()
Gets the operational state of the reseller.

Returns:
Operational state

setState

public void setState(State aState)
Sets the operational state of the reseller.

Parameters:
aState - Operation state. If null the code will be set to the default of State.OK.

getParentId

public java.lang.String getParentId()
Returns:
the parentId

setParentId

public void setParentId(java.lang.String aParentId)
Parameters:
aParentId - the parentId to set

hasPostalInfo

public boolean hasPostalInfo()
Is there any postal information set?

Returns:
true if there is at least one EPPResellerPostalDefinition set in the postal information; false otherwise.

addPostalInfo

public void addPostalInfo(EPPResellerPostalDefinition aPostalInfo)
Adds a postal definition to the postal information for the reseller.

Parameters:
aPostalInfo - Postal definition to add to the postal information.

getPostalInfo

public java.util.List<EPPResellerPostalDefinition> getPostalInfo()
Gets the postal information for the reseller. There can be one or two EPPResellerPostalDefinition objects in the postal information list.

Returns:
Postal information for the reseller

setPostalInfo

public void setPostalInfo(java.util.List<EPPResellerPostalDefinition> aPostalInfo)
Sets the postal information for the reseller. There can be one or two EPPResellerPostalDefinition objects in the postal information list.

Parameters:
aPostalInfo - Postal information for the reseller.

getVoice

public java.lang.String getVoice()
Returns:
the voice

setVoice

public void setVoice(java.lang.String aVoice)
Parameters:
aVoice - the voice to set

getVoiceExt

public java.lang.String getVoiceExt()
Returns:
the voiceExt

setVoiceExt

public void setVoiceExt(java.lang.String aVoiceExt)
Parameters:
aVoiceExt - the voiceExt to set

getFax

public java.lang.String getFax()
Returns:
the fax

setFax

public void setFax(java.lang.String aFax)
Parameters:
aFax - the fax to set

getFaxExt

public java.lang.String getFaxExt()
Returns:
the faxExt

setFaxExt

public void setFaxExt(java.lang.String aFaxExt)
Parameters:
aFaxExt - the faxExt to set

getEmail

public java.lang.String getEmail()
Returns:
the email

setEmail

public void setEmail(java.lang.String aEmail)
Parameters:
aEmail - the email to set

getUrl

public java.lang.String getUrl()
Gets the URL of the website of the reseller.

Returns:
URL of the website of the reseller.

setUrl

public void setUrl(java.lang.String aUrl)
Sets the URL of the website of the reseller.

Parameters:
aUrl - URL of the website of the reseller.

hasContacts

public boolean hasContacts()
Is there any contacts set?

Returns:
true if there is at least one EPPResellerContact set; false otherwise.

addContact

public void addContact(EPPResellerContact aContact)
Adds a contact to the list of contacts.

Parameters:
aContact - Contact add to the list of contacts.

getContacts

public java.util.List<EPPResellerContact> getContacts()
Gets the list of reseller contacts.

Returns:
The list of reseller contacts.

setContacts

public void setContacts(java.util.List<EPPResellerContact> aContacts)
Sets the list of reseller contacts.

Parameters:
aContacts - List of reseller contacts. If null will set to an empty list.

getDisclose

public EPPResellerDisclose getDisclose()
Gets the disclosure information.

Returns:
Disclosure information if defined; null otherwise.

setDisclose

public void setDisclose(EPPResellerDisclose aDisclose)
Sets the disclosure information.

Parameters:
aDisclose - Disclosure information

doEncode

protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
                                throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPResellerCreateCmd instance.

Specified by:
doEncode in class EPPCreateCmd
Parameters:
aDocument - DOM Document that is being built. Used as an Element factory.
Returns:
Element Root DOM Element representing the EPPResellerCreateCmd instance.
Throws:
EPPEncodeException - Unable to encode EPPResellerCreateCmd instance.

doDecode

protected void doDecode(org.w3c.dom.Element aElement)
                 throws EPPDecodeException
Decode the EPPResellerCreateCmd attributes from the aElement DOM Element tree.

Specified by:
doDecode in class EPPCreateCmd
Parameters:
aElement - Root DOM Element to decode EPPResellerCreateCmd from.
Throws:
EPPDecodeException - Unable to decode aElement

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone EPPResellerCreateCmd.

Specified by:
clone in interface EPPCodecComponent
Overrides:
clone in class EPPCommand
Returns:
clone of EPPResellerCreateCmd
Throws:
java.lang.CloneNotSupportedException - standard Object.clone exception

getType

public java.lang.String getType()
Gets the EPP response type associated with EPPResellerCreateCmd.

Overrides:
getType in class EPPCreateCmd
Returns:
EPPResellerCreateCmd.ELM_NAME

getNamespace

public java.lang.String getNamespace()
Gets the EPP command namespace associated with EPPResellerCreateCmd.

Specified by:
getNamespace in interface EPPMessage
Specified by:
getNamespace in class EPPCommand
Returns:
EPPResellerMapFactory.NS

equals

public boolean equals(java.lang.Object aObject)
Compare an instance of EPPResellerCreateCmd with this instance.

Overrides:
equals in class EPPCreateCmd
Parameters:
aObject - Object to compare with.
Returns:
true if this object is the same as the aObject argument; false otherwise

toString

public java.lang.String toString()
Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

Overrides:
toString in class EPPCommand
Returns:
Indented XML String if successful; ERROR otherwise.


Copyright © VeriSign Inc. All Rights Reserved.