public class EPPMarkContact extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_CONTACT_LOCALNAME
Constant for the contact local name
|
static java.lang.String |
ELM_CONTACT_NAME
Constant for the contact tag name
|
static java.lang.String |
ELM_HOLDER_LOCALNAME
Constant for the owner local name
|
static java.lang.String |
ELM_HOLDER_NAME
Constant for the owner tag name
|
static java.lang.String |
ENTITLEMENT_ASSIGNEE
Assignee entitlement for a holder contact.
|
static java.lang.String |
ENTITLEMENT_LICENSEE
Licensee entitlement for a holder contact.
|
static java.lang.String |
ENTITLEMENT_OWNER
Owner entitlement for a holder contact.
|
static java.lang.String |
TYPE_AGENT
Agent type for a (non-holder) contact.
|
static java.lang.String |
TYPE_OWNER
Owner type for a (non-holder) contact.
|
static java.lang.String |
TYPE_THIRD_PARTY
Third party type for a (non-holder) contact.
|
Constructor and Description |
---|
EPPMarkContact()
Creates empty
EPPMarkContact instance. |
EPPMarkContact(java.lang.String aName,
java.lang.String aOrg,
EPPMarkAddress aAddress,
java.lang.String aVoice,
java.lang.String aFax,
java.lang.String aEmail)
Creates a mark contact with the name, organization, address, voice, fax,
and email attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPMark . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPMark component |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPMarkContact compare. |
EPPMarkAddress |
getAddress()
Gets the address information associated with the contact.
|
java.lang.String |
getEmail()
Gets the contact's email address.
|
java.lang.String |
getEntitlement()
Gets the entitlement of the holder contact.
|
java.lang.String |
getFax()
Gets the contact's facsimile telephone number.
|
java.lang.String |
getFaxExt()
Gets the contact's facsimile telephone number extension.
|
java.lang.String |
getLocalName()
Gets the XML local name of the mark contact.
|
java.lang.String |
getName()
Gets name of the individual or role represented by the contact.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getOrg()
Gets the name of the organization with which the contact is affiliated.
|
java.lang.String |
getType()
Gets the type of the (non-holder) contact.
|
java.lang.String |
getVoice()
Gets the contact's voice telephone number.
|
java.lang.String |
getVoiceExt()
Gets the contact's voice telephone number extension.
|
boolean |
isContact()
Is the
EPPMarkContact a (non-holder) contact? |
boolean |
isHolderContact()
Is the
EPPMarkContact a holder contact? |
void |
setAddress(EPPMarkAddress aAddress)
Sets the address information associated with the contact.
|
void |
setEmail(java.lang.String aEmail)
Sets the contact's email address.
|
void |
setEntitlement(java.lang.String aEntitlement)
Sets the entitlement of the holder contact.
|
void |
setFax(java.lang.String aFax)
Sets the contact's facsimile telephone number.
|
void |
setFaxExt(java.lang.String aFaxExt)
Sets the contact's facsimile telephone extension number.
|
void |
setLocalName(java.lang.String aLocalName)
Sets the XML local name of the mark contact.
|
void |
setName(java.lang.String aName)
Sets name of the individual or role represented by the contact.
|
void |
setOrg(java.lang.String aOrg)
Sets the name of the organization with which the contact is affiliated.
|
void |
setType(java.lang.String aType)
Sets the type of the (non-holder) contact.
|
void |
setVoice(java.lang.String aVoice)
Sets the contact's voice telephone number.
|
void |
setVoiceExt(java.lang.String aVoiceExt)
Sets the contact's voice telephone extension number.
|
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 ENTITLEMENT_OWNER
public static final java.lang.String ENTITLEMENT_ASSIGNEE
public static final java.lang.String ENTITLEMENT_LICENSEE
public static final java.lang.String TYPE_OWNER
public static final java.lang.String TYPE_AGENT
public static final java.lang.String TYPE_THIRD_PARTY
public static final java.lang.String ELM_HOLDER_LOCALNAME
public static final java.lang.String ELM_CONTACT_LOCALNAME
public static final java.lang.String ELM_HOLDER_NAME
public static final java.lang.String ELM_CONTACT_NAME
public EPPMarkContact()
EPPMarkContact
instance.public EPPMarkContact(java.lang.String aName, java.lang.String aOrg, EPPMarkAddress aAddress, java.lang.String aVoice, java.lang.String aFax, java.lang.String aEmail)
aName
- name of the individual or role represented by the contact.aOrg
- name of the organization with which the contact is affiliated.aAddress
- address information associated with the contact.aVoice
- contact's voice telephone numberaFax
- contact's facsimile telephone numberaEmail
- contact's email addresspublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPMark
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPMark
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPMark
componentdecode
in interface EPPCodecComponent
aElement
- Root element of the EPPMark
EPPDecodeException
- Error decoding the EPPMark
public boolean equals(java.lang.Object aObject)
EPPMarkContact
compare.equals
in class java.lang.Object
aObject
- EPPMarkContact
instance to compare withpublic boolean isHolderContact()
EPPMarkContact
a holder contact?true
if the EPPMarkContact
is a holder
contact; false
otherwise.public boolean isContact()
EPPMarkContact
a (non-holder) contact?true
if the EPPMarkContact
is a
(non-holder) contact; false
otherwise.public void setLocalName(java.lang.String aLocalName)
ELM_HOLDER_LOCALNAME
or ELM_CONTACT_LOCALNAME
.aLocalName
- XML local name of the mark contactpublic java.lang.String getLocalName()
ELM_HOLDER_LOCALNAME
or
ELM_CONTACT_LOCALNAME
.public java.lang.String getEntitlement()
ENTITLEMENT
constants
if defined; null
otherwise.public void setEntitlement(java.lang.String aEntitlement)
aEntitlement
- Entitlement of the holder contact using one of the
ENTITLEMENT
constants.public java.lang.String getType()
TYPE
constants.public void setType(java.lang.String aType)
aType
- Type of the contact using one of the TYPE
constants.public java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- Name of the individual or role represented by the contact.public java.lang.String getOrg()
null
otherwise.public void setOrg(java.lang.String aOrg)
aOrg
- The name of the organization with which the contact is
affiliated.public EPPMarkAddress getAddress()
null
otherwise.public void setAddress(EPPMarkAddress aAddress)
aAddress
- address information associated with the contact.public java.lang.String getVoice()
null
otherwise.public void setVoice(java.lang.String aVoice)
aVoice
- The contact's voice telephone number.public java.lang.String getVoiceExt()
null
otherwise.public void setVoiceExt(java.lang.String aVoiceExt)
aVoiceExt
- The contact's voice telephone extension number.public java.lang.String getFax()
null
otherwise.public void setFax(java.lang.String aFax)
aFax
- The contact's facsimile telephone number.public java.lang.String getFaxExt()
null
otherwise.public void setFaxExt(java.lang.String aFaxExt)
aFaxExt
- The contact's facsimile telephone extension number.public java.lang.String getEmail()
null
otherwise.public void setEmail(java.lang.String aEmail)
aEmail
- The contact's email address.public 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.