EPP 0.2.4

com.neulevel.epp.core
Class EppContactType

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.EppContactType

public class EppContactType
extends EppEntity

This EppContactType class implements EPP Contact Type entity. Currently, only EPP Domain objects have contact types defined:

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

Constructor Summary
EppContactType(java.lang.String id)
          Creates an EppContactType object with the id of a contact object
EppContactType(java.lang.String id, java.lang.String type)
          Creates an EppContactType object with the id of a contact object and a type string
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppContactType object.
 java.lang.String getId()
          Gets the id of the contact
 java.lang.String getType()
          Gets the type of the contact
 void setId(java.lang.String id)
          Sets the id of the contact
 void setType(java.lang.String type)
          Sets the type of the contact
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppContactType object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppContactType

public EppContactType(java.lang.String id)
Creates an EppContactType object with the id of a contact object

EppContactType

public EppContactType(java.lang.String id,
                      java.lang.String type)
Creates an EppContactType object with the id of a contact object and a type string
Method Detail

getId

public java.lang.String getId()
Gets the id of the contact

setId

public void setId(java.lang.String id)
Sets the id of the contact

getType

public java.lang.String getType()
Gets the type of the contact

setType

public void setType(java.lang.String type)
Sets the type of the contact

toXML

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

fromXML

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

toString

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

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.