org.spicefactory.pimento.metamodel.impl
Class CollectionImpl

java.lang.Object
  extended by org.spicefactory.pimento.metamodel.impl.ManagedPropertyImpl
      extended by org.spicefactory.pimento.metamodel.impl.CollectionImpl
All Implemented Interfaces:
Externalizable, Collection, ManagedProperty

public class CollectionImpl
extends ManagedPropertyImpl
implements Collection

Default implementation of the Collection interface.

Author:
Jens Halm

Constructor Summary
protected CollectionImpl(PropertyHandler handler, Property property, int index)
          Creates a new instance.
 
Method Summary
 Type getElementType()
          Returns the persistent type of the collection elements.
 void writeExternal(DataOutput output)
          Saves the content of this object to the DataOutput instance.
 
Methods inherited from class org.spicefactory.pimento.metamodel.impl.ManagedPropertyImpl
getHandler, getIndex, getProperty, isReadOnly, isRefreshable, readExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.spicefactory.pimento.metamodel.ManagedProperty
getHandler, getIndex, getProperty, isReadOnly, isRefreshable
 

Constructor Detail

CollectionImpl

protected CollectionImpl(PropertyHandler handler,
                         Property property,
                         int index)
Creates a new instance.

Parameters:
handler - the handler responsible for encoding and decoding snapshot values
property - the reflection property
index - the index position of this property in the managed entity
Method Detail

getElementType

public Type getElementType()
Description copied from interface: Collection
Returns the persistent type of the collection elements.

Specified by:
getElementType in interface Collection
Returns:
the persistent type of the collection elements

writeExternal

public void writeExternal(DataOutput output)
Description copied from interface: Externalizable
Saves the content of this object to the DataOutput instance.

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class ManagedPropertyImpl
Parameters:
output - the output to write to