Class: Stupidedi::Schema::SimpleElementDef
Overview
Instance Attribute Summary
#description, #id, #name
Instance Method Summary
collapse
#descriptor, #element?
Methods included from Inspect
#inspect
Methods inherited from AbstractDef
#component?, #definition?, #descriptor, #element?, #functional_group?, #interchange?, #loop?, #repeated?, #required?, #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.
46
47
48
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 46
def code_lists(subset = Sets.universal)
Sets.empty
end
|
#composite? ⇒ Boolean
28
29
30
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 28
def composite?
false
end
|
#empty(position) ⇒ SimpleElementVal
14
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 14
abstract :empty, :args => %w(position)
|
11
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 11
abstract :parent
|
#parse(string, position) ⇒ SimpleElementVal
20
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 20
abstract :parse, :args => %w(string position)
|
#simple? ⇒ Boolean
23
24
25
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 23
def simple?
true
end
|
#simple_use(requirement, repeat_count, parent = nil) ⇒ SimpleElementUse
33
34
35
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 33
def simple_use(requirement, repeat_count, parent = nil)
SimpleElementUse.new(self, requirement, repeat_count, Sets.universal, parent)
end
|
#value(object, position) ⇒ SimpleElementVal
17
|
# File 'lib/stupidedi/schema/simple_element_def.rb', line 17
abstract :value, :args => %w(object position)
|