public class EPPTrademark extends java.lang.Object implements EPPCodecComponent
EPPMark
.EPPMark
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the trademark local name
|
static java.lang.String |
ELM_NAME
Constant for the trademark tag
|
Constructor and Description |
---|
EPPTrademark()
Create an
EPPTrademark instance. |
Modifier and Type | Method and Description |
---|---|
void |
addClass(java.lang.String aClass)
Adds a Nice Classification class number to the list of classes.
|
void |
addContact(EPPMarkContact aContact)
Adds a contact to the list of contacts of the trademark.
|
void |
addHolder(EPPMarkContact aHolder)
Adds a holder to the list of holders of the trademark.
|
void |
addLabel(java.lang.String aLabel)
Adds a domain name label to the domain name labels that corresponds to
the trademark.
|
java.lang.Object |
clone()
Clone
EPPTrademark . |
void |
decode(byte[] aMarkArray)
Decode the
EPPTrademark attributes from the input
byte[] . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPTrademark component |
byte[] |
encode()
Encode the trademark to a
byte[] . |
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
EPPTrademark compare. |
java.util.Date |
getApDate()
Gets the date the trademark was applied for.
|
java.lang.String |
getApId()
Gets the application ID registered in the trademark office.
|
java.util.List<java.lang.String> |
getClasses()
Gets list of Nice Classification class numbers.
|
java.util.List<EPPMarkContact> |
getContacts()
Gets contacts of the trademark.
|
java.util.Date |
getExDate()
Gets the date of expiration of the trademark.
|
java.lang.String |
getGoodsAndServices()
Gets full description of the goods and services mentioned in the trademark
registration document.
|
java.util.List<EPPMarkContact> |
getHolders()
Gets holders of the trademark.
|
java.lang.String |
getId()
Gets the identifier for the trademark.
|
java.lang.String |
getJurisdiction()
Gets the two-character code of the jurisdiction where the trademark was
registered.
|
java.util.List<java.lang.String> |
getLabels()
Gets the domain name labels that corresponds to the trademark.
|
java.lang.String |
getName()
Gets the registered trademark text string.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.Date |
getRegDate()
Gets the date the trademark was registered.
|
java.lang.String |
getRegNum()
Gets the trademark registration ID (number) registered in the trademark
office.
|
void |
setApDate(java.util.Date aApDate)
Sets the date the trademark was applied for.
|
void |
setApId(java.lang.String aApId)
Sets the application ID registered in the trademark office.
|
void |
setClasses(java.util.List<java.lang.String> aClasses)
Sets list of Nice Classification class numbers.
|
void |
setContacts(java.util.List<EPPMarkContact> aContacts)
Sets contacts of the trademark.
|
void |
setExDate(java.util.Date aExDate)
Sets the date of expiration of the trademark.
|
void |
setGoodsAndServices(java.lang.String aGoodsAndServices)
Sets full description of the goods and services mentioned in the trademark
registration document.
|
void |
setHolders(java.util.List<EPPMarkContact> aHolders)
Sets holders of the trademark.
|
void |
setId(java.lang.String aId)
Sets the identifier for the trademark.
|
void |
setJurisdiction(java.lang.String aJurisdiction)
Sets the two-character code of the jurisdiction where the trademark was
registered.
|
void |
setLabels(java.util.List<java.lang.String> aLabels)
Sets the domain name labels that corresponds to the trademark.
|
void |
setName(java.lang.String aName)
Sets the registered trademark text string.
|
void |
setRegDate(java.util.Date aRegDate)
Sets the date the trademark was registered.
|
void |
setRegNum(java.lang.String aRegNum)
Sets the trademark registration ID (number) registered in the trademark
office.
|
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_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPTrademark()
EPPTrademark
instance. Use the setter methods to
set the attributes of the instance.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPTrademark
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPTrademark
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic byte[] encode() throws EPPEncodeException
byte[]
.EPPEncodeException
- Error encoding the trademarkpublic 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(byte[] aMarkArray) throws EPPDecodeException
EPPTrademark
attributes from the input
byte[]
.aMarkArray
- byte[]
to decode the attribute valuesEPPDecodeException
- Error decoding the byte[]
.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPTrademark
componentdecode
in interface EPPCodecComponent
aElement
- Root element of the EPPTrademark
EPPDecodeException
- Error decoding the EPPTrademark
public boolean equals(java.lang.Object aObject)
EPPTrademark
compare.equals
in class java.lang.Object
aObject
- EPPTrademark
instance to compare withpublic java.lang.String getId()
null
otherwise.public void setId(java.lang.String aId)
aId
- Identifier for the trademarkpublic java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- the registered trademark text stringpublic java.util.List<EPPMarkContact> getHolders()
List
otherwise.public void setHolders(java.util.List<EPPMarkContact> aHolders)
aHolders
- the holders of the trademarkpublic void addHolder(EPPMarkContact aHolder)
aHolder
- Holder to add to list of holders of the trademark.public java.util.List<EPPMarkContact> getContacts()
List
otherwise.public void setContacts(java.util.List<EPPMarkContact> aContacts)
aContacts
- the contacts of the trademarkpublic void addContact(EPPMarkContact aContact)
aContact
- Contact to add to list of contacts of the trademark.public java.lang.String getJurisdiction()
null
otherwise.public void setJurisdiction(java.lang.String aJurisdiction)
aJurisdiction
- Jurisdiction where trademark was registered.public java.util.List<java.lang.String> getClasses()
public void setClasses(java.util.List<java.lang.String> aClasses)
aClasses
- list of Nice Classification class numberspublic void addClass(java.lang.String aClass)
aClass
- Nice Classification class number to addpublic java.util.List<java.lang.String> getLabels()
List
otherwise.public void setLabels(java.util.List<java.lang.String> aLabels)
aLabels
- the domain name labels that corresponds to the trademarkpublic void addLabel(java.lang.String aLabel)
aLabel
- Domain name label to add.public java.lang.String getGoodsAndServices()
null
otherwise.public void setGoodsAndServices(java.lang.String aGoodsAndServices)
aGoodsAndServices
- The goods and servicespublic java.lang.String getApId()
null
otherwise.public void setApId(java.lang.String aApId)
aApId
- Application ID registered in the trademark office.public java.util.Date getApDate()
null
otherwise.public void setApDate(java.util.Date aApDate)
aApDate
- The date the trademark was applied for.public java.lang.String getRegNum()
public void setRegNum(java.lang.String aRegNum)
aRegNum
- The trademark registration ID (number) registered in the
trademark office.public java.util.Date getRegDate()
null
otherwise.public void setRegDate(java.util.Date aRegDate)
aRegDate
- The date the trademark was registeredpublic java.util.Date getExDate()
null
otherwise.public void setExDate(java.util.Date aExDate)
aExDate
- The date of expiration of the trademarkpublic 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.