EPP 0.4.9

com.neulevel.epp.core
Class EppContactType

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by 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.2 $ $Date: 2006/03/01 01:35:38 $
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.
static java.util.Vector getContactId(java.util.Vector contact, java.lang.String type)
          Gets a sub-list of contact ids, given a list of contact types and a type string
 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


getContactId

public static java.util.Vector getContactId(java.util.Vector contact,
                                            java.lang.String type)
Gets a sub-list of contact ids, given a list of contact types and a type string

Parameters:
contact - a list of EppContactType objects
type - the type of contacts to be extracted from the list
Returns:
a list of contact ids, or null if not found

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppContactType object into an XML element

Specified by:
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()
Specified by:
toString in class EppEntity

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.