org.apache.jackrabbit.standalone.cli.info
Class AbstractLs

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.info.AbstractLs
All Implemented Interfaces:
org.apache.commons.chain.Command
Direct Known Subclasses:
AbstractLsItems, AbstractLsNodes, AbstractLsProperties

public abstract class AbstractLs
extends Object
implements org.apache.commons.chain.Command

Ls superclass


Field Summary
protected  int longWidth
          long width
 
Constructor Summary
AbstractLs()
           
 
Method Summary
 int getDefaultMaxItems()
           
protected  int getMaxItems(org.apache.commons.chain.Context ctx)
           
 String getMaxItemsKey()
           
 boolean isPath()
           
protected  void printFooter(org.apache.commons.chain.Context ctx, Iterator iter)
          Print the footer
 void setDefaultMaxItems(int maxItems)
           
 void setMaxItemsKey(String maxItemsKey)
           
 void setPath(boolean path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.chain.Command
execute
 

Field Detail

longWidth

protected int longWidth
long width

Constructor Detail

AbstractLs

public AbstractLs()
Method Detail

printFooter

protected void printFooter(org.apache.commons.chain.Context ctx,
                           Iterator iter)
Print the footer

Parameters:
ctx - the Context
iter - the Iterator

getDefaultMaxItems

public int getDefaultMaxItems()
Returns:
the default max number of Items s to show

setDefaultMaxItems

public void setDefaultMaxItems(int maxItems)
Parameters:
maxItems - the default max number of Items s to set

isPath

public boolean isPath()
Returns:
the path

setPath

public void setPath(boolean path)
Parameters:
path - the path to set

getMaxItemsKey

public String getMaxItemsKey()
Returns:
the max number of items key

setMaxItemsKey

public void setMaxItemsKey(String maxItemsKey)
Parameters:
maxItemsKey - the max number of items key to set

getMaxItems

protected int getMaxItems(org.apache.commons.chain.Context ctx)
Parameters:
ctx - the Context
Returns:
the max number of Item s to show


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.