org.databene.benerator.wrapper
Class EntityPartSource

java.lang.Object
  extended by org.databene.webdecs.util.AbstractDataSource<Entity>
      extended by 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

Nested Class Summary
 class EntityPartSource.EntityPartIterator
           
 
Field Summary
protected  BeneratorContext context
           
protected  java.lang.String partName
           
protected  java.lang.String productName
           
 
Fields inherited from class org.databene.webdecs.util.AbstractDataSource
type
 
Constructor Summary
EntityPartSource(java.lang.String productName, java.lang.String partName, BeneratorContext context)
           
 
Method Summary
 org.databene.webdecs.DataIterator<Entity> iterator()
           
 
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
 

Field Detail

productName

protected java.lang.String productName

partName

protected java.lang.String partName

context

protected BeneratorContext context
Constructor Detail

EntityPartSource

public EntityPartSource(java.lang.String productName,
                        java.lang.String partName,
                        BeneratorContext context)
Method Detail

iterator

public org.databene.webdecs.DataIterator<Entity> iterator()
Specified by:
iterator in interface org.databene.webdecs.DataSource<Entity>


Copyright © 2013. All Rights Reserved.