EppContactType
This EppContactType
class implements EPP Contact Type entity.
Inheritance:
Public Methods
-
EppContactType()
- Creates an
EppContactType
object
-
EppContactType( DOMString id, DOMString type )
- Creates an
EppContactType
object with the id of a contact object and a type string
-
~EppContactType()
- Destructor
-
DOMString getId()
- Gets the id of the contact
-
void setId( DOMString id )
- Sets the id of the contact
-
DOMString getType()
- Gets the type of the contact
-
void setType( DOMString type )
- Sets the type of the contact
-
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
-
DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
- Converts the
EppContactType
object into an XML element
-
static EppContactType* fromXML( const DOM_Node& root )
- Converts an XML element into an
EppContactType
object.
Public Methods
-
virtual int getEntityType()
-
bool instanceOf( const int type )
-
virtual DOMString toString()
Protected Methods
-
DOMString toString( const DOMString &tag )
Documentation
This EppContactType
class implements EPP Contact Type entity.
Currently, only EPP Domain objects have contact types defined:
EppContactType()
-
Creates an
EppContactType
object
EppContactType( DOMString id, DOMString type )
-
Creates an
EppContactType
object with the id of
a contact object and a type string
~EppContactType()
-
Destructor
DOMString getId()
-
Gets the id of the contact
void setId( DOMString id )
-
Sets the id of the contact
DOMString getType()
-
Gets the type of the contact
void setType( DOMString type )
-
Sets the type of the contact
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
- 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
DOM_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
static 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.