T - The concrete type of the period model; This enables to have a custom period.public class BaseChronologyModel<T extends AbstractPeriodObjectModel> extends HCIModelAdapter
Java class defines a chronology represents a list of period objects.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="BaseChronologyModel">
<xs:sequence>
<xs:element name="period" type="AbstractPeriodObjectType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
| Constructor and Description |
|---|
BaseChronologyModel()
Constructs an empty
Chronology model. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
T |
getPeriod(java.util.Date d)
Returns the valid period at the specified date, or
null
if there is no valid period. |
java.util.Vector<T> |
getPeriods()
Provides the list of the periods in this chronology.
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
marshalpublic BaseChronologyModel()
Chronology model.public T getPeriod(java.util.Date d)
null
if there is no valid period.d - The date for which a valid period is to be retrievednull
if no such element existspublic java.util.Vector<T> getPeriods()
PeriodObjectModelpublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.name - The name of tag for the childchild - The child to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic java.lang.String getTagName()
ITagNameProvider