Package com.verisign.epp.codec.mark
Class EPPTrademark
java.lang.Object
com.verisign.epp.codec.mark.EPPTrademark
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for a Trademark that can be included in the list of trademarks
contained in the
EPPMark.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds 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.voidAdds a domain name label to the domain name labels that corresponds to the trademark.clone()CloneEPPTrademark.voiddecode(byte[] aMarkArray) Decode theEPPTrademarkattributes from the inputbyte[].voidDecode theEPPTrademarkcomponentbyte[]encode()Encode the trademark to abyte[].Sets all this instance's data in the given XML documentbooleanimplements a deepEPPTrademarkcompare.Gets the date the trademark was applied for.getApId()Gets the application ID registered in the trademark office.Gets list of Nice Classification class numbers.Gets contacts of the trademark.Gets the date of expiration of the trademark.Gets full description of the goods and services mentioned in the trademark registration document.Gets holders of the trademark.getId()Gets the identifier for the trademark.Gets the two-character code of the jurisdiction where the trademark was registered.Gets the domain name labels that corresponds to the trademark.getName()Gets the registered trademark text string.Returns the XML namespace associated with theEPPCodecComponent.Gets the date the trademark was registered.Gets the trademark registration ID (number) registered in the trademark office.voidSets the date the trademark was applied for.voidSets the application ID registered in the trademark office.voidsetClasses(List<String> aClasses) Sets list of Nice Classification class numbers.voidsetContacts(List<EPPMarkContact> aContacts) Sets contacts of the trademark.voidSets the date of expiration of the trademark.voidsetGoodsAndServices(String aGoodsAndServices) Sets full description of the goods and services mentioned in the trademark registration document.voidsetHolders(List<EPPMarkContact> aHolders) Sets holders of the trademark.voidSets the identifier for the trademark.voidsetJurisdiction(String aJurisdiction) Sets the two-character code of the jurisdiction where the trademark was registered.voidSets the domain name labels that corresponds to the trademark.voidSets the registered trademark text string.voidsetRegDate(Date aRegDate) Sets the date the trademark was registered.voidSets the trademark registration ID (number) registered in the trademark office.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the trademark local name- See Also:
-
ELM_NAME
Constant for the trademark tag- See Also:
-
-
Constructor Details
-
EPPTrademark
public EPPTrademark()Create anEPPTrademarkinstance. Use the setter methods to set the attributes of the instance.
-
-
Method Details
-
clone
CloneEPPTrademark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPTrademark - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode the trademark to abyte[].- Returns:
- Encoded trademark
- Throws:
EPPEncodeException- Error encoding the trademark
-
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 theEPPTrademarkattributes from the inputbyte[].- Parameters:
aMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding thebyte[].
-
decode
Decode theEPPTrademarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPTrademark- Throws:
EPPDecodeException- Error decoding theEPPTrademark
-
equals
implements a deepEPPTrademarkcompare. -
getId
Gets the identifier for the trademark.- Returns:
- The identifier for the trademark if set;
nullotherwise.
-
setId
Sets the identifier for the trademark.- Parameters:
aId- Identifier for the trademark
-
getName
Gets the registered trademark text string.- Returns:
- The registered trademark text string if set;
nullotherwise.
-
setName
Sets the registered trademark text string.- Parameters:
aName- the registered trademark text string
-
getHolders
Gets holders of the trademark.- Returns:
- the holders of the trademark if set; Empty
Listotherwise.
-
setHolders
Sets holders of the trademark.- Parameters:
aHolders- the holders of the trademark
-
addHolder
Adds a holder to the list of holders of the trademark.- Parameters:
aHolder- Holder to add to list of holders of the trademark.
-
getContacts
Gets contacts of the trademark.- Returns:
- the contacts of the trademark if set; Empty
Listotherwise.
-
setContacts
Sets contacts of the trademark.- Parameters:
aContacts- the contacts of the trademark
-
addContact
Adds a contact to the list of contacts of the trademark.- Parameters:
aContact- Contact to add to list of contacts of the trademark.
-
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
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
Gets list of Nice Classification class numbers.- Returns:
- list of Nice Classification class numbers if defined; empty list otherwise.
-
setClasses
Sets list of Nice Classification class numbers.- Parameters:
aClasses- list of Nice Classification class numbers
-
addClass
Adds a Nice Classification class number to the list of classes.- Parameters:
aClass- Nice Classification class number to add
-
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
Sets the domain name labels that corresponds to the trademark.- Parameters:
aLabels- the domain name labels that corresponds to the trademark
-
addLabel
Adds a domain name label to the domain name labels that corresponds to the trademark.- Parameters:
aLabel- Domain name label to add.
-
getGoodsAndServices
Gets full description of the goods and services mentioned in the trademark registration document.- Returns:
- The goods and services if set;
nullotherwise.
-
setGoodsAndServices
Sets full description of the goods and services mentioned in the trademark registration document.- Parameters:
aGoodsAndServices- The goods and services
-
getApId
Gets the application ID registered in the trademark office.- Returns:
- Application ID registered in the trademark office if defined;
nullotherwise.
-
setApId
Sets the application ID registered in the trademark office.- Parameters:
aApId- Application ID registered in the trademark office.
-
getApDate
Gets the date the trademark was applied for.- Returns:
- The date the trademark was applied for if defined;
nullotherwise.
-
setApDate
Sets the date the trademark was applied for.- Parameters:
aApDate- The date the trademark was applied for.
-
getRegNum
Gets the trademark registration ID (number) registered in the trademark office.- Returns:
- The trademark registration ID (number) registered in the trademark office.
-
setRegNum
Sets the trademark registration ID (number) registered in the trademark office.- Parameters:
aRegNum- The trademark registration ID (number) registered in the trademark office.
-
getRegDate
Gets the date the trademark was registered.- Returns:
- The date the trademark was registered if set;
nullotherwise.
-
setRegDate
Sets the date the trademark was registered.- Parameters:
aRegDate- The date the trademark was registered
-
getExDate
Gets the date of expiration of the trademark.- Returns:
- the date of expiration of the trademark if set;
nullotherwise.
-
setExDate
Sets the date of expiration of the trademark.- Parameters:
aExDate- The date of expiration of the trademark
-
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.
-