org.openprovenance.model
Class WasTriggeredBy

java.lang.Object
  extended by org.openprovenance.model.WasTriggeredBy
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString, Annotable, Edge, HasAccounts, Identifiable
Direct Known Subclasses:
RdfWasTriggeredBy

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

Java class for WasTriggeredBy complex type.

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

 <complexType name="WasTriggeredBy">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="effect" type="{http://openprovenance.org/model/v1.1.a}ProcessRef"/>
         <element name="cause" type="{http://openprovenance.org/model/v1.1.a}ProcessRef"/>
         <element name="account" type="{http://openprovenance.org/model/v1.1.a}AccountRef" maxOccurs="unbounded" minOccurs="0"/>
         <element name="time" type="{http://openprovenance.org/model/v1.1.a}OTime" minOccurs="0"/>
         <element ref="{http://openprovenance.org/model/v1.1.a}annotation" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<AccountRef> account
           
protected  List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotation
           
protected  ProcessRef cause
           
protected  ProcessRef effect
           
protected  String id
           
protected  OTime time
           
 
Constructor Summary
WasTriggeredBy()
           
 
Method Summary
 boolean equals(Object object)
           
 void equals(Object object, EqualsBuilder equalsBuilder)
           
 List<AccountRef> getAccount()
          Gets the value of the account property.
 List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> getAnnotation()
          Gets the value of the annotation property.
 ProcessRef getCause()
          Gets the value of the cause property.
 ProcessRef getEffect()
          Gets the value of the effect property.
 String getId()
          Gets the value of the id property.
 OTime getTime()
          Gets the value of the time property.
 int hashCode()
           
 void hashCode(HashCodeBuilder hashCodeBuilder)
           
 void setCause(ProcessRef value)
          Sets the value of the cause property.
 void setEffect(ProcessRef value)
          Sets the value of the effect property.
 void setId(String value)
          Sets the value of the id property.
 void setTime(OTime value)
          Sets the value of the time property.
 String toString()
           
 void toString(ToStringBuilder toStringBuilder)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

effect

protected ProcessRef effect

cause

protected ProcessRef cause

account

protected List<AccountRef> account

time

protected OTime time

annotation

protected List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotation

id

protected String id
Constructor Detail

WasTriggeredBy

public WasTriggeredBy()
Method Detail

getEffect

public ProcessRef getEffect()
Gets the value of the effect property.

Specified by:
getEffect in interface Edge
Returns:
possible object is ProcessRef

setEffect

public void setEffect(ProcessRef value)
Sets the value of the effect property.

Parameters:
value - allowed object is ProcessRef

getCause

public ProcessRef getCause()
Gets the value of the cause property.

Specified by:
getCause in interface Edge
Returns:
possible object is ProcessRef

setCause

public void setCause(ProcessRef value)
Sets the value of the cause property.

Parameters:
value - allowed object is ProcessRef

getAccount

public List<AccountRef> getAccount()
Gets the value of the account property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the account property.

For example, to add a new item, do as follows:

    getAccount().add(newItem);
 

Objects of the following type(s) are allowed in the list AccountRef

Specified by:
getAccount in interface HasAccounts

getTime

public OTime getTime()
Gets the value of the time property.

Returns:
possible object is OTime

setTime

public void setTime(OTime value)
Sets the value of the time property.

Parameters:
value - allowed object is OTime

getAnnotation

public List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> getAnnotation()
Gets the value of the annotation property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the annotation property.

For example, to add a new item, do as follows:

    getAnnotation().add(newItem);
 

Objects of the following type(s) are allowed in the list JAXBElement<Type> JAXBElement<Label> JAXBElement<PName> JAXBElement<Profile> JAXBElement<EmbeddedAnnotation> JAXBElement<Value>

Specified by:
getAnnotation in interface Annotable

getId

public String getId()
Gets the value of the id property.

Specified by:
getId in interface Identifiable
Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Specified by:
setId in interface Identifiable
Parameters:
value - allowed object is String

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 © 2010. All Rights Reserved.