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

Class Table

source code

object --+    
         |    
  Sentence --+
             |
            Table

Manages a table operation

Provides: Table(paradigm,tree)

Instance Methods [hide private]
 
__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)
source code
 
getList(self)
Return the table (cells) in list form
source code
 
getHTML(self)
Return a html table for this table operation
source code
 
getHorizontalHTML(self, p_parentSpan=1)
Return a horizontal html table (?)
source code
 
getText(self)
Return text for this table (?)
source code
 
getConditions(self)
Return conditions for this table (?)
source code
 
getMaxWidth(self)
Return the maximum width this table could take up.
source code
 
getSpan(self)
Return span for this table (?)
source code
 
getData(self, p_return, p_attDict)
Retrieve data that matches the given list of attributes Returns (an HTML) string of values that match.
source code

Inherited from Sentence: getDepth, getType

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, p_paradigm, p_tree)
(Constructor)

source code 

p_paradigm is the given paradigm (attributes and data) p_tree is the tree representation of this part of the query (Tree)

Overrides: Sentence.__init__

getList(self)

source code 

Return the table (cells) in list form

Overrides: Sentence.getList

getHTML(self)

source code 

Return a html table for this table operation

Overrides: Sentence.getHTML

getHorizontalHTML(self, p_parentSpan=1)

source code 

Return a horizontal html table (?)

Overrides: Sentence.getHorizontalHTML

getText(self)

source code 

Return text for this table (?)

Overrides: Sentence.getText

getConditions(self)

source code 

Return conditions for this table (?)

Overrides: Sentence.getConditions

getMaxWidth(self)

source code 

Return the maximum width this table could take up. ... I hope you're not trying to nest tables ...

Overrides: Sentence.getMaxWidth

getSpan(self)

source code 

Return span for this table (?)

Overrides: Sentence.getSpan

getData(self, p_return, p_attDict)

source code 

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.