Class: Stupidedi::Schema::AbstractElementUse
Instance Method Summary
collapse
Methods included from Inspect
#inspect
Methods inherited from AbstractUse
#definition?, #descriptor, #element?, #functional_group?, #interchange?, #loop?, #repeated?, #segment?, #table?, #transaction_set?, #usage?
Instance Method Details
#component? ⇒ Boolean
30
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 30
abstract :component?
|
#composite? ⇒ Boolean
42
43
44
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 42
def composite?
not simple?
end
|
26
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 26
abstract :definition
|
#description ⇒ String
20
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 20
abstract :description
|
#empty(position) ⇒ SimpleElementVal, CompositeElementVal
33
34
35
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 33
def empty(position)
definition.empty(self, position)
end
|
#id ⇒ Symbol
14
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 14
abstract :id
|
#name ⇒ String
17
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 17
abstract :name
|
23
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 23
abstract :requirement
|
#simple? ⇒ Boolean
28
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 28
abstract :simple?
|
#value(object, position) ⇒ SimpleElementVal, CompositeElementVal
38
39
40
|
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 38
def value(object, position)
definition.value(object, self, position)
end
|