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. |
Constructor Summary |
EPPDomainBase()
Default constructor. |
EPPDomainBase(java.lang.String xml)
Constructor with XML String
Also initializes the static Hashtables. |
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 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 |
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
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.
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)
Copyright © 2001 - Tucows, Inc.