 
   validate: ->
     for key, val of @attributes
-      unless val instanceof XLF.RD
-        @set key, new XLF.RD(key, val, @), {silent: true}
+      unless val instanceof XLF.RowDetail
+        @set key, new XLF.RowDetail(key, val, @), {silent: true}
     ``
 
   attributesArray: ()->

  getValue: (what)->
    @get(what).get("value")

  _setType: (typeStr)->
    @set "type", new XLF.RD("type", typeStr, @)

  getList: ->
    listName = @get("type")?.get("listName")
    @_parent.choices.get(listName)  if listName

    else
      new XLF.Row(obj)

class XLF.RowDetail extends BaseModel
  constructor: (@key, valOrObj={}, @parentRow)->
    super()
    vals2set = {}
