net.sf.morph.wrap
Interface Sizable

All Superinterfaces:
Wrapper
All Known Subinterfaces:
Bean, DecoratedBean, DecoratedIndexedContainer, DecoratedMutableIndexedContainer, IndexedContainer, MutableIndexedContainer

public interface Sizable
extends Wrapper

A wrapper for objects that can tell how many elements are contained within themselves.

Since:
Jan 16, 2005
Author:
Matt Sgarlata

Method Summary
 int getSize()
          Returns the number of elements contained within this wrapper.
 
Methods inherited from interface net.sf.morph.wrap.Wrapper
getWrappedObject
 

Method Detail

getSize

int getSize()
            throws WrapperException
Returns the number of elements contained within this wrapper. If this wrapper is a bean, the number of properties is returned. If this wrapper is a container, the number of elements in the container is returned.

Returns:
the number of elements contained in the given object
Throws:
WrapperException - if the number of elements in the object could not be determined


Copyright © 2004-2008.