Class: Stupidedi::Schema::AbstractElementUse

Inherits:
AbstractUse show all
Extended by:
Forwardable
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)


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

def composite?
  not simple?
end

#definitionSimpleElementDef, CompositeElementDef



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

abstract :definition

#empty(position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (SimpleElementVal, CompositeElementVal)


23
24
25
# File 'lib/stupidedi/schema/element_use.rb', line 23

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

#requirementElementReq

Returns:



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

abstract :requirement

#value(object, position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (SimpleElementVal, CompositeElementVal)


28
29
30
# File 'lib/stupidedi/schema/element_use.rb', line 28

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