public class EPPRegistryPostal extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_EMAIL_REGEX |
static java.lang.String |
ELM_FAX_EXT
Constant for the faxExt local name
|
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
Constant for the voiceExt local name
|
static java.lang.String |
ELM_VOICE_REQUIRED |
Constructor and Description |
---|
EPPRegistryPostal() |
Modifier and Type | Method and Description |
---|---|
void |
addEmailRegex(EPPRegistryRegex re)
Adds one email regular expression to an existing list.
|
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.
|
java.util.List |
getEmailRegex()
Gets email regular expression.
|
EPPRegistryMinMaxLength |
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.
|
EPPRegistryMinMaxLength |
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(java.util.List emailRegex)
Sets email regular expression.
|
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
public static final java.lang.String ELM_EMAIL_REGEX
public static final java.lang.String ELM_VOICE_EXT
public static final java.lang.String ELM_FAX_EXT
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryPostal
instance.encode
in interface EPPCodecComponent
aDocument
- 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 EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryPostal
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryPostal
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryPostal
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryPostal
compare.equals
in class java.lang.Object
aObject
- 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.Object
String
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 EPPRegistryMinMaxLength 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 EPPRegistryMinMaxLength 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 java.util.List getEmailRegex()
public void addEmailRegex(EPPRegistryRegex re)
re
- regular expression used to validate <contact:email>
element defined in RFC 5733public void setEmailRegex(java.util.List emailRegex)
emailRegex
- regular expression used to validate <contact:email>
element defined in RFC 5733public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.