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

org.openprovenance.prov.nf.xml.ActedOnBehalfOf 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="actedOnBehalfOf")
public class ActedOnBehalfOf implements Statement {
	public List id;
	public List delegate;
	public List responsible;
	public List activity;
	public List attr;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy