Package com.verisign.epp.codec.mark
Class EPPMarkAddress
java.lang.Object
com.verisign.epp.codec.mark.EPPMarkAddress
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for an address within an
EPPMarkContact.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMarkAddress.Constructor that takes all of theEPPMarkAddressattributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a street line to the contact street address.clone()CloneEPPMarkAddress.voidDecode theEPPMarkcomponentSets all this instance's data in the given XML documentbooleanimplements a deepEPPMarkAddresscompare.getCc()Gets the country code of the contact.getCity()Gets the city of the contact.Returns the XML namespace associated with theEPPCodecComponent.getPc()Gets the Postal Code of the contact.getSp()Gets the City or Province of the contact.Gets the contact's street address.voidSets the country code of the contact.voidSets the city of the contact.voidSets the Postal Code of the contact.voidSets the City or Province of the contact.voidsetStreets(List<String> aStreets) Sets the contact's street address.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the local name- See Also:
-
ELM_NAME
Constant for the tag name- See Also:
-
-
Constructor Details
-
EPPMarkAddress
public EPPMarkAddress()Default constructor forEPPMarkAddress. -
EPPMarkAddress
Constructor that takes all of theEPPMarkAddressattributes.- Parameters:
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 contact
-
-
Method Details
-
clone
CloneEPPMarkAddress.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMarkAddress - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Sets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
Decode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
implements a deepEPPMarkAddresscompare. -
getStreets
Gets the contact's street address.- Returns:
Listof street lines if set; Empty list otherwise.
-
setStreets
Sets the contact's street address. There can be update to three lines of the streets address.- Parameters:
aStreets- Zero to three street lines.
-
addStreet
Add a street line to the contact street address. This will add a street to the end of the list of street lines.- Parameters:
aStreet- A line of the contact street address.
-
getCity
Gets the city of the contact.- Returns:
- The city of the contact if set;
nullotherwise.
-
setCity
Sets the city of the contact.- Parameters:
aCity- City of the contact.
-
getSp
Gets the City or Province of the contact.- Returns:
- City or Province of the contact if set;
nullotherwise.
-
setSp
Sets the City or Province of the contact.- Parameters:
aSp- City or Province of the contact.
-
getPc
Gets the Postal Code of the contact.- Returns:
- Postal Code of the contact if set;
nullotherwise.
-
setPc
Sets the Postal Code of the contact.- Parameters:
aPc- Postal Code of the contact.
-
getCc
Gets the country code of the contact.- Returns:
- Country code of the contact if set;
nullotherwise.
-
setCc
Sets the country code of the contact.- Parameters:
aCc- Country code of the contact.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-