File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import java .util .Map ;
55import java .util .Objects ;
66
7+ import javax .management .AttributeList ;
8+
79import de .vill .model .building .VariableReference ;
810import de .vill .model .constraint .Constraint ;
911import de .vill .util .Constants ;
@@ -65,13 +67,17 @@ public String getName() {
6567 * @return Name of the attribute (never null)
6668 */
6769 public String getType () {
68- if (value instanceof Number ) {
69- return Constants .NUMBER ;
70+ if (value instanceof Integer ) {
71+ return Constants .INTEGER ;
7072 } else if (value instanceof Boolean ) {
7173 return Constants .BOOLEAN ;
7274 } else if (value instanceof String ) {
73- return Constants .STRING ;
74- } else {
75+ return Constants .STRING ;
76+ } else if (value instanceof AttributeList ) {
77+ return Constants .ATTRIBUTE_LIST ;
78+ } else if (value instanceof Float ) {
79+ return Constants .FLOAT ;
80+ }else {
7581 return Constants .UNDEF ;
7682 }
7783 }
Original file line number Diff line number Diff line change 22
33public class Constants {
44 // Literal Types
5- public static final String NUMBER = "number" ;
5+ public static final String INTEGER = "integer" ;
6+ public static final String FLOAT = "float" ;
7+ public static final String ATTRIBUTE_LIST = "attribute_list" ;
68 public static final String STRING = "string" ;
79 public static final String BOOLEAN = "boolean" ;
810 public static final String TRUE = "true" ;
You can’t perform that action at this time.
0 commit comments