View Javadoc

1   package org.apache.commons.contract.descriptor;
2   
3   import org.apache.commons.contract.constraints.Constraints;
4   import org.apache.commons.contract.i18n.ParameterBundle;
5   
6   public class RequiredEnvironmentDescriptor extends ParameterDescriptor {
7       protected String store;
8   
9       public RequiredEnvironmentDescriptor(String name, String store, ParameterBundle description, Constraints valueDescriptor) {
10          super(name, description, valueDescriptor);
11          this.store = store;
12      }
13  
14      public RequiredEnvironmentDescriptor(String name, String store, ParameterBundle description, Constraints valueDescriptor, Object defaultValue) {
15          super(name, description, valueDescriptor, defaultValue);
16          this.store = store;
17      }
18  
19      public String getStore() {
20          return store;
21      }
22  }