Class: Stupidedi::Schema::AbstractElementUse

Inherits:
AbstractUse
  • Object
show all
Includes:
Inspect
Defined in:
lib/stupidedi/schema/element_use.rb

Instance Method Summary collapse

Methods included from Inspect

#inspect

Methods inherited from AbstractUse

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

Instance Method Details

#composite?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/stupidedi/schema/element_use.rb', line 35

def composite?
  not simple?
end

#definitionSimpleElementDef, CompositeElementDef



19
# File 'lib/stupidedi/schema/element_use.rb', line 19

abstract :definition

#empty(position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (SimpleElementVal, CompositeElementVal)


26
27
28
# File 'lib/stupidedi/schema/element_use.rb', line 26

def empty(position)
  definition.empty(self, position)
end

#requirementElementReq

Returns:



16
# File 'lib/stupidedi/schema/element_use.rb', line 16

abstract :requirement

#value(object, position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (SimpleElementVal, CompositeElementVal)


31
32
33
# File 'lib/stupidedi/schema/element_use.rb', line 31

def value(object, position)
  definition.value(object, self, position)
end