Package com.verisign.epp.codec.mark
Class EPPTrademark
- java.lang.Object
-
- com.verisign.epp.codec.mark.EPPTrademark
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPTrademark extends java.lang.Object implements EPPCodecComponent
Class for a Trademark that can be included in the list of trademarks contained in theEPPMark.- See Also:
EPPMark, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the trademark local namestatic java.lang.StringELM_NAMEConstant for the trademark tag
-
Constructor Summary
Constructors Constructor Description EPPTrademark()Create anEPPTrademarkinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClass(java.lang.String aClass)Adds a Nice Classification class number to the list of classes.voidaddContact(EPPMarkContact aContact)Adds a contact to the list of contacts of the trademark.voidaddHolder(EPPMarkContact aHolder)Adds a holder to the list of holders of the trademark.voidaddLabel(java.lang.String aLabel)Adds a domain name label to the domain name labels that corresponds to the trademark.java.lang.Objectclone()CloneEPPTrademark.voiddecode(byte[] aMarkArray)Decode theEPPTrademarkattributes from the inputbyte[].voiddecode(org.w3c.dom.Element aElement)Decode theEPPTrademarkcomponentbyte[]encode()Encode the trademark to abyte[].org.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 deepEPPTrademarkcompare.java.util.DategetApDate()Gets the date the trademark was applied for.java.lang.StringgetApId()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.DategetExDate()Gets the date of expiration of the trademark.java.lang.StringgetGoodsAndServices()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.StringgetId()Gets the identifier for the trademark.java.lang.StringgetJurisdiction()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.StringgetName()Gets the registered trademark text string.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.DategetRegDate()Gets the date the trademark was registered.java.lang.StringgetRegNum()Gets the trademark registration ID (number) registered in the trademark office.voidsetApDate(java.util.Date aApDate)Sets the date the trademark was applied for.voidsetApId(java.lang.String aApId)Sets the application ID registered in the trademark office.voidsetClasses(java.util.List<java.lang.String> aClasses)Sets list of Nice Classification class numbers.voidsetContacts(java.util.List<EPPMarkContact> aContacts)Sets contacts of the trademark.voidsetExDate(java.util.Date aExDate)Sets the date of expiration of the trademark.voidsetGoodsAndServices(java.lang.String aGoodsAndServices)Sets full description of the goods and services mentioned in the trademark registration document.voidsetHolders(java.util.List<EPPMarkContact> aHolders)Sets holders of the trademark.voidsetId(java.lang.String aId)Sets the identifier for the trademark.voidsetJurisdiction(java.lang.String aJurisdiction)Sets the two-character code of the jurisdiction where the trademark was registered.voidsetLabels(java.util.List<java.lang.String> aLabels)Sets the domain name labels that corresponds to the trademark.voidsetName(java.lang.String aName)Sets the registered trademark text string.voidsetRegDate(java.util.Date aRegDate)Sets the date the trademark was registered.voidsetRegNum(java.lang.String aRegNum)Sets the trademark registration ID (number) registered in the trademark office.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the trademark local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the trademark tag- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPTrademark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPTrademark - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public byte[] encode() throws EPPEncodeExceptionEncode the trademark to abyte[].- Returns:
- Encoded trademark
- Throws:
EPPEncodeException- Error encoding the trademark
-
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(byte[] aMarkArray) throws EPPDecodeExceptionDecode theEPPTrademarkattributes from the inputbyte[].- Parameters:
aMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding thebyte[].
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPTrademarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPTrademark- Throws:
EPPDecodeException- Error decoding theEPPTrademark
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPTrademarkcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPTrademarkinstance to compare with- Returns:
- true if equal false otherwise
-
getId
public java.lang.String getId()
Gets the identifier for the trademark.- Returns:
- The identifier for the trademark if set;
nullotherwise.
-
setId
public void setId(java.lang.String aId)
Sets the identifier for the trademark.- Parameters:
aId- Identifier for the trademark
-
getName
public java.lang.String getName()
Gets the registered trademark text string.- Returns:
- The registered trademark text string if set;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the registered trademark text string.- Parameters:
aName- the registered trademark text string
-
getHolders
public java.util.List<EPPMarkContact> getHolders()
Gets holders of the trademark.- Returns:
- the holders of the trademark if set; Empty
Listotherwise.
-
setHolders
public void setHolders(java.util.List<EPPMarkContact> aHolders)
Sets holders of the trademark.- Parameters:
aHolders- the holders of the trademark
-
addHolder
public void addHolder(EPPMarkContact aHolder)
Adds a holder to the list of holders of the trademark.- Parameters:
aHolder- Holder to add to list of holders of the trademark.
-
getContacts
public java.util.List<EPPMarkContact> getContacts()
Gets contacts of the trademark.- Returns:
- the contacts of the trademark if set; Empty
Listotherwise.
-
setContacts
public void setContacts(java.util.List<EPPMarkContact> aContacts)
Sets contacts of the trademark.- Parameters:
aContacts- the contacts of the trademark
-
addContact
public void addContact(EPPMarkContact aContact)
Adds a contact to the list of contacts of the trademark.- Parameters:
aContact- Contact to add to list of contacts of the trademark.
-
getJurisdiction
public java.lang.String getJurisdiction()
Gets the two-character code of the jurisdiction where the trademark was registered. This is a two-character code from [WIPO.ST3].- Returns:
- Jurisdiction if set;
nullotherwise.
-
setJurisdiction
public void setJurisdiction(java.lang.String aJurisdiction)
Sets the two-character code of the jurisdiction where the trademark was registered. This is a two-character code from [WIPO.ST3].- Parameters:
aJurisdiction- Jurisdiction where trademark was registered.
-
getClasses
public java.util.List<java.lang.String> getClasses()
Gets list of Nice Classification class numbers.- Returns:
- list of Nice Classification class numbers if defined; empty list otherwise.
-
setClasses
public void setClasses(java.util.List<java.lang.String> aClasses)
Sets list of Nice Classification class numbers.- Parameters:
aClasses- list of Nice Classification class numbers
-
addClass
public void addClass(java.lang.String aClass)
Adds a Nice Classification class number to the list of classes.- Parameters:
aClass- Nice Classification class number to add
-
getLabels
public java.util.List<java.lang.String> getLabels()
Gets the domain name labels that corresponds to the trademark.- Returns:
- the domain name labels that corresponds to the trademark if set;
Empty
Listotherwise.
-
setLabels
public void setLabels(java.util.List<java.lang.String> aLabels)
Sets the domain name labels that corresponds to the trademark.- Parameters:
aLabels- the domain name labels that corresponds to the trademark
-
addLabel
public void addLabel(java.lang.String aLabel)
Adds a domain name label to the domain name labels that corresponds to the trademark.- Parameters:
aLabel- Domain name label to add.
-
getGoodsAndServices
public java.lang.String getGoodsAndServices()
Gets full description of the goods and services mentioned in the trademark registration document.- Returns:
- The goods and services if set;
nullotherwise.
-
setGoodsAndServices
public void setGoodsAndServices(java.lang.String aGoodsAndServices)
Sets full description of the goods and services mentioned in the trademark registration document.- Parameters:
aGoodsAndServices- The goods and services
-
getApId
public java.lang.String getApId()
Gets the application ID registered in the trademark office.- Returns:
- Application ID registered in the trademark office if defined;
nullotherwise.
-
setApId
public void setApId(java.lang.String aApId)
Sets the application ID registered in the trademark office.- Parameters:
aApId- Application ID registered in the trademark office.
-
getApDate
public java.util.Date getApDate()
Gets the date the trademark was applied for.- Returns:
- The date the trademark was applied for if defined;
nullotherwise.
-
setApDate
public void setApDate(java.util.Date aApDate)
Sets the date the trademark was applied for.- Parameters:
aApDate- The date the trademark was applied for.
-
getRegNum
public java.lang.String getRegNum()
Gets the trademark registration ID (number) registered in the trademark office.- Returns:
- The trademark registration ID (number) registered in the trademark office.
-
setRegNum
public void setRegNum(java.lang.String aRegNum)
Sets the trademark registration ID (number) registered in the trademark office.- Parameters:
aRegNum- The trademark registration ID (number) registered in the trademark office.
-
getRegDate
public java.util.Date getRegDate()
Gets the date the trademark was registered.- Returns:
- The date the trademark was registered if set;
nullotherwise.
-
setRegDate
public void setRegDate(java.util.Date aRegDate)
Sets the date the trademark was registered.- Parameters:
aRegDate- The date the trademark was registered
-
getExDate
public java.util.Date getExDate()
Gets the date of expiration of the trademark.- Returns:
- the date of expiration of the trademark if set;
nullotherwise.
-
setExDate
public void setExDate(java.util.Date aExDate)
Sets the date of expiration of the trademark.- Parameters:
aExDate- The date of expiration of the trademark
-
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.
-
-