EPP RTK
for Java v 0.3.10

com.tucows.oxrs.epp.rtk.xml
Class EPPDomainBase

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.tucows.oxrs.epp.rtk.RTKBase
              |
              +--com.tucows.oxrs.epp.rtk.xml.EPPXMLBase
                    |
                    +--com.tucows.oxrs.epp.rtk.xml.EPPDomainBase
All Implemented Interfaces:
org.omg.CORBA.Object
Direct Known Subclasses:
EPPDomainCheck, EPPDomainCreate, EPPDomainDelete, EPPDomainInfo, EPPDomainRenew, EPPDomainTransfer, EPPDomainUpdate

public abstract class EPPDomainBase
extends EPPXMLBase

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


Field Summary
protected static java.util.Hashtable contact_type_hash_
           
protected static java.lang.String[] contact_type_to_string_array_
           
protected static java.util.Hashtable domain_status_hash_
          Hashtable to allow for conversion from String domain status to epp_DomainStatusType.
static java.lang.String[] period_unit_to_string_array_
          Array to allow for conversion from epp_DomainPeriodUnitType to a String representation of the unit type.
protected static java.lang.String[] status_to_string_array_
          Array to allow for conversion from epp_DomainStatusType to a String representation of the domain status.
 
Fields inherited from class com.tucows.oxrs.epp.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.epp.rtk.RTKBase
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT
 
Constructor Summary
EPPDomainBase()
          Default constructor.
EPPDomainBase(java.lang.String xml)
          Constructor with XML String Also initializes the static Hashtables.
 
Method Summary
static java.lang.String domainContactTypeToString(epp_DomainContactType contact_type)
          Convenience method to transform an epp_DomainContactType to a real domain type string (i.e.
static epp_DomainStatusType domainStatusFromString(java.lang.String s)
           
static java.lang.String domainStatusToString(epp_DomainStatusType status_type)
          Convenience method to transform an epp_DomainStatusType to a real domain status string.
protected static void initContactTypeHash()
           
protected static void initDomainStatusHash()
           
static void initHashes()
           
protected  void setCommonAttributes(org.w3c.dom.Element command)
          Sets the common XML attributes required for the domain object (eg.
 
Methods inherited from class com.tucows.oxrs.epp.rtk.xml.EPPXMLBase
addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, getCheckResultFor, getDocumentElement, getElement, getNode, getUnspecNode, getXML, initAuthInfoStringToTypeHash, initTransferStatusToTypeHash, parseGenericResult, prepareAuthInfo, prepareCreds, prepareUnspecElement, stringListToXML, transferStatusToString
 
Methods inherited from class com.tucows.oxrs.epp.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
 

Field Detail

domain_status_hash_

protected static java.util.Hashtable domain_status_hash_
Hashtable to allow for conversion from String domain status to epp_DomainStatusType.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

status_to_string_array_

protected static java.lang.String[] status_to_string_array_
Array to allow for conversion from epp_DomainStatusType to a String representation of the domain status. The epp_DomainStatusType static classes have a value() member function which returns their integer position in the enum.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

contact_type_hash_

protected static java.util.Hashtable contact_type_hash_
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

contact_type_to_string_array_

protected static java.lang.String[] contact_type_to_string_array_
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

period_unit_to_string_array_

public static java.lang.String[] period_unit_to_string_array_
Array to allow for conversion from epp_DomainPeriodUnitType to a String representation of the unit type. The epp_DomainPeriodUnitType static classes have a value() member function which returns their integer position in the enum.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainPeriodUnitType enum
Constructor Detail

EPPDomainBase

public EPPDomainBase()
Default constructor. Initializes the static Hashtables.

EPPDomainBase

public EPPDomainBase(java.lang.String xml)
Constructor with XML String Also initializes the static Hashtables.
Method Detail

initHashes

public static void initHashes()

initDomainStatusHash

protected static void initDomainStatusHash()

initContactTypeHash

protected static void initContactTypeHash()

setCommonAttributes

protected void setCommonAttributes(org.w3c.dom.Element command)
Sets the common XML attributes required for the domain object (eg. xmlns:domain, xsi:schemaLocation)
Parameters:
The - domain action Element (eg Element with tag name "domain:create")

domainStatusToString

public static java.lang.String domainStatusToString(epp_DomainStatusType status_type)
Convenience method to transform an epp_DomainStatusType to a real domain status string.

domainContactTypeToString

public static java.lang.String domainContactTypeToString(epp_DomainContactType contact_type)
Convenience method to transform an epp_DomainContactType to a real domain type string (i.e. admin, billing, tech).

domainStatusFromString

public static epp_DomainStatusType domainStatusFromString(java.lang.String s)

EPP RTK
for Java v 0.3.10

Copyright © 2001 - Tucows, Inc.