class EppContactData

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

Inheritance:


Public Methods

[more] EppContactData()
Creates an EppContactData object
[more] EppContactData( DOMString name, EppAddress& address )
Creates an EppContactData object without organization value
[more] EppContactData( DOMString name, DOMString org, EppAddress& address )
Creates an EppContactData object with organization name
[more] ~EppContactData()
Destructor
[more]DOMString getName()
Gets the name of the contact
[more]void setName( DOMString name )
Sets the name of the contact
[more]DOMString getOrganization()
Gets the organization name of the contact
[more]void setOrganization( DOMString org )
Sets the organization name of the contact
[more]bool getOrganizationFlag()
Gets the flag indicating that the organization name should be nullified
[more]void setOrganizationFlag( bool flag )
Sets the flag indicating that the organization name should be nullified
[more]EppAddress getAddress()
Gets the address of the contact
[more]void setAddress( EppAddress& address )
Sets the address of the contact
[more]DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppContactData object into an XML element
[more]static EppContactData* fromXML( const DOM_Node& root )
Converts an XML element into an EppContactData object.


Inherited from EppEntity:

Public Methods

ovirtual int getEntityType()
obool instanceOf( const int type )
ovirtual DOMString toString()

Protected Methods

oDOMString toString( const DOMString &tag )


Documentation

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

o EppContactData()
Creates an EppContactData object

o EppContactData( DOMString 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

o EppContactData( DOMString name, DOMString 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

o ~EppContactData()
Destructor

oDOMString getName()
Gets the name of the contact

ovoid setName( DOMString name )
Sets the name of the contact

oDOMString getOrganization()
Gets the organization name of the contact

ovoid setOrganization( DOMString org )
Sets the organization name of the contact

obool getOrganizationFlag()
Gets the flag indicating that the organization name should be nullified

ovoid setOrganizationFlag( bool flag )
Sets the flag indicating that the organization name should be nullified

oEppAddress getAddress()
Gets the address of the contact

ovoid setAddress( EppAddress& address )
Sets the address of the contact

oDOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppContactData object into an XML element

Parameters:
doc - the XML DOM_Element object
tag - the tag/element name for the EppContactData object
Returns:
an DOM_Element object

ostatic EppContactData* fromXML( const 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


This class has no child classes.
Author:
Ning Zhang ning.zhang@neustar.com
Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $

Alphabetic index HTML hierarchy of classes or Java


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