Package com.verisign.epp.codec.mark
Class EPPMarkContact
- java.lang.Object
-
- com.verisign.epp.codec.mark.EPPMarkContact
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPMarkContact extends java.lang.Object implements EPPCodecComponent
Class for a Trademark, Mark for short, contact.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_CONTACT_LOCALNAMEConstant for the contact local namestatic java.lang.StringELM_CONTACT_NAMEConstant for the contact tag namestatic java.lang.StringELM_HOLDER_LOCALNAMEConstant for the owner local namestatic java.lang.StringELM_HOLDER_NAMEConstant for the owner tag namestatic java.lang.StringENTITLEMENT_ASSIGNEEAssignee entitlement for a holder contact.static java.lang.StringENTITLEMENT_LICENSEELicensee entitlement for a holder contact.static java.lang.StringENTITLEMENT_OWNEROwner entitlement for a holder contact.static java.lang.StringTYPE_AGENTAgent type for a (non-holder) contact.static java.lang.StringTYPE_OWNEROwner type for a (non-holder) contact.static java.lang.StringTYPE_THIRD_PARTYThird party type for a (non-holder) contact.
-
Constructor Summary
Constructors Constructor Description EPPMarkContact()Creates emptyEPPMarkContactinstance.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPMark.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMarkcomponentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPMarkContactcompare.EPPMarkAddressgetAddress()Gets the address information associated with the contact.java.lang.StringgetEmail()Gets the contact's email address.java.lang.StringgetEntitlement()Gets the entitlement of the holder contact.java.lang.StringgetFax()Gets the contact's facsimile telephone number.java.lang.StringgetFaxExt()Gets the contact's facsimile telephone number extension.java.lang.StringgetLocalName()Gets the XML local name of the mark contact.java.lang.StringgetName()Gets name of the individual or role represented by the contact.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetOrg()Gets the name of the organization with which the contact is affiliated.java.lang.StringgetType()Gets the type of the (non-holder) contact.java.lang.StringgetVoice()Gets the contact's voice telephone number.java.lang.StringgetVoiceExt()Gets the contact's voice telephone number extension.booleanisContact()Is theEPPMarkContacta (non-holder) contact?booleanisHolderContact()Is theEPPMarkContacta holder contact?voidsetAddress(EPPMarkAddress aAddress)Sets the address information associated with the contact.voidsetEmail(java.lang.String aEmail)Sets the contact's email address.voidsetEntitlement(java.lang.String aEntitlement)Sets the entitlement of the holder contact.voidsetFax(java.lang.String aFax)Sets the contact's facsimile telephone number.voidsetFaxExt(java.lang.String aFaxExt)Sets the contact's facsimile telephone extension number.voidsetLocalName(java.lang.String aLocalName)Sets the XML local name of the mark contact.voidsetName(java.lang.String aName)Sets name of the individual or role represented by the contact.voidsetOrg(java.lang.String aOrg)Sets the name of the organization with which the contact is affiliated.voidsetType(java.lang.String aType)Sets the type of the (non-holder) contact.voidsetVoice(java.lang.String aVoice)Sets the contact's voice telephone number.voidsetVoiceExt(java.lang.String aVoiceExt)Sets the contact's voice telephone extension number.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ENTITLEMENT_OWNER
public static final java.lang.String ENTITLEMENT_OWNER
Owner entitlement for a holder contact.- See Also:
- Constant Field Values
-
ENTITLEMENT_ASSIGNEE
public static final java.lang.String ENTITLEMENT_ASSIGNEE
Assignee entitlement for a holder contact.- See Also:
- Constant Field Values
-
ENTITLEMENT_LICENSEE
public static final java.lang.String ENTITLEMENT_LICENSEE
Licensee entitlement for a holder contact.- See Also:
- Constant Field Values
-
TYPE_OWNER
public static final java.lang.String TYPE_OWNER
Owner type for a (non-holder) contact.- See Also:
- Constant Field Values
-
TYPE_AGENT
public static final java.lang.String TYPE_AGENT
Agent type for a (non-holder) contact.- See Also:
- Constant Field Values
-
TYPE_THIRD_PARTY
public static final java.lang.String TYPE_THIRD_PARTY
Third party type for a (non-holder) contact.- See Also:
- Constant Field Values
-
ELM_HOLDER_LOCALNAME
public static final java.lang.String ELM_HOLDER_LOCALNAME
Constant for the owner local name- See Also:
- Constant Field Values
-
ELM_CONTACT_LOCALNAME
public static final java.lang.String ELM_CONTACT_LOCALNAME
Constant for the contact local name- See Also:
- Constant Field Values
-
ELM_HOLDER_NAME
public static final java.lang.String ELM_HOLDER_NAME
Constant for the owner tag name- See Also:
- Constant Field Values
-
ELM_CONTACT_NAME
public static final java.lang.String ELM_CONTACT_NAME
Constant for the contact tag name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMarkContact
public EPPMarkContact()
Creates emptyEPPMarkContactinstance.
-
EPPMarkContact
public 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.- Parameters:
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 address
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPMark - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPMarkContactcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPMarkContactinstance to compare with- Returns:
- true if equal false otherwise
-
isHolderContact
public boolean isHolderContact()
Is theEPPMarkContacta holder contact?- Returns:
trueif theEPPMarkContactis a holder contact;falseotherwise.
-
isContact
public boolean isContact()
Is theEPPMarkContacta (non-holder) contact?- Returns:
trueif theEPPMarkContactis a (non-holder) contact;falseotherwise.
-
setLocalName
public void setLocalName(java.lang.String aLocalName)
Sets the XML local name of the mark contact. This should be set to eitherELM_HOLDER_LOCALNAMEorELM_CONTACT_LOCALNAME.- Parameters:
aLocalName- XML local name of the mark contact
-
getLocalName
public java.lang.String getLocalName()
Gets the XML local name of the mark contact.- Returns:
- The XML local name of the mark contact, which should be either
ELM_HOLDER_LOCALNAMEorELM_CONTACT_LOCALNAME.
-
getEntitlement
public java.lang.String getEntitlement()
Gets the entitlement of the holder contact.- Returns:
- Entitlement using one of the
ENTITLEMENTconstants if defined;nullotherwise.
-
setEntitlement
public void setEntitlement(java.lang.String aEntitlement)
Sets the entitlement of the holder contact.- Parameters:
aEntitlement- Entitlement of the holder contact using one of theENTITLEMENTconstants.
-
getType
public java.lang.String getType()
Gets the type of the (non-holder) contact.- Returns:
- Type using one of the
TYPEconstants.
-
setType
public void setType(java.lang.String aType)
Sets the type of the (non-holder) contact.- Parameters:
aType- Type of the contact using one of theTYPEconstants.
-
getName
public java.lang.String getName()
Gets name of the individual or role represented by the contact.- Returns:
- Name of the individual or role represented by the contact if
defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets name of the individual or role represented by the contact.- Parameters:
aName- Name of the individual or role represented by the contact.
-
getOrg
public java.lang.String getOrg()
Gets the name of the organization with which the contact is affiliated.- Returns:
- The name of the organization with which the contact is affiliated
if defined;
nullotherwise.
-
setOrg
public void setOrg(java.lang.String aOrg)
Sets the name of the organization with which the contact is affiliated.- Parameters:
aOrg- The name of the organization with which the contact is affiliated.
-
getAddress
public EPPMarkAddress getAddress()
Gets the address information associated with the contact.- Returns:
- address information associated with the contact if defined;
nullotherwise.
-
setAddress
public void setAddress(EPPMarkAddress aAddress)
Sets the address information associated with the contact.- Parameters:
aAddress- address information associated with the contact.
-
getVoice
public java.lang.String getVoice()
Gets the contact's voice telephone number.- Returns:
- The contact's voice telephone number if defined;
nullotherwise.
-
setVoice
public void setVoice(java.lang.String aVoice)
Sets the contact's voice telephone number.- Parameters:
aVoice- The contact's voice telephone number.
-
getVoiceExt
public java.lang.String getVoiceExt()
Gets the contact's voice telephone number extension.- Returns:
- The contact's voice telephone number extension if defined;
nullotherwise.
-
setVoiceExt
public void setVoiceExt(java.lang.String aVoiceExt)
Sets the contact's voice telephone extension number.- Parameters:
aVoiceExt- The contact's voice telephone extension number.
-
getFax
public java.lang.String getFax()
Gets the contact's facsimile telephone number.- Returns:
- The contact's facsimile telephone number if defined;
nullotherwise.
-
setFax
public void setFax(java.lang.String aFax)
Sets the contact's facsimile telephone number.- Parameters:
aFax- The contact's facsimile telephone number.
-
getFaxExt
public java.lang.String getFaxExt()
Gets the contact's facsimile telephone number extension.- Returns:
- The contact's facsimile telephone number extension if defined;
nullotherwise.
-
setFaxExt
public void setFaxExt(java.lang.String aFaxExt)
Sets the contact's facsimile telephone extension number.- Parameters:
aFaxExt- The contact's facsimile telephone extension number.
-
getEmail
public java.lang.String getEmail()
Gets the contact's email address.- Returns:
- The contact's email address if defined;
nullotherwise.
-
setEmail
public void setEmail(java.lang.String aEmail)
Sets the contact's email address.- Parameters:
aEmail- The contact's email address.
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-