All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openprovenance.prov.validation.report.SomeStatements Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2013.11.10 at 05:05:05 PM GMT 
//


package org.openprovenance.prov.validation.report;

import org.openprovenance.apache.commons.lang.builder.EqualsBuilder;
import org.openprovenance.apache.commons.lang.builder.HashCodeBuilder;
import org.openprovenance.apache.commons.lang.builder.ToStringBuilder;
import org.openprovenance.prov.model.Statement;
import org.openprovenance.prov.model.*;
import org.openprovenance.apache.commons.lang.builder.Equals;
import org.openprovenance.apache.commons.lang.builder.HashCode;
import org.openprovenance.apache.commons.lang.builder.ToString;

import jakarta.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;


/**
 * 

Java class for Statements complex type. * *

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

 * <complexType name="Statements">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <group ref="{http://www.w3.org/ns/prov#}documentElements"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SomeStatements", propOrder = { "entityAndActivityAndWasGeneratedBy" }) @XmlSeeAlso({ MergeReport.class }) public class SomeStatements implements Equals, HashCode, ToString { @XmlElements({ @XmlElement(name = "entity", namespace = "http://www.w3.org/ns/prov#", type = Entity.class), @XmlElement(name = "activity", namespace = "http://www.w3.org/ns/prov#", type = Activity.class), @XmlElement(name = "wasGeneratedBy", namespace = "http://www.w3.org/ns/prov#", type = WasGeneratedBy.class), @XmlElement(name = "used", namespace = "http://www.w3.org/ns/prov#", type = Used.class), @XmlElement(name = "wasInformedBy", namespace = "http://www.w3.org/ns/prov#", type = WasInformedBy.class), @XmlElement(name = "wasStartedBy", namespace = "http://www.w3.org/ns/prov#", type = WasStartedBy.class), @XmlElement(name = "wasEndedBy", namespace = "http://www.w3.org/ns/prov#", type = WasEndedBy.class), @XmlElement(name = "wasInvalidatedBy", namespace = "http://www.w3.org/ns/prov#", type = WasInvalidatedBy.class), @XmlElement(name = "wasDerivedFrom", namespace = "http://www.w3.org/ns/prov#", type = WasDerivedFrom.class), @XmlElement(name = "agent", namespace = "http://www.w3.org/ns/prov#", type = Agent.class), @XmlElement(name = "wasAttributedTo", namespace = "http://www.w3.org/ns/prov#", type = WasAttributedTo.class), @XmlElement(name = "wasAssociatedWith", namespace = "http://www.w3.org/ns/prov#", type = WasAssociatedWith.class), @XmlElement(name = "actedOnBehalfOf", namespace = "http://www.w3.org/ns/prov#", type = ActedOnBehalfOf.class), @XmlElement(name = "wasInfluencedBy", namespace = "http://www.w3.org/ns/prov#", type = WasInfluencedBy.class), @XmlElement(name = "specializationOf", namespace = "http://www.w3.org/ns/prov#", type = SpecializationOf.class), @XmlElement(name = "alternateOf", namespace = "http://www.w3.org/ns/prov#", type = AlternateOf.class), @XmlElement(name = "hadMember", namespace = "http://www.w3.org/ns/prov#", type = HadMember.class), @XmlElement(name = "mentionOf", namespace = "http://www.w3.org/ns/prov#", type = MentionOf.class), @XmlElement(name = "hadDictionaryMember", namespace = "http://www.w3.org/ns/prov#", type = DictionaryMembership.class), @XmlElement(name = "derivedByInsertionFrom", namespace = "http://www.w3.org/ns/prov#", type = DerivedByInsertionFrom.class), @XmlElement(name = "derivedByRemovalFrom", namespace = "http://www.w3.org/ns/prov#", type = DerivedByRemovalFrom.class) }) protected List entityAndActivityAndWasGeneratedBy; /** * Gets the value of the entityAndActivityAndWasGeneratedBy 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 entityAndActivityAndWasGeneratedBy property. * *

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

     *    getEntityAndActivityAndWasGeneratedBy().add(newItem);
     * 
* * * * @return a list of statements * * */ public List getStatement() { if (entityAndActivityAndWasGeneratedBy == null) { entityAndActivityAndWasGeneratedBy = new ArrayList(); } return this.entityAndActivityAndWasGeneratedBy; } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof SomeStatements)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final SomeStatements that = ((SomeStatements) object); equalsBuilder.append(this.getStatement(), that.getStatement()); } public boolean equals(Object object) { if (!(object instanceof SomeStatements)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new EqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getStatement()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } public void toString(ToStringBuilder toStringBuilder) { { List theEntityAndActivityAndWasGeneratedBy; theEntityAndActivityAndWasGeneratedBy = this.getStatement(); toStringBuilder.append("entityAndActivityAndWasGeneratedBy", theEntityAndActivityAndWasGeneratedBy); } } public String toString() { final ToStringBuilder toStringBuilder = new ToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy