com.liberty.rtk.addon
Class DomainTrademark

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.tucows.oxrs.epp02.rtk.RTKBase
              |
              +--com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase
                    |
                    +--com.liberty.rtk.addon.DomainTrademark
All Implemented Interfaces:
org.openrtk.idl.epp02.epp_Unspec, org.openrtk.idl.epp02.epp_UnspecOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object, java.io.Serializable

public class DomainTrademark
extends com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase
implements org.openrtk.idl.epp02.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, EPPDomainCreate, EPPDomainInfo, EPPDomainUpdate, Serialized Form

Field Summary
 
Fields inherited from class com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase
auth_type_string_to_type_hash_, auth_type_to_string_array_, transfer_op_to_string_array_, transfer_status_to_string_array_, transfer_status_to_type_hash_, xml_
 
Fields inherited from class com.tucows.oxrs.epp02.rtk.RTKBase
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT
 
Constructor Summary
DomainTrademark()
          Default constructor
DomainTrademark(java.lang.String xml)
          Constructor with Domain Trademark Unspec XML string to automatically parse.
 
Method Summary
 void fromXML(java.lang.String xml)
          Parses an XML String of trademark data from the extension section of a response from the Registry.
 java.lang.String getCountry()
          Accessor method for the trademark country data member.
 java.util.Date getDate()
          Deprecated. Please use getDateAsString() instead.
 java.lang.String getDateAsString()
          Accessor method for the trademark date data member.
 java.lang.String getName()
          Accessor method for the trademark name data member.
 java.lang.String getNumber()
          Accessor method for the trademark number data member.
 void setCountry(java.lang.String value)
          Accessor method for the trademark country data member.
 void setDate(java.util.Date value)
          Deprecated. Please use setDate(String) instead.
 void setDate(java.lang.String value)
          Accessor method for the trademark date data member.
 void setName(java.lang.String value)
          Accessor method for the trademark name data member.
 void setNumber(java.lang.String value)
          Accessor method for the trademark number data member.
 java.lang.String toXML()
          Converts the trademark data into XML to be put into the extension section of the request.
 
Methods inherited from class com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase
addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, createXMLSnippetFromDoc, getCheckResultFor, getDocumentElement, getElement, getNode, getUnspecNode, getXML, initAuthInfoStringToTypeHash, initHashes, initTransferStatusToTypeHash, parseGenericResult, prepareAuthInfo, prepareCreds, prepareUnspecElement, stringListToXML, transferStatusToString
 
Methods inherited from class com.tucows.oxrs.epp02.rtk.RTKBase
_ids, debug, debug, getDebugLevel, getRTKProperties, setDebugLevel
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

DomainTrademark

public DomainTrademark()
Default constructor


DomainTrademark

public DomainTrademark(java.lang.String xml)
                throws org.openrtk.idl.epp02.epp_XMLException
Constructor with Domain Trademark Unspec XML string to automatically parse.

Parameters:
xml - The EPP Domain Info response XML String
Throws:
org.openrtk.idl.epp02.epp_XMLException - if the response XML is not parsable or does not contain the expected data
See Also:
fromXML(String)
Method Detail

setName

public void setName(java.lang.String value)
Accessor method for the trademark name data member.

Parameters:
value - String

setDate

public void setDate(java.util.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(java.lang.String value)
Accessor method for the trademark date data member.

Parameters:
value - java.util.String

setCountry

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

Parameters:
value - String

setNumber

public void setNumber(java.lang.String value)
Accessor method for the trademark number data member.

Parameters:
value - String

getName

public java.lang.String getName()
Accessor method for the trademark name data member.

Returns:
The trademark name

getDate

public java.util.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 java.lang.String getDateAsString()
Accessor method for the trademark date data member.

Returns:
The date as a String

getCountry

public java.lang.String getCountry()
Accessor method for the trademark country data member.

Returns:
value String

getNumber

public java.lang.String getNumber()
Accessor method for the trademark number data member.

Returns:
value String

toXML

public java.lang.String toXML()
                       throws org.openrtk.idl.epp02.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.

Specified by:
toXML in interface org.openrtk.idl.epp02.epp_UnspecOperations
Throws:
org.openrtk.idl.epp02.epp_XMLException - if required data is missing
See Also:
epp_Unspec

fromXML

public void fromXML(java.lang.String xml)
             throws org.openrtk.idl.epp02.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.

Specified by:
fromXML in interface org.openrtk.idl.epp02.epp_UnspecOperations
Throws:
org.openrtk.idl.epp02.epp_XMLException - if the response XML is not parsable or does not contain the expected data
See Also:
epp_Action


Copyright © 2001-2003 - Afilias Limited