class EppContactType

This EppContactType class implements EPP Contact Type entity.

Inheritance:


Public Methods

[more] EppContactType()
Creates an EppContactType object
[more] EppContactType( DOMString id, DOMString type )
Creates an EppContactType object with the id of a contact object and a type string
[more] ~EppContactType()
Destructor
[more]DOMString getId()
Gets the id of the contact
[more]void setId( DOMString id )
Sets the id of the contact
[more]DOMString getType()
Gets the type of the contact
[more]void setType( DOMString type )
Sets the type of the contact
[more]static ValueVectorOf<DOMString> * getContactId( ValueVectorOf<EppContactType>* contact, DOMString type )
Gets a sub-list of contact ids, given a list of contact types and a type string
[more]DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppContactType object into an XML element
[more]static EppContactType* fromXML( const DOM_Node& root )
Converts an XML element into an EppContactType 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 EppContactType class implements EPP Contact Type entity. Currently, only EPP Domain objects have contact types defined:

o EppContactType()
Creates an EppContactType object

o EppContactType( DOMString id, DOMString type )
Creates an EppContactType object with the id of a contact object and a type string

o ~EppContactType()
Destructor

oDOMString getId()
Gets the id of the contact

ovoid setId( DOMString id )
Sets the id of the contact

oDOMString getType()
Gets the type of the contact

ovoid setType( DOMString type )
Sets the type of the contact

ostatic ValueVectorOf<DOMString> * getContactId( ValueVectorOf<EppContactType>* contact, DOMString 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
Note: the caller must free the returned list if not null

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

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

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


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.