public class EPPMarkAddress extends java.lang.Object implements EPPCodecComponent
EPPMarkContact.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the local name
|
static java.lang.String |
ELM_NAME
Constant for the tag name
|
| Constructor and Description |
|---|
EPPMarkAddress()
Default constructor for
EPPMarkAddress. |
EPPMarkAddress(java.util.List<java.lang.String> aStreets,
java.lang.String aCity,
java.lang.String aSp,
java.lang.String aPc,
java.lang.String aCc)
Constructor that takes all of the
EPPMarkAddress
attributes. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStreet(java.lang.String aStreet)
Add a street line to the contact street address.
|
java.lang.Object |
clone()
Clone
EPPMarkAddress. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPMark component |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPMarkAddress compare. |
java.lang.String |
getCc()
Gets the country code of the contact.
|
java.lang.String |
getCity()
Gets the city of the contact.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getPc()
Gets the Postal Code of the contact.
|
java.lang.String |
getSp()
Gets the City or Province of the contact.
|
java.util.List<java.lang.String> |
getStreets()
Gets the contact's street address.
|
void |
setCc(java.lang.String aCc)
Sets the country code of the contact.
|
void |
setCity(java.lang.String aCity)
Sets the city of the contact.
|
void |
setPc(java.lang.String aPc)
Sets the Postal Code of the contact.
|
void |
setSp(java.lang.String aSp)
Sets the City or Province of the contact.
|
void |
setStreets(java.util.List<java.lang.String> aStreets)
Sets the contact's street address.
|
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
public static final java.lang.String ELM_NAME
public EPPMarkAddress()
EPPMarkAddress.public EPPMarkAddress(java.util.List<java.lang.String> aStreets,
java.lang.String aCity,
java.lang.String aSp,
java.lang.String aPc,
java.lang.String aCc)
EPPMarkAddress
attributes.aStreets - Streets of the contact.aCity - City of the contactaSp - State or Province of the contactaPc - Postal Code of the contactaCc - Country code of the contactpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPMarkAddress.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPMarkAddressjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - a DOM Document to attach data to.EPPEncodeException - Thrown if any errors prevent encoding.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPMark componentdecode in interface EPPCodecComponentaElement - Root element of the EPPMarkEPPDecodeException - Error decoding the EPPMarkpublic boolean equals(java.lang.Object aObject)
EPPMarkAddress compare.equals in class java.lang.ObjectaObject - EPPMarkAddress instance to compare withpublic java.util.List<java.lang.String> getStreets()
List of street lines if set; Empty list otherwise.public void setStreets(java.util.List<java.lang.String> aStreets)
aStreets - Zero to three street lines.public void addStreet(java.lang.String aStreet)
aStreet - A line of the contact street address.public java.lang.String getCity()
null otherwise.public void setCity(java.lang.String aCity)
aCity - City of the contact.public java.lang.String getSp()
null otherwise.public void setSp(java.lang.String aSp)
aSp - City or Province of the contact.public java.lang.String getPc()
null otherwise.public void setPc(java.lang.String aPc)
aPc - Postal Code of the contact.public java.lang.String getCc()
null otherwise.public void setCc(java.lang.String aCc)
aCc - Country code of the contact.public 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 java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.