Package com.verisign.epp.codec.registry
Class EPPRegistryContactAddress
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryContactAddress
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents the address information policy information. The
<registry:address> element contains the following child elements:
- <registry:street> - The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
- <registry:city> - The minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:sp> - The minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:pc> - The minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryContactAddress.voidDecode theEPPRegistryContactAddressattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryContactAddressinstance.booleanimplements a deepEPPRegistryContactAddresscompare.getCity()Gets the contact city attributes.Returns the XML namespace associated with theEPPCodecComponent.Gets the contact postal code attributes.Gets the contact state/province attributes.Gets the contact street attributes.voidSets the contact city attributes.voidsetPostalCode(EPPRegistryContactPostalCode postalCode) Sets the contact postal code attributes.voidsetStateProvince(EPPRegistryContactStateProvince stateProvince) Sets the contact state/province attributes.voidsetStreet(EPPRegistryContactStreet street) Sets the contact street attributes.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryContactAddressroot element.- See Also:
-
ELM_COUNTRY_CODE
DOCUMENT ME!- See Also:
-
-
Constructor Details
-
EPPRegistryContactAddress
public EPPRegistryContactAddress()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryContactAddressinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryContactAddressinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryContactAddressinstance.
-
decode
Decode theEPPRegistryContactAddressattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryContactAddressfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryContactAddress.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryContactAddress - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryContactAddresscompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getCity
Gets the contact city attributes.- Returns:
- instance of
EPPRegistryContactCitythat specifies the minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
setCity
Sets the contact city attributes.- Parameters:
city- instance ofEPPRegistryContactCitythat specifies the minimum and maximum length of the <contact:city> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
getStateProvince
Gets the contact state/province attributes.- Returns:
- instance of
EPPRegistryContactStateProvincethat specifies the minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
setStateProvince
Sets the contact state/province attributes.- Parameters:
stateProvince- instance ofEPPRegistryContactStateProvincethat specifies the minimum and maximum length of the <contact:sp> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
getPostalCode
Gets the contact postal code attributes.- Returns:
- instance of
EPPRegistryContactPostalCodethat specifies the minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
setPostalCode
Sets the contact postal code attributes.- Parameters:
postalCode- instance ofEPPRegistryContactPostalCodethat specifies the minimum and maximum length of the <contact:pc> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively
-
getStreet
Gets the contact street attributes.- Returns:
- instance of
EPPRegistryContactStreetthat specifies the The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
-
setStreet
Sets the contact street attributes.- Parameters:
street- instance ofEPPRegistryContactStreetthat specifies the The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in RFC 5733
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-