com.verisign.epp.codec.reseller
Class EPPResellerPostalDefinition

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

public class EPPResellerPostalDefinition
extends java.lang.Object
implements EPPCodecComponent

Represents a reseller postal address definition. The child elements associated with an EPPResellerPostalDefinition include:

See Also:
Serialized Form

Nested Class Summary
static class EPPResellerPostalDefinition.Type
          Localized type with one of the following values:
LOC - Localized form of data that MAY be represented in unrestricted UTF-8.
 
Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerDisclose.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerPostalDefinition.
 
Constructor Summary
EPPResellerPostalDefinition()
          EPPResellerPostalDefinition default constructor.
EPPResellerPostalDefinition(EPPResellerPostalDefinition.Type aType)
          EPPResellerPostalDefinition constructor that takes the contact postal type as an argument.
EPPResellerPostalDefinition(EPPResellerPostalDefinition.Type aType, java.lang.String aName, EPPResellerAddress aAddress)
          EPPResellerPostalDefinition constructor that sets the required attributes with the parameters.
 
Method Summary
 java.lang.Object clone()
          Clone EPPResellerPostalDefinition.
 void decode(org.w3c.dom.Element aElement)
          Decode the EPPResellerPostalDefinition 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 EPPResellerPostalDefinition instance.
 boolean equals(java.lang.Object aObject)
          implements a deep EPPResellerPostalDefinition compare.
 EPPResellerAddress getAddress()
          Gets the contact address
 java.lang.String getName()
          Gets the contact name
 EPPResellerPostalDefinition.Type getType()
          Gets the contact postal type.
 void setAddress(EPPResellerAddress aAddress)
          Sets the contact address
 void setName(java.lang.String aName)
          Sets the contact name.
 void setType(EPPResellerPostalDefinition.Type aType)
          Sets the contact type.
 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 EPPResellerDisclose.

See Also:
Constant Field Values

ELM_NAME

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

See Also:
Constant Field Values
Constructor Detail

EPPResellerPostalDefinition

public EPPResellerPostalDefinition()
EPPResellerPostalDefinition default constructor.


EPPResellerPostalDefinition

public EPPResellerPostalDefinition(EPPResellerPostalDefinition.Type aType)
EPPResellerPostalDefinition constructor that takes the contact postal type as an argument.

Parameters:
aType - Postal type

EPPResellerPostalDefinition

public EPPResellerPostalDefinition(EPPResellerPostalDefinition.Type aType,
                                   java.lang.String aName,
                                   EPPResellerAddress aAddress)
EPPResellerPostalDefinition constructor that sets the required attributes with the parameters.

Parameters:
aName - contact name
aType - Postal type
aAddress - contact address
Method Detail

getType

public EPPResellerPostalDefinition.Type getType()
Gets the contact postal type.

Returns:
Contact postal type

setType

public void setType(EPPResellerPostalDefinition.Type aType)
Sets the contact type.

Parameters:
aType - Contact postal type

getName

public java.lang.String getName()
Gets the contact name

Returns:
Contact Name if defined; null otherwise.

setName

public void setName(java.lang.String aName)
Sets the contact name.

Parameters:
aName - Contact Name

getAddress

public EPPResellerAddress getAddress()
Gets the contact address

Returns:
Contact address if defined; null otherwise.

setAddress

public void setAddress(EPPResellerAddress aAddress)
Sets the contact address

Parameters:
aAddress - Contact address

encode

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

Specified by:
encode in interface EPPCodecComponent
Parameters:
aDocument - DOM Document that is being built. Used as an Element factory.
Returns:
Encoded DOM Element
Throws:
EPPEncodeException

decode

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

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

equals

public boolean equals(java.lang.Object aObject)
implements a deep EPPResellerPostalDefinition compare.

Overrides:
equals in class java.lang.Object
Parameters:
aObject - EPPResellerPostalDefinition instance to compare with
Returns:
true if the object is equal to aObject; false otherwise.

clone

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

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

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.