com.verisign.epp.codec.reseller
Class EPPResellerUpdateCmd

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

public class EPPResellerUpdateCmd
extends EPPUpdateCmd

Command used to update a reseller object.

See Also:
Serialized Form

Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerUpdateCmd.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerUpdateCmd.
 
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
EPPResellerUpdateCmd()
          EPPResellerUpdateCmd default constructor with the default form of Form.LIST_FORM.
EPPResellerUpdateCmd(java.lang.String aTransId)
          EPPResellerUpdateCmd constructor that takes the client transaction identifier.
 
Method Summary
 void addAddContact(EPPResellerContact aContact)
          Adds an add contact to the list of add contacts.
 void addPostalInfo(EPPResellerPostalDefinition aPostalInfo)
          Adds a postal definition to the postal information for the reseller.
 void addRemContact(EPPResellerContact aContact)
          Adds a remove contact to the list of remove contacts.
 java.lang.Object clone()
          Clone EPPResellerUpdateCmd.
protected  void doDecode(org.w3c.dom.Element aElement)
          Decode the EPPResellerUpdateCmd 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 EPPResellerUpdateCmd instance.
 boolean equals(java.lang.Object aObject)
          Compare an instance of EPPResellerUpdateCmd with this instance.
 java.util.List<EPPResellerContact> getAddContacts()
          Gets the add contacts.
 EPPResellerDisclose getDisclose()
          Gets the disclose definition.
 java.lang.String getEmail()
           
 java.lang.String getFax()
           
 java.lang.String getFaxExt()
           
 java.lang.String getNamespace()
          Gets the EPP command namespace associated with EPPResellerUpdateCmd.
 java.lang.String getParentId()
          Gets the parent reseller identifier for a hierarchy of resellers.
 java.util.List<EPPResellerPostalDefinition> getPostalInfo()
          Gets the postal information for the reseller.
 java.util.List<EPPResellerContact> getRemContacts()
          Gets the remove contacts.
 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 EPPResellerUpdateCmd.
 java.lang.String getUrl()
          Gets the URL of the website of the reseller.
 java.lang.String getVoice()
           
 java.lang.String getVoiceExt()
           
 boolean hasAddContacts()
          Is there any add contacts set?
 boolean hasDisclose()
          Has the disclose been set?
 boolean hasEmail()
          Has the email been set?
 boolean hasFax()
          Has the fax been set?
 boolean hasFaxExt()
          Has the fax extension been set?
 boolean hasParentId()
          Has the parent identifier been set?
 boolean hasPostalInfo()
          Is there any postal information set?
 boolean hasRemContacts()
          Is there any remove contacts set?
 boolean hasState()
          Has the state been set?
 boolean hasUrl()
          Has the url been set?
 boolean hasVoice()
          Has the voice been set?
 boolean hasVoiceExt()
          Has the voice extension been set?
 void setAddContacts(java.util.List<EPPResellerContact> aContacts)
          Sets the add contacts.
 void setDisclose(EPPResellerDisclose aDisclose)
          Sets the disclose definition.
 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 setRemContacts(java.util.List<EPPResellerContact> aContacts)
          Sets the remove contacts.
 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.EPPUpdateCmd
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 EPPResellerUpdateCmd.

See Also:
Constant Field Values

ELM_NAME

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

See Also:
Constant Field Values
Constructor Detail

EPPResellerUpdateCmd

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


EPPResellerUpdateCmd

public EPPResellerUpdateCmd(java.lang.String aTransId)
EPPResellerUpdateCmd 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

hasState

public boolean hasState()
Has the state been set?

Returns:
true if the state has been set; false otherwise.

getState

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

Returns:
Operational state if set; null otherwise.

setState

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

Parameters:
aState - Operation state

hasParentId

public boolean hasParentId()
Has the parent identifier been set?

Returns:
true if the parent identifier has been set; false otherwise.

getParentId

public java.lang.String getParentId()
Gets the parent reseller identifier for a hierarchy of resellers.

Returns:
Parent identifier if set; null otherwise.

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.

hasVoice

public boolean hasVoice()
Has the voice been set?

Returns:
true if the voice has been set; false otherwise.

getVoice

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

setVoice

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

hasVoiceExt

public boolean hasVoiceExt()
Has the voice extension been set?

Returns:
true if the voice extension has been set; false otherwise.

getVoiceExt

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

setVoiceExt

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

hasFax

public boolean hasFax()
Has the fax been set?

Returns:
true if the fax has been set; false otherwise.

getFax

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

setFax

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

hasFaxExt

public boolean hasFaxExt()
Has the fax extension been set?

Returns:
true if the fax extension has been set; false otherwise.

getFaxExt

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

setFaxExt

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

hasEmail

public boolean hasEmail()
Has the email been set?

Returns:
true if the email has been set; false otherwise.

getEmail

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

setEmail

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

hasUrl

public boolean hasUrl()
Has the url been set?

Returns:
true if the url has been set; false otherwise.

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.

hasAddContacts

public boolean hasAddContacts()
Is there any add contacts set?

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

addAddContact

public void addAddContact(EPPResellerContact aContact)
Adds an add contact to the list of add contacts.

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

getAddContacts

public java.util.List<EPPResellerContact> getAddContacts()
Gets the add contacts.

Returns:
List of add contacts set.

setAddContacts

public void setAddContacts(java.util.List<EPPResellerContact> aContacts)
Sets the add contacts.

Parameters:
aContacts - List of add contacts

hasRemContacts

public boolean hasRemContacts()
Is there any remove contacts set?

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

addRemContact

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

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

getRemContacts

public java.util.List<EPPResellerContact> getRemContacts()
Gets the remove contacts.

Returns:
List of remove contacts set.

setRemContacts

public void setRemContacts(java.util.List<EPPResellerContact> aContacts)
Sets the remove contacts.

Parameters:
aContacts - List of remove contacts

hasDisclose

public boolean hasDisclose()
Has the disclose been set?

Returns:
true if the disclose has been set; false otherwise.

getDisclose

public EPPResellerDisclose getDisclose()
Gets the disclose definition.

Returns:
Disclose definition if defined; null other.

setDisclose

public void setDisclose(EPPResellerDisclose aDisclose)
Sets the disclose definition.

Parameters:
aDisclose - Disclose definition

doEncode

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

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

doDecode

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

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

clone

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

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

getType

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

Overrides:
getType in class EPPUpdateCmd
Returns:
EPPResellerUpdateCmd.ELM_NAME

getNamespace

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

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 EPPResellerUpdateCmd with this instance.

Overrides:
equals in class EPPUpdateCmd
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.