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

org.openprovenance.prov.nf.xml.Used 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.Kind;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;


@JacksonXmlRootElement(localName="used")
public class Used implements Statement {
	public List id;
	public List entity;
	public List activity;
	public List time;
	public List attr;

	@Override
	public LinkedList> paramsAsListsofStrings() {
		LinkedList> l1=new LinkedList>();
		l1.add(id);
		l1.add(entity);
		l1.add(activity);
		l1.add(time);
		return l1;
	}
	@Override
	public Kind getKind() {
		return Kind.PROV_USAGE;
	}
	@Override
	public void normalize() {
		Collections.sort(id);
		Collections.sort(entity);
		Collections.sort(activity);
		Collections.sort(time);
		Collections.sort(attr);		
		
	}
	@Override
	public List getAttr() {
		return attr;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy