Class EPPRegistryPostal
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryPostal
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryPostal extends java.lang.Object implements EPPCodecComponent
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]
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_EMAIL_REGEXXML local name foremailRegexattribute.static java.lang.StringELM_FAX_EXTXML local name forfaxExtattribute.static java.lang.StringELM_LOC_CHAR_REGEXXML local name forlocCharRegexattribute.static java.lang.StringELM_LOCALNAMEConstant for the local namestatic java.lang.StringELM_NAMEConstant for the prefix and local namestatic java.lang.StringELM_VOICE_EXTXML local name forvoiceExtattribute.static java.lang.StringELM_VOICE_REQUIREDXML local name forvoiceRequiredattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryPostal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryPostal.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryPostalattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryPostalinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryPostalcompare.EPPRegistryContactAddressgetAddress()Gets address.EPPRegistryRegexgetEmailRegex()Get info about regular expression used to validate the contact email.EPPRegistryAbstractMinMaxgetFaxExt()Gets the optional fax extension minimum and maximum length.EPPRegistryRegexgetLocCharRegex()Gets info about locality "loc" character field regular expression.EPPRegistryContactNamegetName()Gets the minimum and maximum length of name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryContactOrggetOrg()Gets the minimum and maximum length of organization.EPPRegistryAbstractMinMaxgetVoiceExt()Gets the optional voice extension minimum and maximum length.java.lang.BooleangetVoiceRequired()Gets voice required flag.booleanhasEmailRegex()Is the email regular expression defined?booleanhasFaxExt()Is the fax extension defined?booleanhasLocCharRegex()Is the locality "loc" character field regular expression defined?booleanhasOrg()Is the organization "Org" defined?booleanhasVoiceExt()Is the voice extension defined?booleanhasVoiceRequired()Is 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.voidsetName(EPPRegistryContactName name)Sets the minimum and maximum length of name.voidsetOrg(EPPRegistryContactOrg org)Sets the minimum and maximum length of organization.voidsetVoiceExt(EPPRegistryMinMaxLength aVoiceExt)Sets the optional voice extension minimum and maximum length.voidsetVoiceRequired(java.lang.Boolean voiceRequired)Sets voice required flag.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the prefix and local name- See Also:
- Constant Field Values
-
ELM_LOC_CHAR_REGEX
public static final java.lang.String ELM_LOC_CHAR_REGEX
XML local name forlocCharRegexattribute.- See Also:
- Constant Field Values
-
ELM_VOICE_REQUIRED
public static final java.lang.String ELM_VOICE_REQUIRED
XML local name forvoiceRequiredattribute.- See Also:
- Constant Field Values
-
ELM_EMAIL_REGEX
public static final java.lang.String ELM_EMAIL_REGEX
XML local name foremailRegexattribute.- See Also:
- Constant Field Values
-
ELM_VOICE_EXT
public static final java.lang.String ELM_VOICE_EXT
XML local name forvoiceExtattribute.- See Also:
- Constant Field Values
-
ELM_FAX_EXT
public static final java.lang.String ELM_FAX_EXT
XML local name forfaxExtattribute.- 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 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryPostal.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryPostal - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryPostalcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryPostalinstance 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.
-
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
public EPPRegistryRegex 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
public void setLocCharRegex(EPPRegistryRegex aLocCharRegex)
Sets info about locality "loc" character field regular expression.- Parameters:
aLocCharRegex- instance ofEPPRegistryRegexthat specifies regular expression used for the locality "loc" fields.
-
getName
public EPPRegistryContactName getName()
Gets the minimum and maximum length of name.- Returns:
EPPRegistryContactNameinstance that contains min/max length of contact name
-
setName
public void setName(EPPRegistryContactName name)
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
public EPPRegistryContactOrg getOrg()
Gets the minimum and maximum length of organization.- Returns:
EPPRegistryContactOrginstance that contains min/max length of contact organization
-
setOrg
public void setOrg(EPPRegistryContactOrg org)
Sets the minimum and maximum length of organization.- Parameters:
org-EPPRegistryContactOrginstance that contains min/max length of contact organization
-
getAddress
public EPPRegistryContactAddress getAddress()
Gets address.- Returns:
EPPRegistryContactAddressinstance that contains contact address attributes
-
setAddress
public void setAddress(EPPRegistryContactAddress address)
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
public java.lang.Boolean getVoiceRequired()
Gets voice required flag.- Returns:
trueif voice is required.falseotherwise.
-
setVoiceRequired
public void setVoiceRequired(java.lang.Boolean voiceRequired)
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
public EPPRegistryAbstractMinMax getVoiceExt()
Gets the optional voice extension minimum and maximum length.- Returns:
EPPRegistryMinMaxLengthinstance containing the minimum and maximum length if defined;nullotherise.
-
setVoiceExt
public void setVoiceExt(EPPRegistryMinMaxLength aVoiceExt)
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
public EPPRegistryAbstractMinMax getFaxExt()
Gets the optional fax extension minimum and maximum length.- Returns:
EPPRegistryMinMaxLengthinstance containing the minimum and maximum length if defined;nullotherise.
-
setFaxExt
public void setFaxExt(EPPRegistryMinMaxLength aFaxExt)
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
public EPPRegistryRegex 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
public void setEmailRegex(EPPRegistryRegex aEmailRegex)
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
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-