EppPeriod
This EppPeriod
class implements EPP Domain periodType entity.
Inheritance:
Public Fields
-
static const char UNIT_YEAR
- Period unit for year ('y')
-
static const char UNIT_MONTH
- Period unit for month ('m')
Public Methods
-
EppPeriod()
- Creates an
EppPeriod
object, with default value 1 and unit of 'm'
-
EppPeriod( int value, char unit )
- Creates an
EppPeriod
object
-
~EppPeriod()
- Destructor
-
int getValue()
- Gets the value of the period
-
void setValue( int value )
- Sets the value of the period
-
char getUnit()
- Gets the unit of the period
-
void setUnit( char unit )
- Sets the unit of the period, either 'y' for year or 'm' for month
-
DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
- Converts the
EppPeriod
object into an XML element
-
static EppPeriod* fromXML( const DOM_Node& root )
- Converts an XML element into an
EppPeriod
object.
Public Methods
-
virtual int getEntityType()
-
bool instanceOf( const int type )
-
virtual DOMString toString()
Protected Methods
-
DOMString toString( const DOMString &tag )
Documentation
This EppPeriod
class implements EPP Domain periodType entity.
- static const char UNIT_YEAR
-
Period unit for year ('y')
- static const char UNIT_MONTH
-
Period unit for month ('m')
- EppPeriod()
-
Creates an
EppPeriod
object, with default value
1 and unit of 'm'
- EppPeriod( int value, char unit )
-
Creates an
EppPeriod
object
- ~EppPeriod()
-
Destructor
- int getValue()
-
Gets the value of the period
- void setValue( int value )
-
Sets the value of the period
- char getUnit()
-
Gets the unit of the period
- void setUnit( char unit )
-
Sets the unit of the period, either 'y' for year or 'm' for month
- DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
-
Converts the
EppPeriod
object into an XML element
- Parameters:
- doc - the XML
DOM_Element
object
tag - the tag/element name for the EppPeriod
object
- Returns:
- an
DOM_Element
object
- static EppPeriod* fromXML( const DOM_Node& root )
-
Converts an XML element into an
EppPeriod
object.
The caller of this method must make sure that the root node is of
the EPP Period type.
- Parameters:
- root - root node for an
EppPeriod
object
in XML format
- Returns:
- an
EppPeriod
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 $ $Date: 2001/11/05 20:20:36 $
Alphabetic index HTML hierarchy of classes or Java
Copyright © 2001 NeuStar, Inc. All Rights Reserved.