|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.mark.EPPCourt
public class EPPCourt
Class for a Court that can be included in the list of courts contained in the
EPPMark
.
EPPMark
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the court local name |
static java.lang.String |
ELM_NAME
Constant for the court tag |
Constructor Summary | |
---|---|
EPPCourt()
Create an EPPCourt instance. |
Method Summary | |
---|---|
void |
addContact(EPPMarkContact aContact)
Adds a contact to the list of contacts of the court. |
void |
addHolder(EPPMarkContact aHolder)
Adds a holder to the list of holders of the court. |
void |
addLabel(java.lang.String aLabel)
Adds a domain name label to the domain name labels that corresponds to the court. |
void |
addRegions(java.lang.String aRegion)
Adds a region to the list or regions where the mark is protected. |
java.lang.Object |
clone()
Clone EPPCourt . |
void |
decode(byte[] aMarkArray)
Decode the EPPCourt attributes from the input
byte[] . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPCourt component |
byte[] |
encode()
Encode the court 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 EPPCourt compare. |
java.lang.String |
getCc()
Gets two-character code of the country where the court is located from [ISO3166-2]. |
java.util.List<EPPMarkContact> |
getContacts()
Gets contacts of the court. |
java.lang.String |
getCourtName()
Gets the name of the court. |
java.lang.String |
getGoodsAndServices()
Gets full description of the goods and services mentioned in the treaty or statute registration document. |
java.util.List<EPPMarkContact> |
getHolders()
Gets holders of the court. |
java.lang.String |
getId()
Gets the identifier for the court. |
java.util.List<java.lang.String> |
getLabels()
Gets the domain name labels that corresponds to the court. |
java.lang.String |
getName()
Gets the registered court text string. |
java.util.Date |
getProDate()
Gets the date of protection of the mark. |
java.lang.String |
getRefNum()
Gets the reference number of the mark of the court's opinion. |
java.util.List<java.lang.String> |
getRegions()
Gets the regions where the mark is protected. |
void |
setCc(java.lang.String aCc)
Sets two-character code of the country where the court is located from [ISO3166-2]. |
void |
setContacts(java.util.List<EPPMarkContact> aContacts)
Sets contacts of the court. |
void |
setCourtName(java.lang.String aCourtName)
Sets the name of the court. |
void |
setGoodsAndServices(java.lang.String aGoodsAndServices)
Sets full description of the goods and services mentioned in the treaty or statute registration document. |
void |
setHolders(java.util.List<EPPMarkContact> aHolders)
Sets holders of the court. |
void |
setId(java.lang.String aId)
Sets the identifier for the court. |
void |
setLabels(java.util.List<java.lang.String> aLabels)
Sets the domain name labels that corresponds to the court. |
void |
setName(java.lang.String aName)
Sets the registered court text string. |
void |
setProDate(java.util.Date aProDate)
Sets the date of protection of the mark. |
void |
setRefNum(java.lang.String aRefNum)
Sets the reference number of the mark of the court's opinion. |
void |
setRegions(java.util.List<java.lang.String> aRegions)
Sets the regions where the mark is protected. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
Constructor Detail |
---|
public EPPCourt()
EPPCourt
instance. Use the setter methods to set
the attributes of the instance.
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCourt
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPCourt
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic byte[] encode() throws EPPEncodeException
byte[]
.
EPPEncodeException
- Error encoding the courtpublic 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
EPPCourt
attributes from the input
byte[]
.
aMarkArray
- byte[]
to decode the attribute values
EPPDecodeException
- Error decoding the byte[]
.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPCourt
component
decode
in interface EPPCodecComponent
aElement
- Root element of the EPPCourt
EPPDecodeException
- Error decoding the EPPCourt
public boolean equals(java.lang.Object aObject)
EPPCourt
compare.
equals
in class java.lang.Object
aObject
- EPPCourt
instance to compare with
public java.lang.String getId()
null
otherwise.public void setId(java.lang.String aId)
aId
- Identifier for the courtpublic java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- the registered court text stringpublic java.util.List<EPPMarkContact> getHolders()
List
otherwise.public void setHolders(java.util.List<EPPMarkContact> aHolders)
aHolders
- the holders of the courtpublic void addHolder(EPPMarkContact aHolder)
aHolder
- Holder to add to list of holders of the court.public java.util.List<EPPMarkContact> getContacts()
List
otherwise.public void setContacts(java.util.List<EPPMarkContact> aContacts)
aContacts
- the contacts of the courtpublic void addContact(EPPMarkContact aContact)
aContact
- Contact to add to list of contacts of the court.public 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 treaty or
statutepublic 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 getRefNum()
null
otherwise.public void setRefNum(java.lang.String aRefNum)
aRefNum
- Reference number of the mark of the court's opinion.public java.util.Date getProDate()
null
otherwise.public void setProDate(java.util.Date aProDate)
aProDate
- The date of protection of the mark.public java.lang.String getCc()
null
otherwise.public void setCc(java.lang.String aCc)
aCc
- Two-character code of the country where the court is located
from [ISO3166-2].public java.util.List<java.lang.String> getRegions()
List
otherwise.public void setRegions(java.util.List<java.lang.String> aRegions)
aRegions
- The regions where the mark is protected.public void addRegions(java.lang.String aRegion)
aRegion
- Region where the mark is protected.public java.lang.String getCourtName()
null
otherwise.public void setCourtName(java.lang.String aCourtName)
aCourtName
- The name of the court.public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |