org.jclouds.karaf.commands.table
Interface ShellTable<D>

All Known Implementing Classes:
BasicShellTable, ScriptEngineShellTable

public interface ShellTable<D>


Field Summary
static String LEFT
           
static String RIGHT
           
 
Method Summary
 void display(PrintStream out, boolean showHeaders, boolean showData)
          Displays the content of the table to the specified PrintStream.
 String evaluate(Object object, String expression)
          Evaluate an expression on the given Object and return a String representation of the result.
 List<String> getAlignments()
           
 boolean getAscending()
           
 D getDisplayData()
           
 List<String> getDisplayExpression()
           
 List<String> getHeaders()
           
 String getSortBy()
           
 String getType()
           
 void setAlignments(List<String> alignments)
           
 void setAscending(boolean ascending)
           
 void setDisplayData(D displayData)
           
 void setDisplayExpression(List<String> displayExpression)
           
 void setHeaders(List<String> headers)
           
 void setSortBy(String sortBy)
           
 void setType(String type)
           
 

Field Detail

LEFT

static final String LEFT
See Also:
Constant Field Values

RIGHT

static final String RIGHT
See Also:
Constant Field Values
Method Detail

evaluate

String evaluate(Object object,
                String expression)
Evaluate an expression on the given Object and return a String representation of the result.

Parameters:
object -
expression -
Returns:

display

void display(PrintStream out,
             boolean showHeaders,
             boolean showData)
Displays the content of the table to the specified PrintStream.

Parameters:
out -

getType

String getType()

setType

void setType(String type)

getHeaders

List<String> getHeaders()

setHeaders

void setHeaders(List<String> headers)

getDisplayExpression

List<String> getDisplayExpression()

setDisplayExpression

void setDisplayExpression(List<String> displayExpression)

getAlignments

List<String> getAlignments()

setAlignments

void setAlignments(List<String> alignments)

getSortBy

String getSortBy()

setSortBy

void setSortBy(String sortBy)

getAscending

boolean getAscending()

setAscending

void setAscending(boolean ascending)

getDisplayData

D getDisplayData()

setDisplayData

void setDisplayData(D displayData)


Copyright © 2013. All Rights Reserved.