View Javadoc
1 package org.smartcomps.twister.engine.priv.core.definition.impl; 2 3 import org.smartcomps.twister.engine.priv.core.definition.CorrelationRef; 4 import org.smartcomps.twister.engine.priv.core.definition.MessageEvent; 5 6 import java.util.HashSet; 7 import java.util.Set; 8 import java.util.Collection; 9 10 /*** 11 * Persistent implementation of the MessageEvent interface. 12 * @see org.smartcomps.twister.engine.priv.core.definition.MessageEvent 13 */ 14 public class MessageEventImpl implements MessageEvent { 15 16 private Long id; 17 private String partnerLink; 18 private String portType; 19 private String operation; 20 private String variable; 21 22 private Collection correlations = new HashSet(); 23 24 public Long getId() { 25 return id; 26 } 27 28 public void setId(Long id) { 29 this.id = id; 30 } 31 32 public String getPartnerLink() { 33 return partnerLink; 34 } 35 36 public void setPartnerLink(String partnerLink) { 37 this.partnerLink = partnerLink; 38 } 39 40 public String getPortType() { 41 return portType; 42 } 43 44 public void setPortType(String portType) { 45 this.portType = portType; 46 } 47 48 public String getOperation() { 49 return operation; 50 } 51 52 public void setOperation(String operation) { 53 this.operation = operation; 54 } 55 56 public String getVariable() { 57 return variable; 58 } 59 60 public void setVariable(String variable) { 61 this.variable = variable; 62 } 63 64 public Collection getCorrelations() { 65 return correlations; 66 } 67 68 public void setCorrelations(Collection correlations) { 69 if (correlations instanceof Set) { 70 this.correlations = correlations; 71 } else { 72 this.correlations = new HashSet(correlations); 73 } 74 } 75 76 public void addCorrelation(CorrelationRef correlationRef) { 77 correlations.add(correlationRef); 78 } 79 }

This page was automatically generated by Maven