|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.EntityList<S>
com.univocity.parsers.remote.RemoteEntityList<S>
S - the type of RemoteEntitySettings managed by this list.public abstract class RemoteEntityList<S extends RemoteEntitySettings>
A list of remote entities to be parsed by some implementation of EntityParserInterface,
and their specific configurations.
The configuration applied over individual RemoteEntitySettings elements override their counterparts in the
global parser settings, usually a subclass of RemoteParserSettings
RemoteEntitySettings,
RemoteParserSettings,
EntityParserInterface| Field Summary | |
|---|---|
protected ExecutorService |
downloadThreadPool
|
| Fields inherited from class com.univocity.parsers.common.EntityList |
|---|
entities, originalEntityNames |
| Constructor Summary | |
|---|---|
RemoteEntityList(RemoteParserSettings globalSettings)
Creates a new, empty RemoteEntityList, applying the global configuration object, used by the
EntityParserInterface implementation, to all entity-specific settings in this list. |
|
| Method Summary | |
|---|---|
protected S |
addEntitySettings(S settings)
Associates an entity setting configuration to a given entity. |
protected S |
configureEntity(String entityName,
S parentEntity)
Returns the configuration object associated with the given entityName. |
protected ExecutorService |
getDownloadThreadPool()
|
RemoteParserSettings |
getParserSettings()
Returns the global parser settings whose configuration may provide defaults for all entities defined in this list. |
protected abstract RemoteEntityList<S> |
newInstance()
Creates a new instance of EntityList using properties from this instance. |
| Methods inherited from class com.univocity.parsers.common.EntityList |
|---|
configureEntity, getEntities, getEntity, getEntityNames, iterator, newEntity, removeEntity, removeEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExecutorService downloadThreadPool
| Constructor Detail |
|---|
public RemoteEntityList(RemoteParserSettings globalSettings)
RemoteEntityList, applying the global configuration object, used by the
EntityParserInterface implementation, to all entity-specific settings in this list.
globalSettings - the global parser settings whose configuration may provide defaults for all entities
defined in this list.| Method Detail |
|---|
protected final S addEntitySettings(S settings)
EntityList
addEntitySettings in class EntityList<S extends RemoteEntitySettings>settings - the configuration to be associated with the given entity.
public RemoteParserSettings getParserSettings()
EntityList
getParserSettings in class EntityList<S extends RemoteEntitySettings>protected abstract RemoteEntityList<S> newInstance()
EntityListEntityList using properties from this instance.
newInstance in class EntityList<S extends RemoteEntitySettings>EntityList
protected S configureEntity(String entityName,
S parentEntity)
EntityList
configureEntity in class EntityList<S extends RemoteEntitySettings>entityName - name of the entity whose configuration that will be returned.parentEntity - the "parent" entity (which can be null), whose settings will
be passed on to the new entity.
protected final ExecutorService getDownloadThreadPool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||