Package nltk_lite :: Package contrib :: Module paradigm :: Class Table
[show private | hide private]
[frames | no frames]

Type Table

object --+    
         |    
  Sentence --+
             |
            Table


Manages a table operation

Provides: Table(paradigm,tree)
Method Summary
  __init__(self, p_paradigm, p_tree)
p_paradigm is the given paradigm (attributes and data) p_tree is the tree representation of this part of the query (Tree)
  getConditions(self)
Return conditions for this table (?)
  getData(self, p_return, p_attDict)
Retrieve data that matches the given list of attributes Returns (an HTML) string of values that match.
  getHorizontalHTML(self, p_parentSpan)
Return a horizontal html table (?)
  getHTML(self)
Return a html table for this table operation
  getList(self)
Return the table (cells) in list form
  getMaxWidth(self)
Return the maximum width this table could take up.
  getSpan(self)
Return span for this table (?)
  getText(self)
Return text for this table (?)
Inherited from Sentence: getDepth, getType
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

__init__(self, p_paradigm, p_tree)
(Constructor)

p_paradigm is the given paradigm (attributes and data) p_tree is the tree representation of this part of the query (Tree)
Overrides:
nltk_lite.contrib.paradigm.Sentence.__init__

getConditions(self)

Return conditions for this table (?)
Overrides:
nltk_lite.contrib.paradigm.Sentence.getConditions

getData(self, p_return, p_attDict)

Retrieve data that matches the given list of attributes Returns (an HTML) string of values that match.

p_return is a tree pointing to the key of the value to include in the return p_attDict is a dictionary of conditions.

getHorizontalHTML(self, p_parentSpan=1)

Return a horizontal html table (?)
Overrides:
nltk_lite.contrib.paradigm.Sentence.getHorizontalHTML

getHTML(self)

Return a html table for this table operation
Overrides:
nltk_lite.contrib.paradigm.Sentence.getHTML

getList(self)

Return the table (cells) in list form
Overrides:
nltk_lite.contrib.paradigm.Sentence.getList

getMaxWidth(self)

Return the maximum width this table could take up. ... I hope you're not trying to nest tables ...
Overrides:
nltk_lite.contrib.paradigm.Sentence.getMaxWidth

getSpan(self)

Return span for this table (?)
Overrides:
nltk_lite.contrib.paradigm.Sentence.getSpan

getText(self)

Return text for this table (?)
Overrides:
nltk_lite.contrib.paradigm.Sentence.getText

Generated by Epydoc 2.1 on Tue Sep 5 09:37:20 2006 http://epydoc.sf.net