org.databene.benerator.wrapper
Class EntityPartSource
java.lang.Object
org.databene.webdecs.util.AbstractDataSource<Entity>
org.databene.benerator.wrapper.EntityPartSource
- All Implemented Interfaces:
- java.io.Closeable, EntitySource, org.databene.webdecs.DataSource<Entity>
public class EntityPartSource
- extends org.databene.webdecs.util.AbstractDataSource<Entity>
- implements EntitySource
EntitySource
implementation that looks up an entity by its name (productName
) in the context,
accesses a 'part' component of it (by its partName
), and provides the entities contained within
in the form of a DataIterator
.
Created: 06.03.2012 21:50:23
- Since:
- 0.7.6
- Author:
- Volker Bergmann
Fields inherited from class org.databene.webdecs.util.AbstractDataSource |
type |
Methods inherited from class org.databene.webdecs.util.AbstractDataSource |
close, getType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.databene.webdecs.DataSource |
close, getType |
productName
protected java.lang.String productName
partName
protected java.lang.String partName
context
protected BeneratorContext context
EntityPartSource
public EntityPartSource(java.lang.String productName,
java.lang.String partName,
BeneratorContext context)
iterator
public org.databene.webdecs.DataIterator<Entity> iterator()
- Specified by:
iterator
in interface org.databene.webdecs.DataSource<Entity>
Copyright © 2013. All Rights Reserved.