org.jclouds.karaf.commands.table
Class BasicShellTable<D>
java.lang.Object
org.jclouds.karaf.commands.table.BasicShellTable<D>
- All Implemented Interfaces:
- ShellTable<D>
- Direct Known Subclasses:
- ScriptEngineShellTable
public abstract class BasicShellTable<D>
- extends Object
- implements ShellTable<D>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicShellTable
public BasicShellTable()
evaluate
public abstract String evaluate(Object object,
String expression)
- Evaluate an expression on the given Object and return a
String representation of the result.
- Specified by:
evaluate in interface ShellTable<D>
- 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<D>
- Parameters:
out -
getType
public String getType()
- Specified by:
getType in interface ShellTable<D>
setType
public void setType(String type)
- Specified by:
setType in interface ShellTable<D>
getHeaders
public List<String> getHeaders()
- Specified by:
getHeaders in interface ShellTable<D>
setHeaders
public void setHeaders(List<String> headers)
- Specified by:
setHeaders in interface ShellTable<D>
getDisplayExpression
public List<String> getDisplayExpression()
- Specified by:
getDisplayExpression in interface ShellTable<D>
setDisplayExpression
public void setDisplayExpression(List<String> displayExpression)
- Specified by:
setDisplayExpression in interface ShellTable<D>
getAlignments
public List<String> getAlignments()
- Specified by:
getAlignments in interface ShellTable<D>
setAlignments
public void setAlignments(List<String> alignments)
- Specified by:
setAlignments in interface ShellTable<D>
getSortBy
public String getSortBy()
- Specified by:
getSortBy in interface ShellTable<D>
setSortBy
public void setSortBy(String sortBy)
- Specified by:
setSortBy in interface ShellTable<D>
getAscending
public boolean getAscending()
- Specified by:
getAscending in interface ShellTable<D>
setAscending
public void setAscending(boolean ascending)
- Specified by:
setAscending in interface ShellTable<D>
getDisplayData
public D getDisplayData()
- Specified by:
getDisplayData in interface ShellTable<D>
setDisplayData
public void setDisplayData(D displayData)
- Specified by:
setDisplayData in interface ShellTable<D>
Copyright © 2013. All Rights Reserved.