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

net.sf.nakeduml.metamodel.actions.internal.NakedSendObjectActionImpl Maven / Gradle / Ivy

The newest version!
package net.sf.nakeduml.metamodel.actions.internal;
import java.util.Collection;
import java.util.Set;

import net.sf.nakeduml.metamodel.actions.ActionType;
import net.sf.nakeduml.metamodel.actions.INakedSendObjectAction;
import net.sf.nakeduml.metamodel.activities.INakedInputPin;
import net.sf.nakeduml.metamodel.core.INakedElement;
public class NakedSendObjectActionImpl extends NakedInvocationActionImpl implements INakedSendObjectAction {
	private static final long serialVersionUID = 3165514874679324190L;
	INakedInputPin object;
	public INakedInputPin getObject() {
		return this.object;
	}

	public void setRequest(INakedInputPin object) {
		this.object = object;
	}
	public ActionType getActionType() {
		return ActionType.SEND_OBJECT_ACTION;
	}

	@Override
	public Set getInput(){
		Set  result = super.getInput();
		if (this.object != null) {
			result.add(this.object);
		}
		return result;
	}

	@Override
	public Collection getOwnedElements() {
		Collection result =super.getOwnedElements();
		if (this.object != null) {
			result.add(this.object);
		}
		return result;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy