class EppIpAddress

This EppIpAddress class implements EPP IP Address entity.

Inheritance:


Public Fields

[more]static const char* TYPE_V4
IP address type for "v4"
[more]static const char* TYPE_V6
IP address type for "v6"

Public Methods

[more] EppIpAddress()
Creates an EppAddress object
[more] EppIpAddress( DOMString address )
Creates an EppAddress object with the default address type, "v4"
[more] EppIpAddress( DOMString address, DOMString type )
Creates an EppAddress object with an address type, either "v4" (default) or "v6"
[more] ~EppIpAddress()
Destructor
[more]DOMString getType()
Gets the IP address type, either "v4" or "v6"
[more]void setType( DOMString type )
Sets the IP address type, either "v4" or "v6"
[more]DOMString getAddress()
Gets the IP address
[more]void setAddress( DOMString address )
Sets the IP address
[more]DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppIpAddress object into an XML element
[more]static EppIpAddress* fromXML( const DOM_Node& root )
Converts an XML element into an EppIpAddress 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 EppIpAddress class implements EPP IP Address entity.

ostatic const char* TYPE_V4
IP address type for "v4"

ostatic const char* TYPE_V6
IP address type for "v6"

o EppIpAddress()
Creates an EppAddress object

o EppIpAddress( DOMString address )
Creates an EppAddress object with the default address type, "v4"

o EppIpAddress( DOMString address, DOMString type )
Creates an EppAddress object with an address type, either "v4" (default) or "v6"

o ~EppIpAddress()
Destructor

oDOMString getType()
Gets the IP address type, either "v4" or "v6"

ovoid setType( DOMString type )
Sets the IP address type, either "v4" or "v6"

oDOMString getAddress()
Gets the IP address

ovoid setAddress( DOMString address )
Sets the IP address

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

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

ostatic EppIpAddress* fromXML( const DOM_Node& root )
Converts an XML element into an EppIpAddress object. The caller of this method must make sure that the root node is of the EPP IP Address type.

Parameters:
root - root node for an EppIpAddress object in XML format
Returns:
an EppIpAddress object, or null if the node is invalid


This class has no child classes.
Author:
Ning Zhang ning.zhang@neustar.com
Version:
$Revision$ $Date$

Alphabetic index HTML hierarchy of classes or Java


Copyright © 2001 NeuStar, Inc. All Rights Reserved.