EppAddress
This EppAddress
class implements EPP Address entity used in the EPP Contact objects.
Inheritance:
Public Methods
-
EppAddress()
- Creates an
EppAddress
object without any contents
-
EppAddress( DOMString city, DOMString sp, DOMString pc, DOMString cc )
- Creates an
EppAddress
object without street addresses
-
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
-
~EppAddress()
- Destructor
-
DOMString* getStreet()
- Gets the streets lines stored in a DOMString array
-
void setStreet( DOMString street[] )
- Sets the street lines stored in a string array
-
void setStreet( int index, DOMString street )
- Sets the street line, given an line index
-
DOMString getCity()
- Gets the city string
-
void setCity( DOMString city )
- Sets the city string
-
DOMString getState()
- Gets the province or state string
-
void setState( DOMString sp )
- Sets the province or state string
-
DOMString getPostalCode()
- Gets the postal code
-
void setPostalCode( DOMString pc )
- Sets the postal code
-
DOMString getCountryCode()
- Gets the country code
-
void setCountryCode( DOMString cc )
- Sets the country code
-
bool isNull()
- Checks if an address is empty
-
static EppAddress* fromXML( const DOM_Node &root )
- Converts an XML element into an
EppAddress
object.
-
DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
- Converts the
EppAddress
object into an XML element
-
DOMString toString()
- Convert an EppAddress into XML an string, with its default tag name
Public Methods
-
virtual int getEntityType()
-
bool instanceOf( const int type )
Documentation
This EppAddress
class implements EPP Address entity used in
the EPP Contact objects.
- EppAddress()
-
Creates an
EppAddress
object without any contents
- EppAddress( DOMString city, DOMString sp, DOMString pc, DOMString cc )
-
Creates an
EppAddress
object without street addresses
- 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
- ~EppAddress()
-
Destructor
- DOMString* getStreet()
-
Gets the streets lines stored in a DOMString array
- void setStreet( DOMString street[] )
-
Sets the street lines stored in a string array
- void setStreet( int index, DOMString street )
-
Sets the street line, given an line index
- DOMString getCity()
-
Gets the city string
- void setCity( DOMString city )
-
Sets the city string
- DOMString getState()
-
Gets the province or state string
- void setState( DOMString sp )
-
Sets the province or state string
- DOMString getPostalCode()
-
Gets the postal code
- void setPostalCode( DOMString pc )
-
Sets the postal code
- DOMString getCountryCode()
-
Gets the country code
- void setCountryCode( DOMString cc )
-
Sets the country code
- bool isNull()
-
Checks if an address is empty
- static 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
- DOM_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
- DOMString 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: 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.