org.openprovenance.model
Class OTime

java.lang.Object
  extended by org.openprovenance.model.OTime
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Direct Known Subclasses:
RdfOTime

public class OTime
extends Object
implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

Observed Time allow for interval of observation, where an event is said to occur no earlier than a given time t1 and no later than a given time t2. When the event is observed to occur at a specific time, it is not convenient to use an interval. Instead, one can use the alternate exactlyAt attribute. We note that exactlyAt is disjoint from noEarlierThan and noLaterThan.

Java class for OTime complex type.

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

 <complexType name="OTime">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
       </sequence>
       <attribute name="noEarlierThan" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="noLaterThan" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="exactlyAt" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  XMLGregorianCalendar exactlyAt
           
protected  XMLGregorianCalendar noEarlierThan
           
protected  XMLGregorianCalendar noLaterThan
           
 
Constructor Summary
OTime()
           
 
Method Summary
 boolean equals(Object object)
           
 void equals(Object object, EqualsBuilder equalsBuilder)
           
 XMLGregorianCalendar getExactlyAt()
          Gets the value of the exactlyAt property.
 XMLGregorianCalendar getNoEarlierThan()
          Gets the value of the noEarlierThan property.
 XMLGregorianCalendar getNoLaterThan()
          Gets the value of the noLaterThan property.
 int hashCode()
           
 void hashCode(HashCodeBuilder hashCodeBuilder)
           
 void setExactlyAt(XMLGregorianCalendar value)
          Sets the value of the exactlyAt property.
 void setNoEarlierThan(XMLGregorianCalendar value)
          Sets the value of the noEarlierThan property.
 void setNoLaterThan(XMLGregorianCalendar value)
          Sets the value of the noLaterThan property.
 String toString()
           
 void toString(ToStringBuilder toStringBuilder)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noEarlierThan

protected XMLGregorianCalendar noEarlierThan

noLaterThan

protected XMLGregorianCalendar noLaterThan

exactlyAt

protected XMLGregorianCalendar exactlyAt
Constructor Detail

OTime

public OTime()
Method Detail

getNoEarlierThan

public XMLGregorianCalendar getNoEarlierThan()
Gets the value of the noEarlierThan property.

Returns:
possible object is XMLGregorianCalendar

setNoEarlierThan

public void setNoEarlierThan(XMLGregorianCalendar value)
Sets the value of the noEarlierThan property.

Parameters:
value - allowed object is XMLGregorianCalendar

getNoLaterThan

public XMLGregorianCalendar getNoLaterThan()
Gets the value of the noLaterThan property.

Returns:
possible object is XMLGregorianCalendar

setNoLaterThan

public void setNoLaterThan(XMLGregorianCalendar value)
Sets the value of the noLaterThan property.

Parameters:
value - allowed object is XMLGregorianCalendar

getExactlyAt

public XMLGregorianCalendar getExactlyAt()
Gets the value of the exactlyAt property.

Returns:
possible object is XMLGregorianCalendar

setExactlyAt

public void setExactlyAt(XMLGregorianCalendar value)
Sets the value of the exactlyAt property.

Parameters:
value - allowed object is XMLGregorianCalendar

equals

public void equals(Object object,
                   EqualsBuilder equalsBuilder)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public void hashCode(HashCodeBuilder hashCodeBuilder)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public void toString(ToStringBuilder toStringBuilder)
Specified by:
toString in interface org.jvnet.jaxb2_commons.lang.ToString

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.