com.liberty.rtk.addon

Class DomainTrademark

Implemented Interfaces:
epp_Unspec

public class DomainTrademark
extends EPPXMLBase
implements epp_Unspec

This class is used to exchange Domain Trademark data with the Afilias .info Registry. The data should only be used in the OT&E environment and during the live Sunrise period of the registry's operation. During this time the Registry will required the trademark data on domain creation.
See Also:
TrademarkExample, com.tucows.oxrs.epp02.rtk.xml.EPPDomainCreate, com.tucows.oxrs.epp02.rtk.xml.EPPDomainInfo, com.tucows.oxrs.epp02.rtk.xml.EPPDomainUpdate

Constructor Summary

DomainTrademark()
Default constructor
DomainTrademark(String xml)
Constructor with Domain Trademark Unspec XML string to automatically parse.

Method Summary

void
fromXML(String xml)
Parses an XML String of trademark data from the extension section of a response from the Registry.
String
getCountry()
Accessor method for the trademark country data member.
Date
getDate()
Deprecated. Please use getDateAsString() instead.
String
getDateAsString()
Accessor method for the trademark date data member.
String
getName()
Accessor method for the trademark name data member.
String
getNumber()
Accessor method for the trademark number data member.
void
setCountry(String value)
Accessor method for the trademark country data member.
void
setDate(Date value)
Deprecated. Please use setDate(String) instead.
void
setDate(String value)
Accessor method for the trademark date data member.
void
setName(String value)
Accessor method for the trademark name data member.
void
setNumber(String value)
Accessor method for the trademark number data member.
String
toXML()
Converts the trademark data into XML to be put into the extension section of the request.

Constructor Details

DomainTrademark

public DomainTrademark()
Default constructor

DomainTrademark

public DomainTrademark(String xml)
            throws epp_XMLException
Constructor with Domain Trademark Unspec XML string to automatically parse.
Parameters:
xml - The EPP Domain Info response XML String

Method Details

fromXML

public void fromXML(String xml)
            throws epp_XMLException
Parses an XML String of trademark data from the extension section of a response from the Registry. Implemented method from org.openrtk.idl.epp02.epp_Unspec interface.
Parameters:
See Also:
org.openrtk.idl.epp02.epp_Action

getCountry

public String getCountry()
Accessor method for the trademark country data member.
Returns:
value String

getDate

public Date getDate()

Deprecated. Please use getDateAsString() instead.

Accessor method for the trademark date data member. Returns the date as a Date object. If the date string cannot be parsed into a date object, then null is returned.
Returns:
The date as a Date object or null

getDateAsString

public String getDateAsString()
Accessor method for the trademark date data member.
Returns:
The date as a String

getName

public String getName()
Accessor method for the trademark name data member.
Returns:
The trademark name

getNumber

public String getNumber()
Accessor method for the trademark number data member.
Returns:
value String

setCountry

public void setCountry(String value)
Accessor method for the trademark country data member. Must be a two-character ISO country code.
Parameters:
value - String

setDate

public void setDate(Date value)

Deprecated. Please use setDate(String) instead.

Accessor method for the trademark date data member.
Parameters:
value - The new date value

setDate

public void setDate(String value)
Accessor method for the trademark date data member.
Parameters:
value - java.util.String

setName

public void setName(String value)
Accessor method for the trademark name data member.
Parameters:
value - String

setNumber

public void setNumber(String value)
Accessor method for the trademark number data member.
Parameters:
value - String

toXML

public String toXML()
            throws epp_XMLException
Converts the trademark data into XML to be put into the extension section of the request. Implemented method from org.openrtk.idl.epp02.epp_Unspec interface.
See Also:
org.openrtk.idl.epp02.epp_Unspec

Copyright © 2001-2003 - Afilias Limited