Method: Twb::ColumnField#initialize

Defined in:
lib/twb/columnfield.rb

#initialize(fieldNode, datasource = nil) ⇒ ColumnField

Returns a new instance of ColumnField.



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/twb/columnfield.rb', line 73

def initialize(fieldNode, datasource=nil)
  @datasource         = datasource
  @node               = fieldNode
  @name               = load('name').sub(/^\[/,'').sub(/\]$/,'')
  @caption            = load 'caption'
  @uiname             = @caption.nil? ? @name : @caption
  #--

  loadAttributes @node
  # @dataType           = load 'datatype'

  # @userDataType       = load 'user-datatype'

  # @defaultFormat      = load 'default-format'

  # @paramDomainType    = load 'param-domain-type'

  # @type               = load 'type'

  # @value              = load 'value'

  # @alias              = load 'alias'

  # @semanticRole       = load 'semantic-role'

  # @aggregation        = load 'aggregation'

  # @autoColumn         = load 'auto-column'

  # @datatypeCustomized = load 'datatype-customized'

end