public class EPPRegistryPostal extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_EMAIL_REGEX
XML local name for
emailRegex attribute. |
static java.lang.String |
ELM_FAX_EXT
XML local name for
faxExt attribute. |
static java.lang.String |
ELM_LOCALNAME
Constant for the local name
|
static java.lang.String |
ELM_NAME
Constant for the prefix and local name
|
static java.lang.String |
ELM_VOICE_EXT
XML local name for
voiceExt attribute. |
static java.lang.String |
ELM_VOICE_REQUIRED
XML local name for
voiceRequired attribute. |
| Constructor and Description |
|---|
EPPRegistryPostal() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryPostal. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryPostal 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 the
EPPRegistryPostal instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryPostal compare. |
EPPRegistryContactAddress |
getAddress()
Gets address.
|
EPPRegistryRegex |
getEmailRegex()
Get info about regular expression used to validate the contact email.
|
EPPRegistryAbstractMinMax |
getFaxExt()
Gets the optional fax extension minimum and maximum length.
|
EPPRegistryContactName |
getName()
Gets the minimum and maximum length of name.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPRegistryContactOrg |
getOrg()
Gets the minimum and maximum length of organization.
|
EPPRegistryAbstractMinMax |
getVoiceExt()
Gets the optional voice extension minimum and maximum length.
|
java.lang.Boolean |
getVoiceRequired()
Gets voice required flag.
|
void |
setAddress(EPPRegistryContactAddress address)
Sets address.
|
void |
setEmailRegex(EPPRegistryRegex aEmailRegex)
Set info about regular expression used to validate the contact email.
|
void |
setFaxExt(EPPRegistryMinMaxLength aFaxExt)
Sets the optional fax extension minimum and maximum length.
|
void |
setName(EPPRegistryContactName name)
Sets the minimum and maximum length of name.
|
void |
setOrg(EPPRegistryContactOrg org)
Sets the minimum and maximum length of organization.
|
void |
setVoiceExt(EPPRegistryMinMaxLength aVoiceExt)
Sets the optional voice extension minimum and maximum length.
|
void |
setVoiceRequired(java.lang.Boolean voiceRequired)
Sets voice required flag.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public static final java.lang.String ELM_VOICE_REQUIRED
voiceRequired attribute.public static final java.lang.String ELM_EMAIL_REGEX
emailRegex attribute.public static final java.lang.String ELM_VOICE_EXT
voiceExt attribute.public static final java.lang.String ELM_FAX_EXT
faxExt attribute.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryPostal instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryPostal instance.EPPEncodeException - - Unable to encode EPPRegistryPostal instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryPostal attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryPostal from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryPostal.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryPostaljava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryPostal compare.equals in class java.lang.ObjectaObject - EPPRegistryPostal instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public EPPRegistryContactName getName()
EPPRegistryContactName instance that contains min/max
length of contact namepublic void setName(EPPRegistryContactName name)
name - EPPRegistryContactName instance that contains min/max
length of contact namepublic EPPRegistryContactOrg getOrg()
EPPRegistryContactOrg instance that contains min/max
length of contact organizationpublic void setOrg(EPPRegistryContactOrg org)
org - EPPRegistryContactOrg instance that contains min/max
length of contact organizationpublic EPPRegistryContactAddress getAddress()
EPPRegistryContactAddress instance that contains contact
address attributespublic void setAddress(EPPRegistryContactAddress address)
address - EPPRegistryContactAddress instance that contains contact
address attributespublic java.lang.Boolean getVoiceRequired()
true if voice is required. false otherwise.public void setVoiceRequired(java.lang.Boolean voiceRequired)
voiceRequired - true if voice is required. false otherwise.public EPPRegistryAbstractMinMax getVoiceExt()
EPPRegistryMinMaxLength instance containing the
minimum and maximum length if defined; null otherise.public void setVoiceExt(EPPRegistryMinMaxLength aVoiceExt)
aVoiceExt - EPPRegistryMinMaxLength instance containing the
minimum and maximum length.public EPPRegistryAbstractMinMax getFaxExt()
EPPRegistryMinMaxLength instance containing the
minimum and maximum length if defined; null otherise.public void setFaxExt(EPPRegistryMinMaxLength aFaxExt)
aFaxExt - EPPRegistryMinMaxLength instance containing the
minimum and maximum length.public EPPRegistryRegex getEmailRegex()
EPPRegistryRegex that specifies regular
expression used to validate the email if defined; null
otherwise.public void setEmailRegex(EPPRegistryRegex aEmailRegex)
aEmailRegex - instance of EPPRegistryRegex that specifies regular
expression used to validate the contact email.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.