org.spicefactory.pimento.metamodel.impl
Class CollectionImpl
java.lang.Object
org.spicefactory.pimento.metamodel.impl.ManagedPropertyImpl
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionImpl
protected CollectionImpl(PropertyHandler handler,
Property property,
int index)
- Creates a new instance.
- Parameters:
handler - the handler responsible for encoding and decoding snapshot valuesproperty - the reflection propertyindex - the index position of this property in the managed entity
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