|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.contact.EPPContactPostalDefinition
public class EPPContactPostalDefinition
Represents a contact postal address definition that is used in 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.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
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 . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public EPPContactPostalDefinition()
EPPContactPostalDefinition
default constructor. Must call required setter methods before invoking
encode
, which include:setId
setName
setType
setAddress
setVoice
setEmail
setOrg
setFax
public 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:setOrg
setFax
setName
aType
- 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:setOrg
setFax
aName
- 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 addressMethod Detail |
---|
public 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 EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.
EPPEncodeException
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactPostalDefinition
attributes from the aElement DOM Element tree.
decode
in interface EPPCodecComponent
aElement
- 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.Object
aObject
- EPPContactPostalDefinition
instance to compare with
true
if objects are equal otherwise false
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactPostalDefinition
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPContactPostalDefinition
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 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
- String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |