Class PeriodObjectModel

java.lang.Object
com.highdeal.chrono.hci.PeriodObjectModel
All Implemented Interfaces:
IPeriodObjectModel, XMLMarshallable

public class PeriodObjectModel extends Object implements XMLMarshallable, IPeriodObjectModel
This Java class defines a period object that represents a data object (see XML-marshallable element) valid upon a certain period of time specified by a start timestamp and an end timestamp; This class is necessary to handle a chronology of data elements.

Note

The timestamps can be null, meaning that the object has no defined starting and/or ending.

See Also:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="period">
   <xs:complexType>
     <xs:sequence>
       <xs:any minOccurs="0" maxOccurs="1"/>
     </xs:sequence>
     <xs:attribute name="start" type="xs:dateTime"/>
     <xs:attribute name="end" type="xs:dateTime"/>
   </xs:complexType>
 </xs:element>

  • Constructor Details

    • PeriodObjectModel

      public PeriodObjectModel()
      Builds an empty period object.
    • PeriodObjectModel

      public PeriodObjectModel(Date start, Date end, XMLMarshallable element)
      Builds a full period object for an XML-marshallable element.
      Parameters:
      start - The start date for the element
      end - The end date for the element
      element - The XML-marshallable element that is valid in this period
  • Method Details