Class EPPRegistryPostal
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryPostal
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents the postal-address information policy information. The
<registry:postalInfo> element contains the following child elements:
- <registry:locCharRegex> - The OPTIONAL regular expression that represents the character set that can be used for the <contact:postalInfo> localized form (type="loc") element content. The regular expression MUST be applicable to all <contact:postalInfo> element content.
- <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> - An OPTIONAL <registry:emailRegex> element that defines the regular expression used to validate the <contact:email> element defined in [RFC5733]
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name foremailRegexattribute.static final StringXML local name forfaxExtattribute.static final StringXML local name forlocCharRegexattribute.static final StringConstant for the local namestatic final StringConstant for the prefix and local namestatic final StringXML local name forvoiceExtattribute.static final StringXML local name forvoiceRequiredattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryPostal.voidDecode theEPPRegistryPostalattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryPostalinstance.booleanimplements a deepEPPRegistryPostalcompare.Gets address.Get info about regular expression used to validate the contact email.Gets the optional fax extension minimum and maximum length.Gets info about locality "loc" character field regular expression.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.booleanIs the email regular expression defined?booleanIs the fax extension defined?booleanIs the locality "loc" character field regular expression defined?booleanhasOrg()Is the organization "Org" defined?booleanIs the voice extension defined?booleanIs the voice required flag defined?voidsetAddress(EPPRegistryContactAddress address) Sets address.voidsetEmailRegex(EPPRegistryRegex aEmailRegex) Set info about regular expression used to validate the contact email.voidsetFaxExt(EPPRegistryMinMaxLength aFaxExt) Sets the optional fax extension minimum and maximum length.voidsetLocCharRegex(EPPRegistryRegex aLocCharRegex) Sets info about locality "loc" character field regular expression.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_LOC_CHAR_REGEX
XML local name forlocCharRegexattribute.- See Also:
-
ELM_VOICE_REQUIRED
XML local name forvoiceRequiredattribute.- See Also:
-
ELM_EMAIL_REGEX
XML local name foremailRegexattribute.- See Also:
-
ELM_VOICE_EXT
XML local name forvoiceExtattribute.- See Also:
-
ELM_FAX_EXT
XML local name forfaxExtattribute.- 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. -
hasLocCharRegex
public boolean hasLocCharRegex()Is the locality "loc" character field regular expression defined?- Returns:
trueif the locality character field regular expression is defined;falseotherwise.
-
getLocCharRegex
Gets info about locality "loc" character field regular expression.- Returns:
- instance of
EPPRegistryRegexthat specifies regular expression used for the locality "loc" fields if defined;nullotherwise.
-
setLocCharRegex
Sets info about locality "loc" character field regular expression.- Parameters:
aLocCharRegex- instance ofEPPRegistryRegexthat specifies regular expression used for the locality "loc" fields.
-
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
-
hasOrg
public boolean hasOrg()Is the organization "Org" defined?- Returns:
trueif the organization "Org" is defined;falseotherwise.
-
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
-
hasVoiceRequired
public boolean hasVoiceRequired()Is the voice required flag defined?- Returns:
trueif the voice required flag is defined;falseotherwise.
-
getVoiceRequired
Gets voice required flag.- Returns:
trueif voice is required.falseotherwise.
-
setVoiceRequired
Sets voice required flag.- Parameters:
voiceRequired-trueif voice is required.falseotherwise.
-
hasVoiceExt
public boolean hasVoiceExt()Is the voice extension defined?- Returns:
trueif the voice extension is defined;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.
-
hasFaxExt
public boolean hasFaxExt()Is the fax extension defined?- Returns:
trueif the fax extension is defined;falseotherwise.
-
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.
-
hasEmailRegex
public boolean hasEmailRegex()Is the email regular expression defined?- Returns:
trueif the email regular expression is defined;falseotherwise.
-
getEmailRegex
Get info about regular expression used to validate the contact email.- Returns:
- instance of
EPPRegistryRegexthat specifies regular expression used to validate the email if defined;nullotherwise.
-
setEmailRegex
Set info about regular expression used to validate the contact email.- Parameters:
aEmailRegex- instance ofEPPRegistryRegexthat specifies regular expression used to validate the contact email.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-