Package com.verisign.epp.codec.registry
Class EPPRegistryContactAddress
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryContactAddress
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryContactAddress extends java.lang.Object implements EPPCodecComponent
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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_COUNTRY_CODEDOCUMENT ME!static java.lang.StringELM_NAMEXML Element Name ofEPPRegistryContactAddressroot element.
-
Constructor Summary
Constructors Constructor Description EPPRegistryContactAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryContactAddress.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryContactAddressattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryContactAddressinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryContactAddresscompare.EPPRegistryContactCitygetCity()Gets the contact city attributes.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryContactPostalCodegetPostalCode()Gets the contact postal code attributes.EPPRegistryContactStateProvincegetStateProvince()Gets the contact state/province attributes.EPPRegistryContactStreetgetStreet()Gets the contact street attributes.voidsetCity(EPPRegistryContactCity city)Sets 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.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryContactAddressroot element.- See Also:
- Constant Field Values
-
ELM_COUNTRY_CODE
public static final java.lang.String ELM_COUNTRY_CODE
DOCUMENT ME!- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryContactAddress.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryContactAddress - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryContactAddresscompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryContactAddressinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getCity
public EPPRegistryContactCity 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
public void setCity(EPPRegistryContactCity city)
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
public EPPRegistryContactStateProvince 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
public void setStateProvince(EPPRegistryContactStateProvince stateProvince)
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
public EPPRegistryContactPostalCode 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
public void setPostalCode(EPPRegistryContactPostalCode postalCode)
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
public EPPRegistryContactStreet 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
public void setStreet(EPPRegistryContactStreet street)
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
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-