View Javadoc
1 package org.smartcomps.twister.engine.priv.core.definition.impl; 2 3 import org.smartcomps.twister.engine.priv.core.definition.Assignment; 4 5 /*** 6 * Persistent implementation of the Assignment interface 7 * @see org.smartcomps.twister.engine.priv.core.definition.Assignment 8 */ 9 public class AssignmentImpl implements Assignment { 10 11 private Long id; 12 private int fromType; 13 private int toType; 14 private String fromFirstValue; 15 private String fromSecondValue; 16 private String toFirstValue; 17 private String toSecondValue; 18 private String fromQuery; 19 private String toQuery; 20 21 public Long getId() { 22 return id; 23 } 24 25 public void setId(Long id) { 26 this.id = id; 27 } 28 29 public int getFromType() { 30 return fromType; 31 } 32 33 public void setFromType(int fromType) { 34 if (fromType != VARIABLE_PART && fromType != VARIABLE_PROPERTY && fromType != PARTNER_REFERENCE 35 && fromType != EXPRESSION && fromType != LITERAL) { 36 throw new IllegalArgumentException("FromType value must be either VARIABLE_PART, " + 37 "VARIABLE_PROPERTY, PARTNER_REFERENCE, EXPRESSION or LITERAL"); 38 } 39 this.fromType = fromType; 40 } 41 42 public int getToType() { 43 return toType; 44 } 45 46 public void setToType(int toType) { 47 if (toType != VARIABLE_PART && toType != VARIABLE_PROPERTY && toType != PARTNER_REFERENCE) { 48 throw new IllegalArgumentException("ToType value must be either VARIABLE_PART, " + 49 "VARIABLE_PROPERTY or PARTNER_REFERENCE"); 50 } 51 this.toType = toType; 52 } 53 54 public String getFromFirstValue() { 55 return fromFirstValue; 56 } 57 58 public void setFromFirstValue(String fromFirstValue) { 59 this.fromFirstValue = fromFirstValue; 60 } 61 62 public String getFromSecondValue() { 63 return fromSecondValue; 64 } 65 66 public void setFromSecondValue(String fromSecondValue) { 67 this.fromSecondValue = fromSecondValue; 68 } 69 70 public String getToFirstValue() { 71 return toFirstValue; 72 } 73 74 public void setToFirstValue(String toFirstValue) { 75 this.toFirstValue = toFirstValue; 76 } 77 78 public String getToSecondValue() { 79 return toSecondValue; 80 } 81 82 public void setToSecondValue(String toSecondValue) { 83 this.toSecondValue = toSecondValue; 84 } 85 86 public String getFromQuery() { 87 return fromQuery; 88 } 89 90 public void setFromQuery(String fromQuery) { 91 this.fromQuery = fromQuery; 92 } 93 94 public String getToQuery() { 95 return toQuery; 96 } 97 98 public void setToQuery(String toQuery) { 99 this.toQuery = toQuery; 100 } 101 }

This page was automatically generated by Maven