public class EPPTreatyOrStatute extends java.lang.Object implements EPPCodecComponent
EPPMark
.EPPMark
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the treaty or statute local name
|
static java.lang.String |
ELM_NAME
Constant for the treaty or statute tag
|
Constructor and Description |
---|
EPPTreatyOrStatute()
Create an
EPPTreatyOrStatute instance. |
Modifier and Type | Method and Description |
---|---|
void |
addContact(EPPMarkContact aContact)
Adds a contact to the list of contacts of the treaty or statute.
|
void |
addHolder(EPPMarkContact aHolder)
Adds a holder to the list of holders of the treaty or statute.
|
void |
addLabel(java.lang.String aLabel)
Adds a domain name label to the domain name labels that corresponds to
the treaty or statute.
|
void |
addProtection(EPPProtection aProtection)
Adds a protection to the list of protections of the treaty or statute.
|
java.lang.Object |
clone()
Clone
EPPTreatyOrStatute . |
void |
decode(byte[] aMarkArray)
Decode the
EPPTreatyOrStatute attributes from the input
byte[] . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPTreatyOrStatute component |
byte[] |
encode()
Encode the treaty or statute 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
EPPTreatyOrStatute compare. |
java.util.List<EPPMarkContact> |
getContacts()
Gets contacts of the treaty or statute.
|
java.util.Date |
getExecDate()
Gets the execution date of the treaty or statute.
|
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 treaty or statute.
|
java.lang.String |
getId()
Gets the identifier for the treaty or statute.
|
java.util.List<java.lang.String> |
getLabels()
Gets the domain name labels that corresponds to the treaty or statute.
|
java.lang.String |
getName()
Gets the registered treaty or statute text string.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.Date |
getProDate()
Gets the date of protection of the mark.
|
java.util.List<EPPProtection> |
getProtections()
Gets protections of the treaty or statute.
|
java.lang.String |
getRefNum()
Gets the reference number of the mark of the treaty or statute.
|
java.lang.String |
getTitle()
Gets the title of the treaty or statute.
|
void |
setContacts(java.util.List<EPPMarkContact> aContacts)
Sets contacts of the treaty or statute.
|
void |
setExecDate(java.util.Date aExecDate)
Sets the execution date of the treaty or statute.
|
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 treaty or statute.
|
void |
setId(java.lang.String aId)
Sets the identifier for the treaty or statute.
|
void |
setLabels(java.util.List<java.lang.String> aLabels)
Sets the domain name labels that corresponds to the treaty or statute.
|
void |
setName(java.lang.String aName)
Sets the registered treaty or statute text string.
|
void |
setProDate(java.util.Date aProDate)
Sets the date of protection of the mark.
|
void |
setProtections(java.util.List<EPPProtection> aProtections)
Sets protections of the treaty or statute.
|
void |
setRefNum(java.lang.String aRefNum)
Sets the reference number of the mark of the treaty or statute.
|
void |
setTitle(java.lang.String aTitle)
Sets the title of the treaty or statute.
|
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 EPPTreatyOrStatute()
EPPTreatyOrStatute
instance. Use the setter
methods to set the attributes of the instance.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPTreatyOrStatute
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPTreatyOrStatute
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic byte[] encode() throws EPPEncodeException
byte[]
.EPPEncodeException
- Error encoding the treaty or statutepublic 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
EPPTreatyOrStatute
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
EPPTreatyOrStatute
componentdecode
in interface EPPCodecComponent
aElement
- Root element of the EPPTreatyOrStatute
EPPDecodeException
- Error decoding the EPPTreatyOrStatute
public boolean equals(java.lang.Object aObject)
EPPTreatyOrStatute
compare.equals
in class java.lang.Object
aObject
- EPPTreatyOrStatute
instance to compare withpublic java.lang.String getId()
null
otherwise.public void setId(java.lang.String aId)
aId
- Identifier for the treaty or statutepublic java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- the registered treaty or statute text stringpublic java.util.List<EPPMarkContact> getHolders()
List
otherwise.public void setHolders(java.util.List<EPPMarkContact> aHolders)
aHolders
- the holders of the treaty or statutepublic void addHolder(EPPMarkContact aHolder)
aHolder
- Holder to add to list of holders of the treaty or statute.public java.util.List<EPPMarkContact> getContacts()
List
otherwise.public void setContacts(java.util.List<EPPMarkContact> aContacts)
aContacts
- the contacts of the treaty or statutepublic void addContact(EPPMarkContact aContact)
aContact
- Contact to add to list of contacts of the treaty or statute.public java.util.List<EPPProtection> getProtections()
List
otherwise.public void setProtections(java.util.List<EPPProtection> aProtections)
aProtections
- the protections of the treaty or statutepublic void addProtection(EPPProtection aProtection)
aProtection
- Protection to add to list of protections of the treaty or
statute.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 treaty or statute.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 getTitle()
public void setTitle(java.lang.String aTitle)
aTitle
- The title of the treaty or statute.public java.util.Date getExecDate()
null
otherwise.public void setExecDate(java.util.Date aExecDate)
aExecDate
- The execution date of the treaty or statutepublic 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
.