Class Time

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Direct Known Subclasses:
    TimeEvaluator

    public class Time
    extends OperatorExpression
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    The Time operator constructs a time value from the given components. At least one component must be specified, and no component may be specified at a precision below an unspecified precision. For example, minute may be null, but if it is, second, and millisecond must all be null as well. Although the milliseconds are specified with a separate component, seconds and milliseconds are combined and represented as a [.id]#Decimal# for the purposes of comparison.

    Java class for Time complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Time">
       <complexContent>
         <extension base="{urn:hl7-org:elm:r1}OperatorExpression">
           <sequence>
             <element name="hour" type="{urn:hl7-org:elm:r1}Expression"/>
             <element name="minute" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
             <element name="second" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
             <element name="millisecond" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Time

        public Time()
    • Method Detail

      • getHour

        public Expression getHour()
        Gets the value of the hour property.
        Returns:
        possible object is Expression
      • setHour

        public void setHour​(Expression value)
        Sets the value of the hour property.
        Parameters:
        value - allowed object is Expression
      • getMinute

        public Expression getMinute()
        Gets the value of the minute property.
        Returns:
        possible object is Expression
      • setMinute

        public void setMinute​(Expression value)
        Sets the value of the minute property.
        Parameters:
        value - allowed object is Expression
      • getSecond

        public Expression getSecond()
        Gets the value of the second property.
        Returns:
        possible object is Expression
      • setSecond

        public void setSecond​(Expression value)
        Sets the value of the second property.
        Parameters:
        value - allowed object is Expression
      • getMillisecond

        public Expression getMillisecond()
        Gets the value of the millisecond property.
        Returns:
        possible object is Expression
      • setMillisecond

        public void setMillisecond​(Expression value)
        Sets the value of the millisecond property.
        Parameters:
        value - allowed object is Expression
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class OperatorExpression
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class OperatorExpression
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class OperatorExpression
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class OperatorExpression