Class AbstractLs
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected intlongWidthlong width
-
Constructor Summary
Constructors Constructor Description AbstractLs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultMaxItems()protected intgetMaxItems(org.apache.commons.chain.Context ctx)StringgetMaxItemsKey()booleanisPath()protected voidprintFooter(org.apache.commons.chain.Context ctx, Iterator iter)Print the footervoidsetDefaultMaxItems(int maxItems)voidsetMaxItemsKey(String maxItemsKey)voidsetPath(boolean path)
-
-
-
Method Detail
-
printFooter
protected void printFooter(org.apache.commons.chain.Context ctx, Iterator iter)Print the footer- Parameters:
ctx- theContextiter- theIterator
-
getDefaultMaxItems
public int getDefaultMaxItems()
- Returns:
- the default max number of
Itemss to show
-
setDefaultMaxItems
public void setDefaultMaxItems(int maxItems)
- Parameters:
maxItems- the default max number ofItemss 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- theContext- Returns:
- the max number of
Items to show
-
-