View Javadoc

1   package org.kuali.student.common.ui.client.configurable.mvc.multiplicity;
2   
3   public class SwapCompositeConditionFieldConfig {
4   
5       private MultiplicityFieldConfiguration multiplicityFieldConfiguration;
6       private MultiplicityConfiguration multiplicityConfiguration;
7       
8       public SwapCompositeConditionFieldConfig(MultiplicityFieldConfiguration multiplicityFieldConfiguration,
9               MultiplicityConfiguration multiplicityConfiguration) {
10          setMultiplicityFieldConfiguration(multiplicityFieldConfiguration);
11          setMultiplicityConfiguration(multiplicityConfiguration);
12      }
13  
14      public MultiplicityFieldConfiguration getMultiplicityFieldConfiguration() {
15          return multiplicityFieldConfiguration;
16      }
17      public void setMultiplicityFieldConfiguration(MultiplicityFieldConfiguration multiplicityFieldConfiguration) {
18          this.multiplicityFieldConfiguration = multiplicityFieldConfiguration;
19      }
20      public MultiplicityConfiguration getMultiplicityConfiguration() {
21          return multiplicityConfiguration;
22      }
23      public void setMultiplicityConfiguration(MultiplicityConfiguration multiplicityConfiguration) {
24          this.multiplicityConfiguration = multiplicityConfiguration;
25      }
26      public boolean useMultiplicity() {
27          boolean useMultiplicity = false;
28          if (multiplicityConfiguration != null) {
29              useMultiplicity = true;
30          }
31          return useMultiplicity;
32      }
33  }