Skip to content

Commit aa1a5ac

Browse files
author
Tobias Wiessner
committed
Enum add TODO
1 parent eac5dd1 commit aa1a5ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

de/uni_stuttgart/ils/reqif4j/specification/SpecObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public SpecObject(Node specObject, SpecType specType) {
170170
this.attributeValues.put(attributeDefinitionName, new AttributeValueString(attributeValue, attributeDefinition));
171171
break;
172172

173-
case ReqIFConst.ENUMERATION: String enumValueRef = ((Element)attribute).getElementsByTagName(ReqIFConst.VALUES).item(0).getChildNodes().item(1).getTextContent();
173+
case ReqIFConst.ENUMERATION: String enumValueRef = ((Element)attribute).getElementsByTagName(ReqIFConst.VALUES).item(0).getChildNodes().item(1).getTextContent();
174+
// TODO check how it is behaving if more than one enum value exits. Right now the attribute value is only a string.
174175
attributeValue = specType.getEnumValueName(enumValueRef);
175176
this.attributeValues.put(attributeDefinitionName, new AttributeValueEnumeration(attributeValue, attributeDefinition));
176177
break;

0 commit comments

Comments
 (0)