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)


40
41
42
# File 'lib/stupidedi/schema/abstract_use.rb', line 40

def component?
  false
end

#composite?Boolean

Is this a CompositeElementUse?

Returns:

  • (Boolean)


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

def composite?
  false
end

#definition?Boolean

Returns:

  • (Boolean)


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

def definition?
  true
end

#descriptorString

Returns:

  • (String)


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

abstract :descriptor

#element?Boolean

Returns:

  • (Boolean)


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

def element?
  false
end

#functional_group?Boolean

Returns:

  • (Boolean)


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

def functional_group?
  false
end

#idSymbol

Returns:

  • (Symbol)


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

abstract :id

#interchange?Boolean

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

Returns:

  • (Boolean)


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

def interchange?
  false
end

#loop?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/stupidedi/schema/abstract_use.rb', line 74

def loop?
  false
end

#repeated?Boolean

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

Returns:

  • (Boolean)


45
46
47
# File 'lib/stupidedi/schema/abstract_use.rb', line 45

def repeated?
  false
end

#segment?Boolean

Is this a SegmentUse?

Returns:

  • (Boolean)


25
26
27
# File 'lib/stupidedi/schema/abstract_use.rb', line 25

def segment?
  false
end

#simple?Boolean

Is this a non-component SimpleElementUse?

Returns:

  • (Boolean)


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

def simple?
  false
end

#table?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/stupidedi/schema/abstract_use.rb', line 70

def table?
  false
end

#transaction_set?Boolean

Returns:

  • (Boolean)


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

def transaction_set?
  false
end

#usage?Boolean

Returns:

  • (Boolean)


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

def usage?
  true
end