EPP RTK
for Java v 0.7.2

com.tucows.oxrs.epp0705.rtk.xml
Class EPPContactBase

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.tucows.oxrs.epp0705.rtk.RTKBase
              |
              +--com.tucows.oxrs.epp0705.rtk.xml.EPPXMLBase
                    |
                    +--com.tucows.oxrs.epp0705.rtk.xml.EPPContactBase
All Implemented Interfaces:
org.omg.CORBA.Object
Direct Known Subclasses:
EPPContactCheck, EPPContactCreate, EPPContactDelete, EPPContactInfo, EPPContactTransfer, EPPContactUpdate

public abstract class EPPContactBase
extends EPPXMLBase

Base abstract class for the Contact classes. Defines common methods and data members used by all or most Contact classes.


Field Summary
protected static java.util.Hashtable contact_address_type_hash_
          Hashtable to allow for conversion from String contact address type (aka postal info type) to epp_ContactPostalInfoType.
protected static java.util.Hashtable contact_status_hash_
          Hashtable to allow for conversion from String contact status to epp_ContactStatusType.
 
Fields inherited from class com.tucows.oxrs.epp0705.rtk.xml.EPPXMLBase
auth_type_string_to_type_hash_, transfer_status_to_type_hash_, xml_
 
Fields inherited from class com.tucows.oxrs.epp0705.rtk.RTKBase
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT
 
Constructor Summary
protected EPPContactBase()
          Default Constructor.
protected EPPContactBase(java.lang.String xml)
          Constructor with the XML String.
 
Method Summary
protected  org.w3c.dom.Element addressToXML(org.w3c.dom.Document doc, java.lang.String tag_name, epp_ContactNameAddress name_address)
          Converts a given epp_ContactNameAddress to an XML Element.
static epp_ContactStatusType contactStatusFromString(java.lang.String s)
          Convenience method to convert a string status to an instance of epp_ContactStatusType.
static java.lang.String contactStatusToString(epp_ContactStatusType status_type)
          Convenience method to get a contact status string from an epp_ContactStatusType object.
static epp_ContactTrnData getTrnData(org.w3c.dom.NodeList transfer_data_list)
           
static void initContactAddressTypeHash()
           
static void initContactStatusHash()
           
static void initHashes()
           
protected  void setCommonAttributes(org.w3c.dom.Element command)
          Sets the common XML attributes required for the contact object (eg.
 
Methods inherited from class com.tucows.oxrs.epp0705.rtk.xml.EPPXMLBase
addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, createXMLSnippetFromDoc, getAvailResultFor, getCheckResultFor, getDocumentElement, getElement, getExtensionNode, getNode, getPanData, getTransID, getXML, initAuthInfoStringToTypeHash, initTransferStatusToTypeHash, parseGenericCheckResults, parseGenericResult, prepareAuthInfo, prepareExtensionElement, stringListToXML, transferStatusFromString, transferStatusToString
 
Methods inherited from class com.tucows.oxrs.epp0705.rtk.RTKBase
_ids, debug, debug, getDebugLevel, getDebugPrintStream, getRTKProperties, setDebugLevel, setDebugLevel, setDebugPrintStream
 
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
 

Field Detail

contact_status_hash_

protected static java.util.Hashtable contact_status_hash_
Hashtable to allow for conversion from String contact status to epp_ContactStatusType.

See Also:
EPP IDL epp_contact.idl for the definition of the epp_ContactStatusType enum

contact_address_type_hash_

protected static java.util.Hashtable contact_address_type_hash_
Hashtable to allow for conversion from String contact address type (aka postal info type) to epp_ContactPostalInfoType.

See Also:
EPP IDL epp_contact.idl for the definition of the epp_ContactPostalInfoType enum
Constructor Detail

EPPContactBase

protected EPPContactBase()
Default Constructor.


EPPContactBase

protected EPPContactBase(java.lang.String xml)
Constructor with the XML String.

Method Detail

initHashes

public static void initHashes()

initContactStatusHash

public static void initContactStatusHash()

initContactAddressTypeHash

public static void initContactAddressTypeHash()

setCommonAttributes

protected void setCommonAttributes(org.w3c.dom.Element command)
Sets the common XML attributes required for the contact object (eg. xmlns:contact, xsi:schemaLocation)


addressToXML

protected org.w3c.dom.Element addressToXML(org.w3c.dom.Document doc,
                                           java.lang.String tag_name,
                                           epp_ContactNameAddress name_address)
                                    throws epp_XMLException
Converts a given epp_ContactNameAddress to an XML Element. If any of the data members of the epp_ContactNameAddress are null then they are not included in the Element. If they are empty Strings then they are included as empty Elements.

Returns:
Element the resulting contact name/address Element
epp_XMLException

contactStatusToString

public static java.lang.String contactStatusToString(epp_ContactStatusType status_type)
Convenience method to get a contact status string from an epp_ContactStatusType object.


contactStatusFromString

public static epp_ContactStatusType contactStatusFromString(java.lang.String s)
Convenience method to convert a string status to an instance of epp_ContactStatusType.


getTrnData

public static epp_ContactTrnData getTrnData(org.w3c.dom.NodeList transfer_data_list)
                                     throws epp_XMLException
epp_XMLException

EPP RTK
for Java v 0.7.2

Copyright ? 2001-2002 - Tucows, Inc., 2003 - LibertyRMS