Class: HQMF2::DataCriteriaWrapper
- Inherits:
-
Object
- Object
- HQMF2::DataCriteriaWrapper
- Defined in:
- lib/hqmf-parser/2.0/types.rb
Overview
Creates a Data Criteria given a map of options, and is used when full
criteria parsing is not necessary.
Instance Attribute Summary collapse
-
#children_criteria ⇒ Object
Returns the value of attribute children_criteria.
-
#code_list_id ⇒ Object
Returns the value of attribute code_list_id.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#derivation_operator ⇒ Object
Returns the value of attribute derivation_operator.
-
#description ⇒ Object
Returns the value of attribute description.
-
#effective_time ⇒ Object
Returns the value of attribute effective_time.
-
#field_values ⇒ Object
Returns the value of attribute field_values.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inline_code_list ⇒ Object
Returns the value of attribute inline_code_list.
-
#negation ⇒ Object
Returns the value of attribute negation.
-
#negation_code_list_id ⇒ Object
Returns the value of attribute negation_code_list_id.
-
#source_data_criteria ⇒ Object
Returns the value of attribute source_data_criteria.
-
#specific_occurrence ⇒ Object
Returns the value of attribute specific_occurrence.
-
#specific_occurrence_const ⇒ Object
Returns the value of attribute specific_occurrence_const.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subset_operators ⇒ Object
Returns the value of attribute subset_operators.
-
#temporal_references ⇒ Object
Returns the value of attribute temporal_references.
-
#title ⇒ Object
Returns the value of attribute title.
-
#value ⇒ Object
Returns the value of attribute value.
-
#variable ⇒ Object
Returns the value of attribute variable.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ DataCriteriaWrapper
constructor
A new instance of DataCriteriaWrapper.
-
#to_model ⇒ Object
Generates this classes hqmf-model equivalent.
Constructor Details
#initialize(opts = {}) ⇒ DataCriteriaWrapper
Returns a new instance of DataCriteriaWrapper.
432 433 434 |
# File 'lib/hqmf-parser/2.0/types.rb', line 432 def initialize(opts = {}) opts.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#children_criteria ⇒ Object
Returns the value of attribute children_criteria.
426 427 428 |
# File 'lib/hqmf-parser/2.0/types.rb', line 426 def children_criteria @children_criteria end |
#code_list_id ⇒ Object
Returns the value of attribute code_list_id.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def code_list_id @code_list_id end |
#comments ⇒ Object
Returns the value of attribute comments.
429 430 431 |
# File 'lib/hqmf-parser/2.0/types.rb', line 429 def comments @comments end |
#definition ⇒ Object
Returns the value of attribute definition.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def definition @definition end |
#derivation_operator ⇒ Object
Returns the value of attribute derivation_operator.
427 428 429 |
# File 'lib/hqmf-parser/2.0/types.rb', line 427 def derivation_operator @derivation_operator end |
#description ⇒ Object
Returns the value of attribute description.
427 428 429 |
# File 'lib/hqmf-parser/2.0/types.rb', line 427 def description @description end |
#effective_time ⇒ Object
Returns the value of attribute effective_time.
425 426 427 |
# File 'lib/hqmf-parser/2.0/types.rb', line 425 def effective_time @effective_time end |
#field_values ⇒ Object
Returns the value of attribute field_values.
428 429 430 |
# File 'lib/hqmf-parser/2.0/types.rb', line 428 def field_values @field_values end |
#id ⇒ Object
Returns the value of attribute id.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def id @id end |
#inline_code_list ⇒ Object
Returns the value of attribute inline_code_list.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def inline_code_list @inline_code_list end |
#negation ⇒ Object
Returns the value of attribute negation.
427 428 429 |
# File 'lib/hqmf-parser/2.0/types.rb', line 427 def negation @negation end |
#negation_code_list_id ⇒ Object
Returns the value of attribute negation_code_list_id.
427 428 429 |
# File 'lib/hqmf-parser/2.0/types.rb', line 427 def negation_code_list_id @negation_code_list_id end |
#source_data_criteria ⇒ Object
Returns the value of attribute source_data_criteria.
428 429 430 |
# File 'lib/hqmf-parser/2.0/types.rb', line 428 def source_data_criteria @source_data_criteria end |
#specific_occurrence ⇒ Object
Returns the value of attribute specific_occurrence.
429 430 431 |
# File 'lib/hqmf-parser/2.0/types.rb', line 429 def specific_occurrence @specific_occurrence end |
#specific_occurrence_const ⇒ Object
Returns the value of attribute specific_occurrence_const.
428 429 430 |
# File 'lib/hqmf-parser/2.0/types.rb', line 428 def specific_occurrence_const @specific_occurrence_const end |
#status ⇒ Object
Returns the value of attribute status.
425 426 427 |
# File 'lib/hqmf-parser/2.0/types.rb', line 425 def status @status end |
#subset_operators ⇒ Object
Returns the value of attribute subset_operators.
426 427 428 |
# File 'lib/hqmf-parser/2.0/types.rb', line 426 def subset_operators @subset_operators end |
#temporal_references ⇒ Object
Returns the value of attribute temporal_references.
426 427 428 |
# File 'lib/hqmf-parser/2.0/types.rb', line 426 def temporal_references @temporal_references end |
#title ⇒ Object
Returns the value of attribute title.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def title @title end |
#value ⇒ Object
Returns the value of attribute value.
425 426 427 |
# File 'lib/hqmf-parser/2.0/types.rb', line 425 def value @value end |
#variable ⇒ Object
Returns the value of attribute variable.
430 431 432 |
# File 'lib/hqmf-parser/2.0/types.rb', line 430 def variable @variable end |
Instance Method Details
#to_model ⇒ Object
Generates this classes hqmf-model equivalent
437 438 439 440 441 442 443 444 445 446 |
# File 'lib/hqmf-parser/2.0/types.rb', line 437 def to_model mv = @value ? @value.to_model : nil met = @effective_time ? @effective_time.to_model : nil mtr = @temporal_references mso = @subset_operators HQMF::DataCriteria.new(@id, @title, nil, @description, @code_list_id, @children_criteria, @derivation_operator, @definition, @status, mv, field_values, met, @inline_code_list, @negation, @negation_code_list_id, mtr, mso, @specific_occurrence, @specific_occurrence_const, @source_data_criteria, @comments, @variable) end |