ETSI's Bug Tracker - Part 06: TTCN-3 Control Interface
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0007497 | Part 06: TTCN-3 Control Interface | New Feature | public | 12-09-2016 10:58 | 21-12-2016 10:52

Reporter | Tomas Urban |
Assigned To | Tomas Urban |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.9.1(ongoing) |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | 7.2.2.2.10
Source (company - Author) | Elvior

Summary | 0007497: Support for optional fields in RecordValue

Description

The current version of the RecordValue abstract data type doesn't allow to check whether a field is optional or not. Many clients expects that the TCI offers experience similar to reflection in java or C# and field optionality is one of the properties TCI doesn't provide yet.
Proposal:
Add the following method to the RecordValue abstract data type:
TBoolean isFieldOptional(in TString fieldName)

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR7497-2.docx (1,339,614) 18-11-2016 11:19 http://oldforge.etsi.org/mantis/file_download.php?file_id=3570&type=bug

Issue History
Date Modified | Username | Field | Change
12-09-2016 10:58 | Tomas Urban | New Issue |
14-11-2016 13:35 | Jens Grabowski | Assigned To | => Jacob Wieland - Spirent
14-11-2016 13:35 | Jens Grabowski | Status | new => assigned
15-11-2016 13:13 | Jacob Wieland - Spirent | Note Added: 0014248 |
18-11-2016 11:19 | Jacob Wieland - Spirent | File Added: CR7497-2.docx |
18-11-2016 11:20 | Jacob Wieland - Spirent | Note Added: 0014335 |
18-11-2016 11:20 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Tomas Urban
18-11-2016 11:20 | Jacob Wieland - Spirent | Status | assigned => confirmed
18-11-2016 12:32 | Tomas Urban | Note Added: 0014340 |
18-11-2016 12:32 | Tomas Urban | Status | confirmed => resolved
18-11-2016 12:32 | Tomas Urban | Resolution | open => fixed
21-12-2016 10:52 | Tomas Urban | Note Added: 0014472 |
21-12-2016 10:52 | Tomas Urban | Status | resolved => closed

Notes

(0014248)
Jacob Wieland - Spirent
15-11-2016 13:13

I propose to add a function Value.isOptional() instead. The usage would then be: ((RecordValue)value).getField(name).isOptional(). The benefit is that it can also be applied to Values which are templates (i.e. in an external function).

(0014335)
Jacob Wieland - Spirent
18-11-2016 11:20

implemented as proposed, please review

(0014340)
Tomas Urban
18-11-2016 12:32

Reviewed. No issues found. Ready to be added to the standard.

(0014472)
Tomas Urban
21-12-2016 10:52

Added to draft 4.8.2