Package com.verisign.epp.codec.mark
Class EPPCourt
java.lang.Object
com.verisign.epp.codec.mark.EPPCourt
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for a Court that can be included in the list of courts contained in the
EPPMark.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContact(EPPMarkContact aContact) Adds a contact to the list of contacts of the court.voidaddHolder(EPPMarkContact aHolder) Adds a holder to the list of holders of the court.voidAdds a domain name label to the domain name labels that corresponds to the court.voidaddRegions(String aRegion) Adds a region to the list or regions where the mark is protected.clone()CloneEPPCourt.voiddecode(byte[] aMarkArray) Decode theEPPCourtattributes from the inputbyte[].voidDecode theEPPCourtcomponentbyte[]encode()Encode the court to abyte[].Sets all this instance's data in the given XML documentbooleanimplements a deepEPPCourtcompare.getCc()Gets two-character code of the country where the court is located from [ISO3166-2].Gets contacts of the court.Gets the name of the court.Gets full description of the goods and services mentioned in the treaty or statute registration document.Gets holders of the court.getId()Gets the identifier for the court.Gets the domain name labels that corresponds to the court.getName()Gets the registered court text string.Returns the XML namespace associated with theEPPCodecComponent.Gets the date of protection of the mark.Gets the reference number of the mark of the court's opinion.Gets the regions where the mark is protected.voidSets two-character code of the country where the court is located from [ISO3166-2].voidsetContacts(List<EPPMarkContact> aContacts) Sets contacts of the court.voidsetCourtName(String aCourtName) Sets the name of the court.voidsetGoodsAndServices(String aGoodsAndServices) Sets full description of the goods and services mentioned in the treaty or statute registration document.voidsetHolders(List<EPPMarkContact> aHolders) Sets holders of the court.voidSets the identifier for the court.voidSets the domain name labels that corresponds to the court.voidSets the registered court text string.voidsetProDate(Date aProDate) Sets the date of protection of the mark.voidSets the reference number of the mark of the court's opinion.voidsetRegions(List<String> aRegions) Sets the regions where the mark is protected.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the court local name- See Also:
-
ELM_NAME
Constant for the court tag- See Also:
-
-
Constructor Details
-
EPPCourt
public EPPCourt()Create anEPPCourtinstance. Use the setter methods to set the attributes of the instance.
-
-
Method Details
-
clone
CloneEPPCourt.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPCourt - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode the court to abyte[].- Returns:
- Encoded court
- Throws:
EPPEncodeException- Error encoding the court
-
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 theEPPCourtattributes from the inputbyte[].- Parameters:
aMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding thebyte[].
-
decode
Decode theEPPCourtcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPCourt- Throws:
EPPDecodeException- Error decoding theEPPCourt
-
equals
implements a deepEPPCourtcompare. -
getId
Gets the identifier for the court.- Returns:
- The identifier for the court if set;
nullotherwise.
-
setId
Sets the identifier for the court.- Parameters:
aId- Identifier for the court
-
getName
Gets the registered court text string.- Returns:
- The registered court text string if set;
nullotherwise.
-
setName
Sets the registered court text string.- Parameters:
aName- the registered court text string
-
getHolders
Gets holders of the court.- Returns:
- the holders of the court if set; Empty
Listotherwise.
-
setHolders
Sets holders of the court.- Parameters:
aHolders- the holders of the court
-
addHolder
Adds a holder to the list of holders of the court.- Parameters:
aHolder- Holder to add to list of holders of the court.
-
getContacts
Gets contacts of the court.- Returns:
- the contacts of the court if set; Empty
Listotherwise.
-
setContacts
Sets contacts of the court.- Parameters:
aContacts- the contacts of the court
-
addContact
Adds a contact to the list of contacts of the court.- Parameters:
aContact- Contact to add to list of contacts of the court.
-
getLabels
Gets the domain name labels that corresponds to the court.- Returns:
- the domain name labels that corresponds to the court if set; Empty
Listotherwise.
-
setLabels
Sets the domain name labels that corresponds to the court.- Parameters:
aLabels- the domain name labels that corresponds to the treaty or statute
-
addLabel
Adds a domain name label to the domain name labels that corresponds to the court.- Parameters:
aLabel- Domain name label to add.
-
getGoodsAndServices
Gets full description of the goods and services mentioned in the treaty or statute registration document.- Returns:
- The goods and services if set;
nullotherwise.
-
setGoodsAndServices
Sets full description of the goods and services mentioned in the treaty or statute registration document.- Parameters:
aGoodsAndServices- The goods and services
-
getRefNum
Gets the reference number of the mark of the court's opinion.- Returns:
- Reference number of the mark of the court's opinion if defined;
nullotherwise.
-
setRefNum
Sets the reference number of the mark of the court's opinion.- Parameters:
aRefNum- Reference number of the mark of the court's opinion.
-
getProDate
Gets the date of protection of the mark.- Returns:
- The date of protection of the mark if defined;
nullotherwise.
-
setProDate
Sets the date of protection of the mark.- Parameters:
aProDate- The date of protection of the mark.
-
getCc
Gets two-character code of the country where the court is located from [ISO3166-2].- Returns:
- Two-character code of the country where the court is located if
set;
nullotherwise.
-
setCc
Sets two-character code of the country where the court is located from [ISO3166-2].- Parameters:
aCc- Two-character code of the country where the court is located from [ISO3166-2].
-
getRegions
Gets the regions where the mark is protected. A region is the name of a city, state, province or other geographic location.- Returns:
- The regions where the mark is protected if set; Empty
Listotherwise.
-
setRegions
Sets the regions where the mark is protected. A region is the name of a city, state, province or other geographic location.- Parameters:
aRegions- The regions where the mark is protected.
-
addRegions
Adds a region to the list or regions where the mark is protected.- Parameters:
aRegion- Region where the mark is protected.
-
getCourtName
Gets the name of the court.- Returns:
- The name of the court if set;
nullotherwise.
-
setCourtName
Sets the name of the court.- Parameters:
aCourtName- The name of the court.
-
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.
-