Class: Stupidedi::Schema::SimpleElementDef
- Inherits:
-
AbstractElementDef
- Object
- AbstractDef
- AbstractElementDef
- Stupidedi::Schema::SimpleElementDef
- Defined in:
- lib/stupidedi/schema/element_def.rb
Overview
Direct Known Subclasses
Versions::FunctionalGroups::FiftyTen::ElementTypes::SimpleElementDef, Versions::FunctionalGroups::FortyTen::ElementTypes::SimpleElementDef, Versions::FunctionalGroups::ThirtyFifty::ElementTypes::SimpleElementDef, Versions::FunctionalGroups::ThirtyForty::ElementTypes::SimpleElementDef, Versions::FunctionalGroups::ThirtyTen::ElementTypes::SimpleElementDef, Versions::FunctionalGroups::TwoThousandOne::ElementTypes::SimpleElementDef
Instance Attribute Summary
Attributes inherited from AbstractElementDef
Instance Method Summary collapse
-
#code_lists(subset = Sets.universal) ⇒ AbstractSet<CodeList>
This is overridden (if needed) by the concrete subclasses.
- #component_use(requirement, parent = nil) ⇒ ComponentElementUse
-
#composite? ⇒ Boolean
False.
- #empty ⇒ SimpleElementVal
- #parent ⇒ SimpleElementUse, ComponentElementUse
- #parse ⇒ SimpleElementVal
-
#simple? ⇒ Boolean
True.
- #simple_use(requirement, repeat_count, parent = nil) ⇒ SimpleElementUse
- #value ⇒ SimpleElementVal
Methods inherited from AbstractElementDef
Methods included from Inspect
Methods inherited from AbstractDef
#component?, #definition?, #element?, #functional_group?, #interchange?, #loop?, #repeated?, #segment?, #table?, #transaction_set?, #usage?
Instance Method Details
#code_lists(subset = Sets.universal) ⇒ AbstractSet<CodeList>
This is overridden (if needed) by the concrete subclasses. Specifically the “ID” element types have an extra attribute to link the CodeList.
69 70 71 |
# File 'lib/stupidedi/schema/element_def.rb', line 69 def code_lists(subset = Sets.universal) Sets.empty end |
#component_use(requirement, parent = nil) ⇒ ComponentElementUse
61 62 63 |
# File 'lib/stupidedi/schema/element_def.rb', line 61 def component_use(requirement, parent = nil) ComponentElementUse.new(self, requirement, Sets.universal, parent) end |
#composite? ⇒ Boolean
Returns false.
51 52 53 |
# File 'lib/stupidedi/schema/element_def.rb', line 51 def composite? false end |
#empty ⇒ SimpleElementVal
37 |
# File 'lib/stupidedi/schema/element_def.rb', line 37 abstract :empty, :args => %w(position) |
#parent ⇒ SimpleElementUse, ComponentElementUse
34 |
# File 'lib/stupidedi/schema/element_def.rb', line 34 abstract :parent |
#parse ⇒ SimpleElementVal
43 |
# File 'lib/stupidedi/schema/element_def.rb', line 43 abstract :parse, :args => %w(string position) |
#simple? ⇒ Boolean
Returns true.
46 47 48 |
# File 'lib/stupidedi/schema/element_def.rb', line 46 def simple? true end |
#simple_use(requirement, repeat_count, parent = nil) ⇒ SimpleElementUse
56 57 58 |
# File 'lib/stupidedi/schema/element_def.rb', line 56 def simple_use(requirement, repeat_count, parent = nil) SimpleElementUse.new(self, requirement, repeat_count, Sets.universal, parent) end |
#value ⇒ SimpleElementVal
40 |
# File 'lib/stupidedi/schema/element_def.rb', line 40 abstract :value, :args => %w(object position) |