com.verisign.epp.codec.resellerext
Class EPPResellerExtInfData

java.lang.Object
  extended by com.verisign.epp.codec.resellerext.EPPResellerExtInfData
All Implemented Interfaces:
EPPCodecComponent, java.io.Serializable, java.lang.Cloneable

public class EPPResellerExtInfData
extends java.lang.Object
implements EPPCodecComponent

Reseller Extension to the info response to return the reseller identifier and optionally the reseller name.

See Also:
EPPResellerInfoResp, Serialized Form

Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerInfoResp.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerInfoResp.
 
Constructor Summary
EPPResellerExtInfData()
          EPPResellerInfoResp default constructor.
EPPResellerExtInfData(java.lang.String aResellerId)
          EPPResellerInfoResp constructor that takes the the required reseller identifier.
EPPResellerExtInfData(java.lang.String aResellerId, java.lang.String aResellerName)
          EPPResellerInfoResp constructor that takes the the required reseller identifier and the optional reseller name.
 
Method Summary
 java.lang.Object clone()
          Clone EPPResellerInfoResp.
 void decode(org.w3c.dom.Element aElement)
          Decode the EPPResellerInfoResp attributes from the aElement DOM Element tree.
 org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
          Encode a DOM Element tree from the attributes of the EPPResellerExtInfoResp instance.
 boolean equals(java.lang.Object aObject)
          Compare an instance of EPPResellerInfoResp with this instance.
 java.lang.String getNamespace()
          Gets the EPP command namespace associated with EPPResellerInfoResp.
 java.lang.String getResellerId()
          Gets the reseller identifier.
 java.lang.String getResellerName()
          Gets the OPTIONAL reseller name.
 java.lang.String getType()
          Gets the EPP response type associated with EPPResellerInfoResp.
 boolean hasResellerName()
          Is the reseller name defined?
 void setResellerId(java.lang.String aResellerId)
          Sets the reseller identifier.
 void setResellerName(java.lang.String aResellerName)
          Sets the OPTIONAL reseller name.
 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 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 EPPResellerInfoResp.

See Also:
Constant Field Values

ELM_NAME

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

See Also:
Constant Field Values
Constructor Detail

EPPResellerExtInfData

public EPPResellerExtInfData()
EPPResellerInfoResp default constructor.


EPPResellerExtInfData

public EPPResellerExtInfData(java.lang.String aResellerId)
EPPResellerInfoResp constructor that takes the the required reseller identifier.

Parameters:
aResellerId - Reseller identifier.

EPPResellerExtInfData

public EPPResellerExtInfData(java.lang.String aResellerId,
                             java.lang.String aResellerName)
EPPResellerInfoResp constructor that takes the the required reseller identifier and the optional reseller name.

Parameters:
aResellerId - Reseller identifier.
aResellerName - Reseller name
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

hasResellerName

public boolean hasResellerName()
Is the reseller name defined?

Returns:
true if the reseller name is defined; false otherwise.

getResellerName

public java.lang.String getResellerName()
Gets the OPTIONAL reseller name.

Returns:
The reseller identifier if defined;null otherwise.

setResellerName

public void setResellerName(java.lang.String aResellerName)
Sets the OPTIONAL reseller name.

Parameters:
aResellerName - The reseller name

encode

public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
                           throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPResellerExtInfoResp instance.

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

decode

public void decode(org.w3c.dom.Element aElement)
            throws EPPDecodeException
Decode the EPPResellerInfoResp attributes from the aElement DOM Element tree.

Specified by:
decode in interface EPPCodecComponent
Parameters:
aElement - Root DOM Element to decode EPPResellerInfoResp from.
Throws:
EPPDecodeException - Unable to decode aElement

clone

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

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

getType

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

Returns:
EPPResellerInfoResp.ELM_NAME

getNamespace

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

Returns:
EPPResellerExtFactory.NS

equals

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

Overrides:
equals in class java.lang.Object
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 java.lang.Object
Returns:
Indented XML String if successful; ERROR otherwise.


Copyright © VeriSign Inc. All Rights Reserved.