net.sf.nakeduml.metamodel.actions.internal.NakedSendObjectActionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metamodel Show documentation
Show all versions of metamodel Show documentation
A uml code generator and execution engine
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;
}
}