public class EPPRegistryContactAddress extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the
EPPRegistryContactAddress local name |
static java.lang.String |
ELM_NAME
Constant for the
EPPRegistryContactAddress (prefix and local name) |
| Constructor and Description |
|---|
EPPRegistryContactAddress() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryContactAddress. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryContactAddress 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
EPPRegistryContactAddress instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryContactAddress compare. |
EPPRegistryContactCity |
getCity()
Gets the contact city attributes.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPRegistryContactPostalCode |
getPostalCode()
Gets the contact postal code attributes.
|
EPPRegistryContactStateProvince |
getStateProvince()
Gets the contact state/province attributes.
|
EPPRegistryContactStreet |
getStreet()
Gets the contact street attributes.
|
void |
setCity(EPPRegistryContactCity city)
Sets the contact city attributes.
|
void |
setPostalCode(EPPRegistryContactPostalCode postalCode)
Sets the contact postal code attributes.
|
void |
setStateProvince(EPPRegistryContactStateProvince stateProvince)
Sets the contact state/province attributes.
|
void |
setStreet(EPPRegistryContactStreet street)
Sets the contact street attributes.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryContactAddress local namepublic static final java.lang.String ELM_NAME
EPPRegistryContactAddress (prefix and local name)public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryContactAddress instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryContactAddress instance.EPPEncodeException - - Unable to encode EPPRegistryContactAddress
instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryContactAddress attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryContactAddress
from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryContactAddress.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryContactAddressjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryContactAddress compare.equals in class java.lang.ObjectaObject - EPPRegistryContactAddress instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public EPPRegistryContactCity getCity()
EPPRegistryContactCity that specifies the
minimum and maximum length of the <contact:city> element
defined in RFC 5733 using the <registry:minLength> and
<registry:maxLength> child elements, respectivelypublic void setCity(EPPRegistryContactCity city)
city - instance of EPPRegistryContactCity that specifies the
minimum and maximum length of the <contact:city> element
defined in RFC 5733 using the <registry:minLength> and
<registry:maxLength> child elements, respectivelypublic EPPRegistryContactStateProvince getStateProvince()
EPPRegistryContactStateProvince that specifies
the minimum and maximum length of the <contact:sp> element
defined in RFC 5733 using the <registry:minLength> and
<registry:maxLength> child elements, respectivelypublic void setStateProvince(EPPRegistryContactStateProvince stateProvince)
stateProvince - instance of EPPRegistryContactStateProvince that
specifies the minimum and maximum length of the
<contact:sp> element defined in RFC 5733 using the
<registry:minLength> and <registry:maxLength> child
elements, respectivelypublic EPPRegistryContactPostalCode getPostalCode()
EPPRegistryContactPostalCode that specifies
the minimum and maximum length of the <contact:pc> element
defined in RFC 5733 using the <registry:minLength> and
<registry:maxLength> child elements, respectivelypublic void setPostalCode(EPPRegistryContactPostalCode postalCode)
postalCode - instance of EPPRegistryContactPostalCode that specifies
the minimum and maximum length of the <contact:pc> element
defined in RFC 5733 using the <registry:minLength> and
<registry:maxLength> child elements, respectivelypublic EPPRegistryContactStreet getStreet()
EPPRegistryContactStreet that specifies the
The minimum and maximum length and the minimum and maximum number
of the <contact:street> elements defined in RFC 5733public void setStreet(EPPRegistryContactStreet street)
street - instance of EPPRegistryContactStreet that specifies the
The minimum and maximum length and the minimum and maximum
number of the <contact:street> elements defined in RFC
5733public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.