EPP 0.2.5

com.neulevel.epp.core
Class EppEntity

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
Direct Known Subclasses:
EppAddress, EppAuthInfo, EppCommand, EppContactData, EppContactType, EppCreds, EppCredsOptions, EppE164, EppGreeting, EppHello, EppIpAddress, EppObject, EppPeriod, EppResponse, EppResponseData, EppResult, EppResultMessage, EppServiceMenu, EppStatus, EppSvcsubParam, EppTransactionId, EppUnspec

public abstract class EppEntity
extends java.lang.Object

The EppEntity class is the base class for all entities/objects defined for EPP. All subclasses of EppEntity need to implement the following three methods:

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppEntity()
           
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppEntity object.
abstract  java.lang.String toString()
           
protected  java.lang.String toString(java.lang.String tag)
          Converts the EppEntity object into plain XML text string
abstract  org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppEntity object into an XML element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppEntity

public EppEntity()
Method Detail

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppEntity object. The caller of this method must make sure that the root node is of an EPP entity.
Parameters:
root - root node for an EppEntity object in XML format
Returns:
an EppEntity object, or null if the node is invalid

toXML

public abstract org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                          java.lang.String tag)
Converts the EppEntity object into an XML element
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppEntity object
Returns:
an Element object

toString

protected java.lang.String toString(java.lang.String tag)
Converts the EppEntity object into plain XML text string
Parameters:
tag - XML tag name for the root node
Returns:
a text string representing the EppEntity object in XML format

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

EPP 0.2.5

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.