org.apache.jackrabbit.taglib.size
Class SimpleSizeCalculator

java.lang.Object
  extended byorg.apache.jackrabbit.taglib.size.AbstractSizeCalculator
      extended byorg.apache.jackrabbit.taglib.size.SimpleSizeCalculator
All Implemented Interfaces:
SizeCalculator

public class SimpleSizeCalculator
extends AbstractSizeCalculator

SizeCalculator for testing purposes.

Author:
Edgar Poce

Field Summary
 
Fields inherited from class org.apache.jackrabbit.taglib.size.AbstractSizeCalculator
unit
 
Fields inherited from interface org.apache.jackrabbit.taglib.size.SizeCalculator
BITS, BYTES, GIGABYTES, KILOBYTES, MEGABYTES
 
Constructor Summary
SimpleSizeCalculator()
          Constructor
 
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.
 
Methods inherited from class org.apache.jackrabbit.taglib.size.AbstractSizeCalculator
convert, setUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSizeCalculator

public SimpleSizeCalculator()
Constructor

Method Detail

getSize

public double getSize(javax.jcr.Node node)
Description copied from interface: SizeCalculator
Calculate the size of the given node.

Parameters:
node -
Returns:
size

getSize

public double getSize(javax.jcr.Property property)
Description copied from interface: SizeCalculator
Calculate the size of the given property.

Parameters:
property -
Returns:
size


Copyright © 2005 . All Rights Reserved.