class EppAddress

This EppAddress class implements EPP Address entity used in the EPP Contact objects.

Inheritance:


Public Methods

[more] EppAddress()
Creates an EppAddress object without any contents
[more] EppAddress( DOMString city, DOMString sp, DOMString pc, DOMString cc )
Creates an EppAddress object without street addresses
[more] EppAddress( DOMString street[], DOMString city, DOMString sp, DOMString pc, DOMString cc )
Creates an EppAddress object with full address information Creates an EppAddress object with one street address
[more] ~EppAddress()
Destructor
[more]DOMString* getStreet()
Gets the streets lines stored in a DOMString array
[more]void setStreet( DOMString street[] )
Sets the street lines stored in a string array
[more]void setStreet( int index, DOMString street )
Sets the street line, given an line index
[more]DOMString getCity()
Gets the city string
[more]void setCity( DOMString city )
Sets the city string
[more]DOMString getState()
Gets the province or state string
[more]void setState( DOMString sp )
Sets the province or state string
[more]DOMString getPostalCode()
Gets the postal code
[more]void setPostalCode( DOMString pc )
Sets the postal code
[more]DOMString getCountryCode()
Gets the country code
[more]void setCountryCode( DOMString cc )
Sets the country code
[more]bool isNull()
Checks if an address is empty
[more]static EppAddress* fromXML( const DOM_Node &root )
Converts an XML element into an EppAddress object.
[more]DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppAddress object into an XML element
[more]DOMString toString()
Convert an EppAddress into XML an string, with its default tag name


Inherited from EppEntity:

Public Methods

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


Documentation

This EppAddress class implements EPP Address entity used in the EPP Contact objects.

o EppAddress()
Creates an EppAddress object without any contents

o EppAddress( DOMString city, DOMString sp, DOMString pc, DOMString cc )
Creates an EppAddress object without street addresses

o EppAddress( DOMString street[], DOMString city, DOMString sp, DOMString pc, DOMString cc )
Creates an EppAddress object with full address information Creates an EppAddress object with one street address

o ~EppAddress()
Destructor

oDOMString* getStreet()
Gets the streets lines stored in a DOMString array

ovoid setStreet( DOMString street[] )
Sets the street lines stored in a string array

ovoid setStreet( int index, DOMString street )
Sets the street line, given an line index

oDOMString getCity()
Gets the city string

ovoid setCity( DOMString city )
Sets the city string

oDOMString getState()
Gets the province or state string

ovoid setState( DOMString sp )
Sets the province or state string

oDOMString getPostalCode()
Gets the postal code

ovoid setPostalCode( DOMString pc )
Sets the postal code

oDOMString getCountryCode()
Gets the country code

ovoid setCountryCode( DOMString cc )
Sets the country code

obool isNull()
Checks if an address is empty

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

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

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

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

oDOMString toString()
Convert an EppAddress into XML an string, with its default tag name


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.