public class EPPContactPostalDefinition extends java.lang.Object implements EPPCodecComponent
EPPContactCreateCmd,
EPPContactUpdateCmd, and EPPContactInfoResp. The child elements associated with an
EPPContactPostalDefinition include: getName and setName to get and set the element.getOrg and setOrg to get and set the element.getAddress and setAdress to get and set the element.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_TYPE_INT
Value of the INT in contact postal info type mapping
|
static java.lang.String |
ATTR_TYPE_LOC
Value of the LOC in contact postal info type mapping
|
static java.lang.String |
ELM_NAME_POSTAL_INFO
XML tag name for the
org attribute. |
| Constructor and Description |
|---|
EPPContactPostalDefinition()
EPPContactPostalDefinition default constructor. |
EPPContactPostalDefinition(java.lang.String aType)
EPPContactPostalDefinition constructor that takes the contact address type as argument. |
EPPContactPostalDefinition(java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets the required attributes with the parameters. |
EPPContactPostalDefinition(java.lang.String aName,
java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets the required attributes with the parameters. |
EPPContactPostalDefinition(java.lang.String aName,
java.lang.String aOrg,
java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets all of the attribute with the parameter values. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPContactPostalDefinition. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPContactPostalDefinition 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
EPPContactPostalDefinition instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPContactPostalDefinition compare. |
EPPContactAddress |
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 organization
|
java.lang.String |
getRootName()
Get root tag name for contact postal definition.
|
java.lang.String |
getType()
Get contact address type.
|
boolean |
hasAddress()
Returns
true if the postal info defintion has address. |
boolean |
hasName()
Returns
true if the postal info definition has name. |
boolean |
hasOrg()
Returns
true if the postal info definition has organization. |
boolean |
hasRootName()
Returns
true if the postal info definition has root name. |
boolean |
hasType()
Returns
true if the postal info definition has type. |
boolean |
isValidated()
Show whether needs to call validateState()
|
void |
setAddress(EPPContactAddress aAddress)
Sets the contact address
|
void |
setName(java.lang.String aName)
Sets the contact name.
|
void |
setOrg(java.lang.String aOrg)
Sets the contact organization
|
void |
setRootName(java.lang.String newRootName)
Set root tag name for contact postal definition.
|
void |
setType(java.lang.String newType)
Set contact type.
|
void |
setValidatedFlag(boolean newValidatedFlag)
Set validated 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_NAME_POSTAL_INFO
org attribute.public static final java.lang.String ATTR_TYPE_LOC
public static final java.lang.String ATTR_TYPE_INT
public EPPContactPostalDefinition()
EPPContactPostalDefinition default constructor. Must call required setter methods before invoking
encode, which include:setIdsetNamesetTypesetAddresssetVoicesetEmailsetOrgsetFaxpublic EPPContactPostalDefinition(java.lang.String aType)
EPPContactPostalDefinition constructor that takes the contact address type as argument.aType - address type which should be one of the ATTR_TYPE constants.public EPPContactPostalDefinition(java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets the required attributes with the parameters. The
following optional attribute can be set:setOrgsetFaxsetNameaType - postal definition type loc or intaAddress - contact addresspublic EPPContactPostalDefinition(java.lang.String aName,
java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets the required attributes with the parameters. The
following optional attribute can be set:setOrgsetFaxaName - contact nameaType - postal definition type loc or intaAddress - contact addresspublic EPPContactPostalDefinition(java.lang.String aName,
java.lang.String aOrg,
java.lang.String aType,
EPPContactAddress aAddress)
EPPContactPostalDefinition constructor that sets all of the attribute with the parameter values.aName - contact nameaOrg - contact organization if defined; null otherwiseaType - postal definition type loc or intaAddress - contact addresspublic java.lang.String getOrg()
null otherwise.public boolean hasOrg()
true if the postal info definition has organization.true if the postal info definition has organization false otherwisepublic void setOrg(java.lang.String aOrg)
aOrg - Client organizationpublic EPPContactAddress getAddress()
null otherwise.public boolean hasAddress()
true if the postal info defintion has address.true if the postal info definition has address false otherwisepublic void setAddress(EPPContactAddress aAddress)
aAddress - Contact addresspublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPContactPostalDefinition instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPEncodeExceptionpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPContactPostalDefinition attributes from the aElement DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPContactPostalDefinition from.EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPContactPostalDefinition compare.equals in class java.lang.ObjectaObject - EPPContactPostalDefinition instance to compare withtrue if objects are equal otherwise falsepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPContactPostalDefinition.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPContactPostalDefinitionjava.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 getName()
null otherwise.public boolean hasName()
true if the postal info definition has name.true if the postal info definition has name false otherwisepublic java.lang.String getRootName()
public boolean hasRootName()
true if the postal info definition has root name.true if the postal info definition has root name false otherwisepublic void setName(java.lang.String aName)
aName - Contact Namepublic void setRootName(java.lang.String newRootName)
newRootName - Stringpublic boolean isValidated()
public void setValidatedFlag(boolean newValidatedFlag)
newValidatedFlag - booleanpublic java.lang.String getType()
public boolean hasType()
true if the postal info definition has type.true if the postal info definition has type false otherwisepublic void setType(java.lang.String newType)
newType - Stringpublic java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.