public class EPPValidatePostalDefinition extends java.lang.Object implements EPPCodecComponent
EPPValidatePostalDefinition include:EPPValidatePostalDefinition.Type enumeration. Use
getType() and setType(Type) to get and set the attribute.
getName() and
setName(String) to get and set the attribute.getAddress() and setAddress(EPPValidateAddress) to get and
set the attribute.| Modifier and Type | Class and Description |
|---|---|
static class |
EPPValidatePostalDefinition.Type
Localized type with one of the following values:
LOC - Localized form of data that MAY be represented in
unrestricted UTF-8.
INT - Internationalized form o data that MUST be
represented in a subset of UTF-8 that can be represented in the 7-bit
US-ASCII character set.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPOrgDisclose. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPValidatePostalDefinition. |
| Constructor and Description |
|---|
EPPValidatePostalDefinition()
EPPValidatePostalDefinition default constructor. |
EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType)
EPPValidatePostalDefinition constructor that takes the
contact postal type as an argument. |
EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType,
java.lang.String aName,
EPPValidateAddress aAddress)
EPPValidatePostalDefinition constructor that sets the
required attributes with the parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPValidatePostalDefinition. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPValidatePostalDefinition 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
EPPValidatePostalDefinition instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPValidatePostalDefinition compare. |
EPPValidateAddress |
getAddress()
Gets the contact address
|
java.lang.String |
getName()
Gets the contact name
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getOrg()
Gets the contact org
|
EPPValidatePostalDefinition.Type |
getType()
Gets the contact postal type.
|
boolean |
hasOrg()
Is the org defined?
|
void |
setAddress(EPPValidateAddress aAddress)
Sets the contact address
|
void |
setName(java.lang.String aName)
Sets the contact name.
|
void |
setOrg(java.lang.String aOrg)
Sets the contact org.
|
void |
setType(EPPValidatePostalDefinition.Type aType)
Sets the contact type.
|
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
EPPOrgDisclose.public static final java.lang.String ELM_NAME
EPPValidatePostalDefinition.public EPPValidatePostalDefinition()
EPPValidatePostalDefinition default constructor.public EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType)
EPPValidatePostalDefinition constructor that takes the
contact postal type as an argument.aType - Postal typepublic EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType, java.lang.String aName, EPPValidateAddress aAddress)
EPPValidatePostalDefinition constructor that sets the
required attributes with the parameters.aName - contact nameaType - Postal typeaAddress - contact addresspublic EPPValidatePostalDefinition.Type getType()
public void setType(EPPValidatePostalDefinition.Type aType)
aType - Contact postal typepublic java.lang.String getName()
null otherwise.public void setName(java.lang.String aName)
aName - Contact Namepublic boolean hasOrg()
true if the org is defined; false
otherwise.public java.lang.String getOrg()
null otherwise.public void setOrg(java.lang.String aOrg)
aOrg - Contact orgpublic EPPValidateAddress getAddress()
null otherwise.public void setAddress(EPPValidateAddress aAddress)
aAddress - Contact addresspublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPValidatePostalDefinition instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.ElementEPPEncodeException - On encoding errorpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPValidatePostalDefinition attributes from the
aElement DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode
EPPValidatePostalDefinition from.EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPValidatePostalDefinition compare.equals in class java.lang.ObjectaObject - EPPValidatePostalDefinition instance to compare
withtrue if the object is equal to aObject;
false otherwise.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPValidatePostalDefinition.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPValidatePostalDefinitionjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic 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 java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.