EPP 0.2.4

com.neulevel.epp.core
Class EppContactData

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

public class EppContactData
extends EppEntity

This EppContactData class implements EPP Contact postalType for recording contact data.

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

Constructor Summary
EppContactData()
          Creates an EppContactData object
EppContactData(java.lang.String name, EppAddress address)
          Creates an EppContactData object without organization value
EppContactData(java.lang.String name, java.lang.String org, EppAddress address)
          Creates an EppContactData object with organization name
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppContactData object.
 EppAddress getAddress()
          Gets the address of the contact
 java.lang.String getName()
          Gets the name of the contact
 java.lang.String getOrganization()
          Gets the organization name of the contact
 void setAddress(EppAddress address)
          Sets the address of the contact
 void setName(java.lang.String name)
          Sets the name of the contact
 void setOrganization(java.lang.String org)
          Sets the organization name of the contact
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppContactData 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

EppContactData

public EppContactData()
Creates an EppContactData object

EppContactData

public EppContactData(java.lang.String name,
                      EppAddress address)
Creates an EppContactData object without organization value
Parameters:
name - name of the contact, either a person or a company
address - address of the contact

EppContactData

public EppContactData(java.lang.String name,
                      java.lang.String org,
                      EppAddress address)
Creates an EppContactData object with organization name
Parameters:
name - name of the contact, either a person or a company
org - name of the organization for the contact
address - address of the contact
Method Detail

getName

public java.lang.String getName()
Gets the name of the contact

setName

public void setName(java.lang.String name)
Sets the name of the contact

getOrganization

public java.lang.String getOrganization()
Gets the organization name of the contact

setOrganization

public void setOrganization(java.lang.String org)
Sets the organization name of the contact

getAddress

public EppAddress getAddress()
Gets the address of the contact

setAddress

public void setAddress(EppAddress address)
Sets the address of the contact

toXML

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

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppContactData object. The caller of this method must make sure that the root node is of the EPP Contact multiDataType.
Parameters:
root - root node for an EppContactData object in XML format
Returns:
an EppContactData 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.