Class: Stupidedi::Schema::AbstractUse

Inherits:
Object
  • Object
show all
Defined in:
lib/stupidedi/schema/abstract_use.rb

Direct Known Subclasses

AbstractElementUse, SegmentUse

Instance Method Summary collapse

Instance Method Details

#component?Boolean

Is this a component SimpleElementUse?

Returns:

  • (Boolean)


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

def component?
  false
end

#composite?Boolean

Is this a CompositeElementUse?

Returns:

  • (Boolean)


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

def composite?
  false
end

#definition?Boolean

Returns:

  • (Boolean)


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

def definition?
  true
end

#element?Boolean

Returns:

  • (Boolean)


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

def element?
  false
end

#functional_group?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/stupidedi/schema/abstract_use.rb', line 55

def functional_group?
  false
end

#interchange?Boolean

The definitions for these types, like InterchangeDef aren’t reused, so they don’t have corresponding AbstractUse subclasses.

Returns:

  • (Boolean)


51
52
53
# File 'lib/stupidedi/schema/abstract_use.rb', line 51

def interchange?
  false
end

#loop?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/stupidedi/schema/abstract_use.rb', line 67

def loop?
  false
end

#repeated?Boolean

Is this a repeatable Stupidedi::Schema::AbstractUse?

Returns:

  • (Boolean)


38
39
40
# File 'lib/stupidedi/schema/abstract_use.rb', line 38

def repeated?
  false
end

#segment?Boolean

Is this a SegmentUse?

Returns:

  • (Boolean)


18
19
20
# File 'lib/stupidedi/schema/abstract_use.rb', line 18

def segment?
  false
end

#simple?Boolean

Is this a non-component SimpleElementUse?

Returns:

  • (Boolean)


43
44
45
# File 'lib/stupidedi/schema/abstract_use.rb', line 43

def simple?
  false
end

#table?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/stupidedi/schema/abstract_use.rb', line 63

def table?
  false
end

#transaction_set?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/stupidedi/schema/abstract_use.rb', line 59

def transaction_set?
  false
end

#usage?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/stupidedi/schema/abstract_use.rb', line 6

def usage?
  true
end