Package com.verisign.epp.codec.mark
Class EPPTreatyOrStatute
java.lang.Object
com.verisign.epp.codec.mark.EPPTreatyOrStatute
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for a Treaty or Statute that can be included in the list of treaty or
statutes 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 treaty or statute.voidaddHolder(EPPMarkContact aHolder) Adds a holder to the list of holders of the treaty or statute.voidAdds a domain name label to the domain name labels that corresponds to the treaty or statute.voidaddProtection(EPPProtection aProtection) Adds a protection to the list of protections of the treaty or statute.clone()CloneEPPTreatyOrStatute.voiddecode(byte[] aMarkArray) Decode theEPPTreatyOrStatuteattributes from the inputbyte[].voidDecode theEPPTreatyOrStatutecomponentbyte[]encode()Encode the treaty or statute to abyte[].Sets all this instance's data in the given XML documentbooleanimplements a deepEPPTreatyOrStatutecompare.Gets contacts of the treaty or statute.Gets the execution date of the treaty or statute.Gets full description of the goods and services mentioned in the treaty or statute registration document.Gets holders of the treaty or statute.getId()Gets the identifier for the treaty or statute.Gets the domain name labels that corresponds to the treaty or statute.getName()Gets the registered treaty or statute text string.Returns the XML namespace associated with theEPPCodecComponent.Gets the date of protection of the mark.Gets protections of the treaty or statute.Gets the reference number of the mark of the treaty or statute.getTitle()Gets the title of the treaty or statute.voidsetContacts(List<EPPMarkContact> aContacts) Sets contacts of the treaty or statute.voidsetExecDate(Date aExecDate) Sets the execution date of the treaty or statute.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 treaty or statute.voidSets the identifier for the treaty or statute.voidSets the domain name labels that corresponds to the treaty or statute.voidSets the registered treaty or statute text string.voidsetProDate(Date aProDate) Sets the date of protection of the mark.voidsetProtections(List<EPPProtection> aProtections) Sets protections of the treaty or statute.voidSets the reference number of the mark of the treaty or statute.voidSets the title of the treaty or statute.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the treaty or statute local name- See Also:
-
ELM_NAME
Constant for the treaty or statute tag- See Also:
-
-
Constructor Details
-
EPPTreatyOrStatute
public EPPTreatyOrStatute()Create anEPPTreatyOrStatuteinstance. Use the setter methods to set the attributes of the instance.
-
-
Method Details
-
clone
CloneEPPTreatyOrStatute.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPTreatyOrStatute - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode the treaty or statute to abyte[].- Returns:
- Encoded treaty or statute
- Throws:
EPPEncodeException- Error encoding the treaty or statute
-
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 theEPPTreatyOrStatuteattributes from the inputbyte[].- Parameters:
aMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding thebyte[].
-
decode
Decode theEPPTreatyOrStatutecomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPTreatyOrStatute- Throws:
EPPDecodeException- Error decoding theEPPTreatyOrStatute
-
equals
implements a deepEPPTreatyOrStatutecompare. -
getId
Gets the identifier for the treaty or statute.- Returns:
- The identifier for the treaty or statute if set;
nullotherwise.
-
setId
Sets the identifier for the treaty or statute.- Parameters:
aId- Identifier for the treaty or statute
-
getName
Gets the registered treaty or statute text string.- Returns:
- The registered treaty or statute text string if set;
nullotherwise.
-
setName
Sets the registered treaty or statute text string.- Parameters:
aName- the registered treaty or statute text string
-
getHolders
Gets holders of the treaty or statute.- Returns:
- the holders of the treaty or statute if set; Empty
Listotherwise.
-
setHolders
Sets holders of the treaty or statute.- Parameters:
aHolders- the holders of the treaty or statute
-
addHolder
Adds a holder to the list of holders of the treaty or statute.- Parameters:
aHolder- Holder to add to list of holders of the treaty or statute.
-
getContacts
Gets contacts of the treaty or statute.- Returns:
- the contacts of the treaty or statute if set; Empty
Listotherwise.
-
setContacts
Sets contacts of the treaty or statute.- Parameters:
aContacts- the contacts of the treaty or statute
-
addContact
Adds a contact to the list of contacts of the treaty or statute.- Parameters:
aContact- Contact to add to list of contacts of the treaty or statute.
-
getProtections
Gets protections of the treaty or statute.- Returns:
- the protections of the treaty or statute if set; Empty
Listotherwise.
-
setProtections
Sets protections of the treaty or statute.- Parameters:
aProtections- the protections of the treaty or statute
-
addProtection
Adds a protection to the list of protections of the treaty or statute.- Parameters:
aProtection- Protection to add to list of protections of the treaty or statute.
-
getLabels
Gets the domain name labels that corresponds to the treaty or statute.- Returns:
- the domain name labels that corresponds to the treaty or statute
if set; Empty
Listotherwise.
-
setLabels
Sets the domain name labels that corresponds to the treaty or statute.- 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 treaty or statute.- 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 treaty or statute.- Returns:
- Reference number of the mark of the treaty or statute if defined;
nullotherwise.
-
setRefNum
Sets the reference number of the mark of the treaty or statute.- Parameters:
aRefNum- Reference number of the mark of the treaty or statute.
-
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.
-
getTitle
Gets the title of the treaty or statute.- Returns:
- The title of the treaty or statute.
-
setTitle
Sets the title of the treaty or statute.- Parameters:
aTitle- The title of the treaty or statute.
-
getExecDate
Gets the execution date of the treaty or statute.- Returns:
- The execution date of the treaty or statute if set;
nullotherwise.
-
setExecDate
Sets the execution date of the treaty or statute.- Parameters:
aExecDate- The execution date of the treaty or statute
-
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.
-