|
EPP 0.2.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.neulevel.epp.core.EppEntity
com.neulevel.epp.core.EppPeriod
This EppPeriod class implements EPP Domain periodType entity.
| Field Summary | |
static char |
UNIT_MONTH
Period unit for month ('m') |
static char |
UNIT_YEAR
Period unit for year ('y') |
| Constructor Summary | |
EppPeriod(int value,
char unit)
|
|
| Method Summary | |
static EppEntity |
fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppPeriod object. |
char |
getUnit()
Gets the unit of the period |
int |
getValue()
Gets the value of the period |
void |
setUnit(char unit)
Sets the unit of the period, either 'y' for year or 'm' for month |
void |
setValue(int value)
Sets the value of the period |
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc,
java.lang.String tag)
Converts the EppPeriod object into an XML element |
| Methods inherited from class com.neulevel.epp.core.EppEntity |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final char UNIT_YEAR
public static final char UNIT_MONTH
| Constructor Detail |
public EppPeriod(int value,
char unit)
| Method Detail |
public int getValue()
public void setValue(int value)
public char getUnit()
public void setUnit(char unit)
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
java.lang.String tag)
EppPeriod object into an XML element
toXML in class EppEntitydoc - the XML Document objecttag - the tag/element name for the EppPeriod object
Element objectpublic static EppEntity fromXML(org.w3c.dom.Node root)
EppPeriod object.
The caller of this method must make sure that the root node is of
the EPP Period type.
root - root node for an EppPeriod object
in XML format
EppPeriod object, or null if the node
is invalidpublic java.lang.String toString()
toString in class EppEntity
|
EPP 0.2.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||