org.openprovenance.prov.nf.xml.Activity Maven / Gradle / Ivy
The newest version!
package org.openprovenance.prov.nf.xml;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import org.openprovenance.prov.model.StatementOrBundle;
import org.openprovenance.prov.model.StatementOrBundle.Kind;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
@JacksonXmlRootElement(localName="activity")
public class Activity implements Statement {
public List id;
public List startTime;
public List endTime;
public List attr;
@Override
public Kind getKind() {
return StatementOrBundle.Kind.PROV_ACTIVITY;
}
@Override
public void normalize() {
Collections.sort(id);
Collections.sort(startTime);
Collections.sort(endTime);
Collections.sort(attr);
}
@Override
public List getAttr() {
return attr;
}
@Override
public LinkedList> paramsAsListsofStrings() {
LinkedList> l1=new LinkedList>();
l1.add(id);
l1.add(startTime);
l1.add(endTime);
return l1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy