public class EPPOrgPostalDefinition extends java.lang.Object implements EPPCodecComponent
EPPOrgPostalDefinition
include: EPPOrgPostalDefinition.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(EPPOrgAddress)
to get
and set the attribute.Modifier and Type | Class and Description |
---|---|
static class |
EPPOrgPostalDefinition.Type
Localized type with one of the following values:
LOC - Localized form of data that MAY be represented in
unrestricted UTF-8. |
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
EPPOrgPostalDefinition . |
Constructor and Description |
---|
EPPOrgPostalDefinition()
EPPOrgPostalDefinition default constructor. |
EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType)
EPPOrgPostalDefinition constructor that takes the
contact postal type as an argument. |
EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType,
java.lang.String aName,
EPPOrgAddress aAddress)
EPPOrgPostalDefinition constructor that sets the
required attributes with the parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPOrgPostalDefinition . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPOrgPostalDefinition 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
EPPOrgPostalDefinition instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPOrgPostalDefinition compare. |
EPPOrgAddress |
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 . |
EPPOrgPostalDefinition.Type |
getType()
Gets the contact postal type.
|
void |
setAddress(EPPOrgAddress aAddress)
Sets the contact address
|
void |
setName(java.lang.String aName)
Sets the contact name.
|
void |
setType(EPPOrgPostalDefinition.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
EPPOrgPostalDefinition
.public EPPOrgPostalDefinition()
EPPOrgPostalDefinition
default constructor.public EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType)
EPPOrgPostalDefinition
constructor that takes the
contact postal type as an argument.aType
- Postal typepublic EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType, java.lang.String aName, EPPOrgAddress aAddress)
EPPOrgPostalDefinition
constructor that sets the
required attributes with the parameters.aName
- contact nameaType
- Postal typeaAddress
- contact addresspublic EPPOrgPostalDefinition.Type getType()
public void setType(EPPOrgPostalDefinition.Type aType)
aType
- Contact postal typepublic java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- Contact Namepublic EPPOrgAddress getAddress()
null
otherwise.public void setAddress(EPPOrgAddress aAddress)
aAddress
- Contact addresspublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPOrgPostalDefinition
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.Element
EPPEncodeException
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPOrgPostalDefinition
attributes from the
aElement DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode
EPPOrgPostalDefinition
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPOrgPostalDefinition
compare.equals
in class java.lang.Object
aObject
- EPPOrgPostalDefinition
instance to compare
withtrue
if the object is equal to aObject
;
false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPOrgPostalDefinition
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPOrgPostalDefinition
java.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.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.Copyright © VeriSign Inc. All Rights Reserved.