Package com.verisign.epp.codec.registry
Class EPPRegistryPostal
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryPostal
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents the postal-address information policy information. The
<registry:postalInfo> element contains the following child elements:
- <registry:name> - The minimum and maximum length of <contact:name> element defined RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:org> - The minimum and maximum length of the <contact:org> element defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:address> - The address information policy information.
- <registry:voiceRequired> - An OPTIONAL boolean flag indicating whether the server requires the <contact:voice> element to be defined, with a default value of "false".
- <registry:voiceExt> - The OPTIONAL minimum and maximum length of the <contact:voice> extension "x" attribute defined in RFC 5733 using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:faxExt> - The OPTIONAL minimum and maximum length of the <contact:fax> extension "x" attribute defined in RFC 5733 [RFC5733] using the <registry:minLength> and <registry:maxLength> child elements, respectively.
- <registry:emailRegex> - Zero or more <registry:emailRegex> elements that define the regular expressions used to validate the <contact:email> element defined in RFC 5733
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds one email regular expression to an existing list.clone()CloneEPPRegistryPostal.voidDecode theEPPRegistryPostalattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryPostalinstance.booleanimplements a deepEPPRegistryPostalcompare.Gets address.Gets email regular expression.Gets the optional fax extension minimum and maximum length.getName()Gets the minimum and maximum length of name.Returns the XML namespace associated with theEPPCodecComponent.getOrg()Gets the minimum and maximum length of organization.Gets the optional voice extension minimum and maximum length.Gets voice required flag.voidsetAddress(EPPRegistryContactAddress address) Sets address.voidsetEmailRegex(List emailRegex) Sets email regular expression.voidsetFaxExt(EPPRegistryMinMaxLength aFaxExt) Sets the optional fax extension minimum and maximum length.voidSets the minimum and maximum length of name.voidSets the minimum and maximum length of organization.voidsetVoiceExt(EPPRegistryMinMaxLength aVoiceExt) Sets the optional voice extension minimum and maximum length.voidsetVoiceRequired(Boolean voiceRequired) Sets voice required flag.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 prefix and local name- See Also:
-
ELM_VOICE_REQUIRED
- See Also:
-
ELM_EMAIL_REGEX
- See Also:
-
ELM_VOICE_EXT
Constant for the voiceExt local name- See Also:
-
ELM_FAX_EXT
Constant for the faxExt local name- See Also:
-
-
Constructor Details
-
EPPRegistryPostal
public EPPRegistryPostal()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryPostalinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryPostalinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryPostalinstance.
-
decode
Decode theEPPRegistryPostalattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryPostalfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryPostal.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryPostal - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryPostalcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Gets the minimum and maximum length of name.- Returns:
EPPRegistryContactNameinstance that contains min/max length of contact name
-
setName
Sets the minimum and maximum length of name.- Parameters:
name-EPPRegistryContactNameinstance that contains min/max length of contact name
-
getOrg
Gets the minimum and maximum length of organization.- Returns:
EPPRegistryContactOrginstance that contains min/max length of contact organization
-
setOrg
Sets the minimum and maximum length of organization.- Parameters:
org-EPPRegistryContactOrginstance that contains min/max length of contact organization
-
getAddress
Gets address.- Returns:
EPPRegistryContactAddressinstance that contains contact address attributes
-
setAddress
Sets address.- Parameters:
address-EPPRegistryContactAddressinstance that contains contact address attributes
-
getVoiceRequired
Gets voice required flag.- Returns:
trueif voice is required.falseotherwise.
-
setVoiceRequired
Sets voice required flag.- Parameters:
voiceRequired-trueif voice is required.falseotherwise.
-
getVoiceExt
Gets the optional voice extension minimum and maximum length.- Returns:
EPPRegistryMinMaxLengthinstance containing the minimum and maximum length if defined;nullotherise.
-
setVoiceExt
Sets the optional voice extension minimum and maximum length.- Parameters:
aVoiceExt-EPPRegistryMinMaxLengthinstance containing the minimum and maximum length.
-
getFaxExt
Gets the optional fax extension minimum and maximum length.- Returns:
EPPRegistryMinMaxLengthinstance containing the minimum and maximum length if defined;nullotherise.
-
setFaxExt
Sets the optional fax extension minimum and maximum length.- Parameters:
aFaxExt-EPPRegistryMinMaxLengthinstance containing the minimum and maximum length.
-
getEmailRegex
Gets email regular expression.- Returns:
- regular expression used to validate <contact:email> element defined in RFC 5733
-
addEmailRegex
Adds one email regular expression to an existing list.- Parameters:
re- regular expression used to validate <contact:email> element defined in RFC 5733
-
setEmailRegex
Sets email regular expression.- Parameters:
emailRegex- regular expression used to validate <contact:email> element defined in RFC 5733
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-