EPP 0.2.5

com.neulevel.epp.core
Class EppObject

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.EppObject
Direct Known Subclasses:
EppContact, EppDomain, EppHost, EppSvcsub

public abstract class EppObject
extends EppEntity

This EppObject class is the base class for all objects registered in the registry via the EPP Protocol.

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

Field Summary
protected  EppAuthInfo authInfo
          The authorization information associated with the EPP object
protected  java.lang.String clID
          The id of the client that is sponsering the EPP Object
static int CONTACT
          Type for EPP Contact objcet
protected  java.util.Calendar crDate
          The timestamp when the EPP Object was created initially
protected  java.lang.String crID
          The id of the client that created the EPP Object initially
static int DOMAIN
          Type for EPP Domain object
protected  java.util.Calendar exDate
          The timestamp when the EPP Object is set to be expired
static int HOST
          Type for EPP Host object
protected  java.lang.String roid
          The ROID of the EPP Object in the registry
protected  java.util.Vector status
          The status list associated with the EPP Object in the registry
static int SVCSUB
          Type for EPP Host object
protected  java.util.Calendar trDate
          The timestamp when the EPP Object was transferred most recently
protected  java.util.Calendar upDate
          The timestamp when the EPP Object was updated most recently
protected  java.lang.String upID
          The id of the client that updated the EPP Object most recently
 
Constructor Summary
EppObject()
           
 
Method Summary
 void addStatus(EppStatus status)
          Adds a status to the EppObject
static EppCommandCreate create(EppObject object, java.lang.String xid)
          Creates an EppCommandCreate object for creating an EPP Object in the registry.
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppObject object
protected  void fromXMLCommon(org.w3c.dom.Node node, java.lang.String name)
          Converts shared EppObject components from XML
 EppAuthInfo getAuthInfo()
          Gets the authorization info of the EppObject
 java.lang.String getClientId()
          Gets the id of the registrar client sponsering the EppObject.
 java.lang.String getClientIdCreated()
          Gets the id of the registrar client creating the EppObject initially
 java.lang.String getClientIdUpdated()
          Gets the id of the registrar client updating the EppObject most recently
 java.util.Calendar getDateCreated()
          Gets the date of the EppObject created
 java.util.Calendar getDateExpired()
          Gets the date of the EppObject expiration date
 java.util.Calendar getDateTransferred()
          Gets the date of the EppObject transferred
 java.util.Calendar getDateUpdated()
          Gets the date of the EppObject updated
 java.lang.String getRoid()
          Gets ROID of the EppObject
 java.util.Vector getStatus()
          Gets the status of the EppObject
 void setAuthInfo(EppAuthInfo authInfo)
          Sets the authorization info of the EppObject
 void setClientId(java.lang.String clientId)
          Sets the id of the registrar client sponsering the EppObject
 void setClientIdCreated(java.lang.String clientId)
          Sets the id of the registrar client creating the EppObject initially
 void setClientIdUpdated(java.lang.String clientId)
          Sets the id of the registrar client updating the EppObject most recently
 void setDateCreated(java.util.Calendar cal)
          Sets the date of the EppObject created
 void setDateExpired(java.util.Calendar cal)
          Sets the expiration date of the EppObject
 void setDateTransferred(java.util.Calendar cal)
          Sets the date of the EppObject transferred
 void setDateUpdated(java.util.Calendar cal)
          Sets the date of the EppObject updated
 void setRoid(java.lang.String roid)
          Sets ROID of the EppObject
protected  void toXMLCommon(org.w3c.dom.Document doc, org.w3c.dom.Element body)
          Converts shared EppObject components into XML
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTACT

public static final int CONTACT
Type for EPP Contact objcet

DOMAIN

public static final int DOMAIN
Type for EPP Domain object

HOST

public static final int HOST
Type for EPP Host object

SVCSUB

public static final int SVCSUB
Type for EPP Host object

roid

protected java.lang.String roid
The ROID of the EPP Object in the registry

status

protected java.util.Vector status
The status list associated with the EPP Object in the registry

clID

protected java.lang.String clID
The id of the client that is sponsering the EPP Object

crID

protected java.lang.String crID
The id of the client that created the EPP Object initially

crDate

protected java.util.Calendar crDate
The timestamp when the EPP Object was created initially

upID

protected java.lang.String upID
The id of the client that updated the EPP Object most recently

upDate

protected java.util.Calendar upDate
The timestamp when the EPP Object was updated most recently

exDate

protected java.util.Calendar exDate
The timestamp when the EPP Object is set to be expired

trDate

protected java.util.Calendar trDate
The timestamp when the EPP Object was transferred most recently

authInfo

protected EppAuthInfo authInfo
The authorization information associated with the EPP object
Constructor Detail

EppObject

public EppObject()
Method Detail

getRoid

public java.lang.String getRoid()
Gets ROID of the EppObject

setRoid

public void setRoid(java.lang.String roid)
Sets ROID of the EppObject

getClientId

public java.lang.String getClientId()
Gets the id of the registrar client sponsering the EppObject.

setClientId

public void setClientId(java.lang.String clientId)
Sets the id of the registrar client sponsering the EppObject

getClientIdCreated

public java.lang.String getClientIdCreated()
Gets the id of the registrar client creating the EppObject initially

setClientIdCreated

public void setClientIdCreated(java.lang.String clientId)
Sets the id of the registrar client creating the EppObject initially

getDateCreated

public java.util.Calendar getDateCreated()
Gets the date of the EppObject created

setDateCreated

public void setDateCreated(java.util.Calendar cal)
Sets the date of the EppObject created

getClientIdUpdated

public java.lang.String getClientIdUpdated()
Gets the id of the registrar client updating the EppObject most recently

setClientIdUpdated

public void setClientIdUpdated(java.lang.String clientId)
Sets the id of the registrar client updating the EppObject most recently

getDateUpdated

public java.util.Calendar getDateUpdated()
Gets the date of the EppObject updated

setDateUpdated

public void setDateUpdated(java.util.Calendar cal)
Sets the date of the EppObject updated

getDateExpired

public java.util.Calendar getDateExpired()
Gets the date of the EppObject expiration date

setDateExpired

public void setDateExpired(java.util.Calendar cal)
Sets the expiration date of the EppObject

getDateTransferred

public java.util.Calendar getDateTransferred()
Gets the date of the EppObject transferred

setDateTransferred

public void setDateTransferred(java.util.Calendar cal)
Sets the date of the EppObject transferred

getAuthInfo

public EppAuthInfo getAuthInfo()
Gets the authorization info of the EppObject

setAuthInfo

public void setAuthInfo(EppAuthInfo authInfo)
Sets the authorization info of the EppObject

getStatus

public java.util.Vector getStatus()
Gets the status of the EppObject

addStatus

public void addStatus(EppStatus status)
Adds a status to the EppObject

fromXMLCommon

protected void fromXMLCommon(org.w3c.dom.Node node,
                             java.lang.String name)
Converts shared EppObject components from XML
Parameters:
node - the node for a shared EppObject component
name - the name of the node for the shared EppObject component

toXMLCommon

protected void toXMLCommon(org.w3c.dom.Document doc,
                           org.w3c.dom.Element body)
Converts shared EppObject components into XML
Parameters:
doc - the XML Document object
body - the XML Element to be attached

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppObject object
Parameters:
root - root node for an EppObject object in XML format

create

public static EppCommandCreate create(EppObject object,
                                      java.lang.String xid)
Creates an EppCommandCreate object for creating an EPP Object in the registry.
Parameters:
object - the EPP Object to be created in the registry
xid - the client transaction id associated with the operation

EPP 0.2.5

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