Class: Stupidedi::Schema::AbstractElementDef

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

Direct Known Subclasses

CompositeElementDef, SimpleElementDef

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Inspect

#inspect

Methods inherited from AbstractDef

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

Instance Attribute Details

#descriptionString (readonly)

Returns:

  • (String)


16
17
18
# File 'lib/stupidedi/schema/abstract_element_def.rb', line 16

def description
  @description
end

#idString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/stupidedi/schema/abstract_element_def.rb', line 10

def id
  @id
end

#nameString (readonly)

Returns:

  • (String)


13
14
15
# File 'lib/stupidedi/schema/abstract_element_def.rb', line 13

def name
  @name
end

Instance Method Details

#code_listsAbstractSet<CodeList>

Returns:



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

abstract :code_lists

#composite?Boolean

This method is abstract.

Returns:

  • (Boolean)


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

abstract :composite?

#descriptorString

Returns:

  • (String)


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

def descriptor
  "element #{id} #{description}".strip
end

#element?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/stupidedi/schema/abstract_element_def.rb', line 30

def element?
  true
end

#simple?Boolean

This method is abstract.

Returns:

  • (Boolean)


18
# File 'lib/stupidedi/schema/abstract_element_def.rb', line 18

abstract :simple?