View Javadoc

1   /*
2    * This file is part of hyphenType. hyphenType is free software: you can
3    * redistribute it and/or modify it under the terms of the GNU General Public
4    * License as published by the Free Software Foundation, either version 3 of the
5    * License, or (at your option) any later version. hyphenType is distributed in
6    * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
7    * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
8    * the GNU General Public License for more details. You should have received a
9    * copy of the GNU General Public License along with hyphenType. If not, see
10   * <http://www.gnu.org/licenses/>.
11   */
12  package org.hyphenType.datastructure.parser.option;
13  
14  import java.lang.reflect.Method;
15  
16  import org.hyphenType.datastructure.parser.StructureElement;
17  
18  /**
19   * @author Aurelio Akira M. Matsui
20   */
21  public class StructureOptionMapValue extends StructureElement {
22      public final String keyName;
23      public final String valueName;
24      @SuppressWarnings("unchecked")
25      public final Class valueType;
26      public final boolean mandatory;
27  
28      @SuppressWarnings("unchecked")
29      public StructureOptionMapValue(Method method, String keyName, String valueName, Class valueType, boolean mandatory) {
30          super(method);
31          this.keyName = keyName;
32          this.valueName = valueName;
33          this.valueType = valueType;
34          this.mandatory = mandatory;
35      }
36  }