org.jclouds.karaf.commands.table
Class BasicShellTable

java.lang.Object
  extended by org.jclouds.karaf.commands.table.BasicShellTable
All Implemented Interfaces:
ShellTable
Direct Known Subclasses:
ScriptEngineShellTable

public abstract class BasicShellTable
extends Object
implements ShellTable


Field Summary
 
Fields inherited from interface org.jclouds.karaf.commands.table.ShellTable
LEFT, RIGHT
 
Constructor Summary
BasicShellTable()
           
 
Method Summary
 void display(PrintStream out, boolean showHeaders, boolean showData)
          Displays the content of the table to the specified PrintStream.
abstract  String evaluate(Object object, String expression)
          Evaluate an expression on the given Object and return a String repressenation of the result.
 List<String> getAlignments()
           
 boolean getAscending()
           
 Collection getDisplayData()
           
 List<String> getDisplayExpression()
           
 List<String> getHeaders()
           
 String getSortBy()
           
 String getType()
           
 void setAlignments(List<String> alignments)
           
 void setAscending(boolean ascending)
           
 void setDisplayData(Collection displayData)
           
 void setDisplayExpression(List<String> displayExpression)
           
 void setHeaders(List<String> headers)
           
 void setSortBy(String sortBy)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicShellTable

public BasicShellTable()
Method Detail

evaluate

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

Specified by:
evaluate in interface ShellTable
Parameters:
object -
expression -
Returns:

display

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

Specified by:
display in interface ShellTable
Parameters:
out -

getType

public String getType()
Specified by:
getType in interface ShellTable

setType

public void setType(String type)
Specified by:
setType in interface ShellTable

getHeaders

public List<String> getHeaders()
Specified by:
getHeaders in interface ShellTable

setHeaders

public void setHeaders(List<String> headers)
Specified by:
setHeaders in interface ShellTable

getDisplayExpression

public List<String> getDisplayExpression()
Specified by:
getDisplayExpression in interface ShellTable

setDisplayExpression

public void setDisplayExpression(List<String> displayExpression)
Specified by:
setDisplayExpression in interface ShellTable

getAlignments

public List<String> getAlignments()
Specified by:
getAlignments in interface ShellTable

setAlignments

public void setAlignments(List<String> alignments)
Specified by:
setAlignments in interface ShellTable

getSortBy

public String getSortBy()
Specified by:
getSortBy in interface ShellTable

setSortBy

public void setSortBy(String sortBy)
Specified by:
setSortBy in interface ShellTable

getAscending

public boolean getAscending()
Specified by:
getAscending in interface ShellTable

setAscending

public void setAscending(boolean ascending)
Specified by:
setAscending in interface ShellTable

getDisplayData

public Collection getDisplayData()
Specified by:
getDisplayData in interface ShellTable

setDisplayData

public void setDisplayData(Collection displayData)
Specified by:
setDisplayData in interface ShellTable


Copyright © 2012. All Rights Reserved.