1 7 package fr.jayasoft.ivy.namespace; 8 9 public class NamespaceRule { 10 private String _name; 11 private String _description; 12 13 private MRIDTransformationRule _fromSystem; 14 private MRIDTransformationRule _toSystem; 15 16 public MRIDTransformationRule getFromSystem() { 17 return _fromSystem; 18 } 19 public void addFromsystem(MRIDTransformationRule fromSystem) { 20 if (_fromSystem != null) { 21 throw new IllegalArgumentException ("only one fromsystem is allowed per rule"); 22 } 23 _fromSystem = fromSystem; 24 } 25 public MRIDTransformationRule getToSystem() { 26 return _toSystem; 27 } 28 public void addTosystem(MRIDTransformationRule toSystem) { 29 if (_toSystem != null) { 30 throw new IllegalArgumentException ("only one tosystem is allowed per rule"); 31 } 32 _toSystem = toSystem; 33 } 34 public String getDescription() { 35 return _description; 36 } 37 public void setDescription(String description) { 38 _description = description; 39 } 40 public String getName() { 41 return _name; 42 } 43 public void setName(String name) { 44 _name = name; 45 } 46 } 47 | Popular Tags |