public class Period
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Period(int period)
A validity period specified in the default unit, years.
|
Period(PeriodUnit unit,
int period)
A validity period specified in the given unit.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
appendPeriod(XMLWriter xmlWriter,
org.w3c.dom.Element parent)
Append an XML representation of this Period instance to the list of
child elements of the given parent Element.
|
int |
getPeriod() |
PeriodUnit |
getUnit() |
public Period(int period)
public Period(PeriodUnit unit, int period)
public org.w3c.dom.Element appendPeriod(XMLWriter xmlWriter, org.w3c.dom.Element parent)
xmlWriter
- The XMLWriter that maintains the DOM tree. The work
of creating and inserting the new element is delegated to this object.parent
- The Element which will parent the new element.public PeriodUnit getUnit()
public int getPeriod()