org.apache.jackrabbit.taglib.size
Interface SizeCalculator

All Known Implementing Classes:
AbstractSizeCalculator

public interface SizeCalculator

StorageCalculator implementations are responsible of calculating the size that uses a given Node or Property.

Author:
Edgar Poce

Field Summary
static int BITS
           
static int BYTES
           
static int GIGABYTES
           
static int KILOBYTES
           
static int MEGABYTES
           
 
Method Summary
 double getSize(javax.jcr.Node node)
          Calculate the size of the given node.
 double getSize(javax.jcr.Property property)
          Calculate the size of the given property.
 void setUnit(int unit)
          Sets the unit
 

Field Detail

BITS

public static final int BITS
See Also:
Constant Field Values

BYTES

public static final int BYTES
See Also:
Constant Field Values

KILOBYTES

public static final int KILOBYTES
See Also:
Constant Field Values

MEGABYTES

public static final int MEGABYTES
See Also:
Constant Field Values

GIGABYTES

public static final int GIGABYTES
See Also:
Constant Field Values
Method Detail

setUnit

public void setUnit(int unit)
Sets the unit

Parameters:
unit -

getSize

public double getSize(javax.jcr.Node node)
Calculate the size of the given node.

Parameters:
node -
Returns:
size

getSize

public double getSize(javax.jcr.Property property)
Calculate the size of the given property.

Parameters:
property -
Returns:
size


Copyright © 2005 . All Rights Reserved.