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.String
ELM_COUNTRY_CODE
DOCUMENT ME!static java.lang.String
ELM_NAME
XML Element Name ofEPPRegistryContactAddress
root element.
-
Constructor Summary
Constructors Constructor Description EPPRegistryContactAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRegistryContactAddress
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryContactAddress
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 theEPPRegistryContactAddress
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryContactAddress
compare.EPPRegistryContactCity
getCity()
Gets the contact city attributes.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.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 ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryContactAddress
root 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 EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryContactAddress
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryContactAddress
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryContactAddress
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryContactAddress
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryContactAddress
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryContactAddress
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 deepEPPRegistryContactAddress
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistryContactAddress
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getCity
public EPPRegistryContactCity getCity()
Gets the contact city attributes.- Returns:
- 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, respectively
-
setCity
public void setCity(EPPRegistryContactCity city)
Sets the contact city attributes.- Parameters:
city
- instance ofEPPRegistryContactCity
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, respectively
-
getStateProvince
public EPPRegistryContactStateProvince getStateProvince()
Gets the contact state/province attributes.- Returns:
- 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, respectively
-
setStateProvince
public void setStateProvince(EPPRegistryContactStateProvince stateProvince)
Sets the contact state/province attributes.- Parameters:
stateProvince
- instance ofEPPRegistryContactStateProvince
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, respectively
-
getPostalCode
public EPPRegistryContactPostalCode getPostalCode()
Gets the contact postal code attributes.- Returns:
- 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, respectively
-
setPostalCode
public void setPostalCode(EPPRegistryContactPostalCode postalCode)
Sets the contact postal code attributes.- Parameters:
postalCode
- instance ofEPPRegistryContactPostalCode
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, respectively
-
getStreet
public EPPRegistryContactStreet getStreet()
Gets the contact street attributes.- Returns:
- 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 5733
-
setStreet
public void setStreet(EPPRegistryContactStreet street)
Sets the contact street attributes.- Parameters:
street
- instance ofEPPRegistryContactStreet
that 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:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-