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 int
longWidth
long width
-
Constructor Summary
Constructors Constructor Description AbstractLs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 footervoid
setDefaultMaxItems(int maxItems)
void
setMaxItemsKey(String maxItemsKey)
void
setPath(boolean path)
-
-
-
Method Detail
-
printFooter
protected void printFooter(org.apache.commons.chain.Context ctx, Iterator iter)
Print the footer- Parameters:
ctx
- theContext
iter
- theIterator
-
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 ofItems
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
- theContext
- Returns:
- the max number of
Item
s to show
-
-