Class: Stupidedi::Schema::AbstractElementUse

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

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

This method is abstract.

Returns:

  • (Boolean)

30
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 30

abstract :component?

#composite?Boolean

Returns:

  • (Boolean)

42
43
44
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 42

def composite?
  not simple?
end

#definitionSimpleElementDef, CompositeElementDef


26
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 26

abstract :definition

#descriptionString

Returns:

  • (String)

20
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 20

abstract :description

#empty(position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (SimpleElementVal, CompositeElementVal)

33
34
35
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 33

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

#idSymbol

Returns:

  • (Symbol)

14
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 14

abstract :id

#nameString

Returns:

  • (String)

17
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 17

abstract :name

#requirementElementReq

Returns:


23
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 23

abstract :requirement

#simple?Boolean

This method is abstract.

Returns:

  • (Boolean)

28
# File 'lib/stupidedi/schema/abstract_element_use.rb', line 28

abstract :simple?

#value(object, position) ⇒ SimpleElementVal, CompositeElementVal

Returns:

  • (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