Class: Stupidedi::Schema::SimpleElementDef

Inherits:
AbstractElementDef show all
Defined in:
lib/stupidedi/schema/element_def.rb

Overview

See Also:

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

#description, #id, #name

Instance Method Summary (collapse)

Methods inherited from AbstractElementDef

#element?

Methods included from Inspect

#inspect

Methods inherited from AbstractDef

#component?, #definition?, #element?, #functional_group?, #interchange?, #loop?, #repeated?, #segment?, #table?, #transaction_set?, #usage?

Instance Method Details

- (AbstractSet<CodeList>) code_lists(subset = Sets.universal)

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

- (ComponentElementUse) component_use(requirement, parent = nil)



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

- (Boolean) composite?



51
52
53
# File 'lib/stupidedi/schema/element_def.rb', line 51

def composite?
  false
end

- (SimpleElementVal) empty



37
# File 'lib/stupidedi/schema/element_def.rb', line 37

abstract :empty, :args => %w(position)

- (SimpleElementUse, ComponentElementUse) parent



34
# File 'lib/stupidedi/schema/element_def.rb', line 34

abstract :parent

- (SimpleElementVal) parse



43
# File 'lib/stupidedi/schema/element_def.rb', line 43

abstract :parse, :args => %w(string position)

- (Boolean) simple?



46
47
48
# File 'lib/stupidedi/schema/element_def.rb', line 46

def simple?
  true
end

- (SimpleElementUse) simple_use(requirement, repeat_count, parent = nil)



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

- (SimpleElementVal) value



40
# File 'lib/stupidedi/schema/element_def.rb', line 40

abstract :value, :args => %w(object position)