- All Superinterfaces:
Element,HasLabel,HasLocation,HasOther,HasType,Identifiable,Statement,StatementOrBundle
- All Known Implementing Classes:
Activity
public interface Activity
extends Identifiable, HasLabel, HasType, HasLocation, HasOther, Statement, Element
Interface for the PROV Activity complex type.
PROV-DM Definition for Activity: An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities. *
Relevant Factory Methods:
-
ProvFactory.newActivity(QualifiedName) -
ModelConstructor.newActivity(org.openprovenance.prov.model.QualifiedName, javax.xml.datatype.XMLGregorianCalendar, javax.xml.datatype.XMLGregorianCalendar, java.util.Collection)
The following schema fragment specifies the expected content contained within this type.
<complexType name="Activity">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/prov#}label" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/prov#}location" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/prov#}type" maxOccurs="unbounded" minOccurs="0"/>
<any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute ref="{http://www.w3.org/ns/prov#}id"/>
</restriction>
</complexContent>
</complexType>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the endTime property.Gets the value of the startTime property.voidsetEndTime(XMLGregorianCalendar value) Sets the value of the endTime property.voidsetStartTime(XMLGregorianCalendar value) Sets the value of the startTime property.Methods inherited from interface org.openprovenance.prov.model.HasLocation
getLocationMethods inherited from interface org.openprovenance.prov.model.Identifiable
getId, setIdMethods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
Method Details
-
getStartTime
XMLGregorianCalendar getStartTime()Gets the value of the startTime property.- Returns:
- possible object is
XMLGregorianCalendar
-
setStartTime
Sets the value of the startTime property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getEndTime
XMLGregorianCalendar getEndTime()Gets the value of the endTime property.- Returns:
- possible object is
XMLGregorianCalendar
-
setEndTime
Sets the value of the endTime property.- Parameters:
value- allowed object isXMLGregorianCalendar
-