Package com.verisign.epp.codec.mark
Class EPPMarkContact
java.lang.Object
com.verisign.epp.codec.mark.EPPMarkContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for a Trademark, Mark for short, contact.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the contact local namestatic final StringConstant for the contact tag namestatic final StringConstant for the owner local namestatic final StringConstant for the owner tag namestatic final StringAssignee entitlement for a holder contact.static final StringLicensee entitlement for a holder contact.static final StringOwner entitlement for a holder contact.static final StringAgent type for a (non-holder) contact.static final StringOwner type for a (non-holder) contact.static final StringThird party type for a (non-holder) contact. -
Constructor Summary
ConstructorsConstructorDescriptionCreates emptyEPPMarkContactinstance.EPPMarkContact(String aName, String aOrg, EPPMarkAddress aAddress, String aVoice, String aFax, String aEmail) Creates a mark contact with the name, organization, address, voice, fax, and email attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMark.voidDecode theEPPMarkcomponentSets all this instance's data in the given XML documentbooleanimplements a deepEPPMarkContactcompare.Gets the address information associated with the contact.getEmail()Gets the contact's email address.Gets the entitlement of the holder contact.getFax()Gets the contact's facsimile telephone number.Gets the contact's facsimile telephone number extension.Gets the XML local name of the mark contact.getName()Gets name of the individual or role represented by the contact.Returns the XML namespace associated with theEPPCodecComponent.getOrg()Gets the name of the organization with which the contact is affiliated.getType()Gets the type of the (non-holder) contact.getVoice()Gets the contact's voice telephone number.Gets the contact's voice telephone number extension.booleanIs theEPPMarkContacta (non-holder) contact?booleanIs theEPPMarkContacta holder contact?voidsetAddress(EPPMarkAddress aAddress) Sets the address information associated with the contact.voidSets the contact's email address.voidsetEntitlement(String aEntitlement) Sets the entitlement of the holder contact.voidSets the contact's facsimile telephone number.voidSets the contact's facsimile telephone extension number.voidsetLocalName(String aLocalName) Sets the XML local name of the mark contact.voidSets name of the individual or role represented by the contact.voidSets the name of the organization with which the contact is affiliated.voidSets the type of the (non-holder) contact.voidSets the contact's voice telephone number.voidsetVoiceExt(String aVoiceExt) Sets the contact's voice telephone extension number.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ENTITLEMENT_OWNER
Owner entitlement for a holder contact.- See Also:
-
ENTITLEMENT_ASSIGNEE
Assignee entitlement for a holder contact.- See Also:
-
ENTITLEMENT_LICENSEE
Licensee entitlement for a holder contact.- See Also:
-
TYPE_OWNER
Owner type for a (non-holder) contact.- See Also:
-
TYPE_AGENT
Agent type for a (non-holder) contact.- See Also:
-
TYPE_THIRD_PARTY
Third party type for a (non-holder) contact.- See Also:
-
ELM_HOLDER_LOCALNAME
Constant for the owner local name- See Also:
-
ELM_CONTACT_LOCALNAME
Constant for the contact local name- See Also:
-
ELM_HOLDER_NAME
Constant for the owner tag name- See Also:
-
ELM_CONTACT_NAME
Constant for the contact tag name- See Also:
-
-
Constructor Details
-
EPPMarkContact
public EPPMarkContact()Creates emptyEPPMarkContactinstance. -
EPPMarkContact
public EPPMarkContact(String aName, String aOrg, EPPMarkAddress aAddress, String aVoice, String aFax, 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 Details
-
clone
CloneEPPMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMark - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Sets 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
Decode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
implements a deepEPPMarkContactcompare. -
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
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
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
Gets the entitlement of the holder contact.- Returns:
- Entitlement using one of the
ENTITLEMENTconstants if defined;nullotherwise.
-
setEntitlement
Sets the entitlement of the holder contact.- Parameters:
aEntitlement- Entitlement of the holder contact using one of theENTITLEMENTconstants.
-
getType
Gets the type of the (non-holder) contact.- Returns:
- Type using one of the
TYPEconstants.
-
setType
Sets the type of the (non-holder) contact.- Parameters:
aType- Type of the contact using one of theTYPEconstants.
-
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
Sets name of the individual or role represented by the contact.- Parameters:
aName- Name of the individual or role represented by the contact.
-
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
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
Gets the address information associated with the contact.- Returns:
- address information associated with the contact if defined;
nullotherwise.
-
setAddress
Sets the address information associated with the contact.- Parameters:
aAddress- address information associated with the contact.
-
getVoice
Gets the contact's voice telephone number.- Returns:
- The contact's voice telephone number if defined;
nullotherwise.
-
setVoice
Sets the contact's voice telephone number.- Parameters:
aVoice- The contact's voice telephone number.
-
getVoiceExt
Gets the contact's voice telephone number extension.- Returns:
- The contact's voice telephone number extension if defined;
nullotherwise.
-
setVoiceExt
Sets the contact's voice telephone extension number.- Parameters:
aVoiceExt- The contact's voice telephone extension number.
-
getFax
Gets the contact's facsimile telephone number.- Returns:
- The contact's facsimile telephone number if defined;
nullotherwise.
-
setFax
Sets the contact's facsimile telephone number.- Parameters:
aFax- The contact's facsimile telephone number.
-
getFaxExt
Gets the contact's facsimile telephone number extension.- Returns:
- The contact's facsimile telephone number extension if defined;
nullotherwise.
-
setFaxExt
Sets the contact's facsimile telephone extension number.- Parameters:
aFaxExt- The contact's facsimile telephone extension number.
-
getEmail
Gets the contact's email address.- Returns:
- The contact's email address if defined;
nullotherwise.
-
setEmail
Sets the contact's email address.- Parameters:
aEmail- The contact's email address.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-