public class IncQueryViewerDataModel extends ViewerDataModel
ViewerDataModel
implementation for IncQuery/EVM model sources.
If you instantiate this class yourself, then be sure to dispose() of it once it is not needed anymore.Constructor and Description |
---|
IncQueryViewerDataModel(java.util.Collection<IQuerySpecification<?>> patterns,
IncQueryEngine engine)
Initializes a Viewer Data model using a set of patterns and a selected engine.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
Due to independence from databinding
Dispose of this
IncQueryViewerDataModel instance. |
IncQueryEngine |
getEngine() |
org.apache.log4j.Logger |
getLogger() |
java.util.Collection<IQuerySpecification<?>> |
getPatterns() |
java.util.Collection<IQuerySpecification<?>> |
getPatterns(java.lang.String annotation) |
static ViewerState |
newViewerState(IncQueryEngine engine,
java.util.Collection<IQuerySpecification<?>> patterns,
ViewerDataFilter filter,
java.util.Collection<ViewerState.ViewerStateFeature> features)
Instantiate a
ViewerState and its corresponding ViewerDataModel instance, for IncQuery-based
model sources. |
static ViewerState |
newViewerState(IncQueryViewerDataModel model,
ViewerDataFilter filter,
java.util.Collection<ViewerState.ViewerStateFeature> features)
Instantiate a new
ViewerState , for an already existing IncQueryViewerDataModel instance. |
getNotationModel
public IncQueryViewerDataModel(java.util.Collection<IQuerySpecification<?>> patterns, IncQueryEngine engine) throws IncQueryException, IncQueryBaseException
patterns
- engine
- IncQueryException
IncQueryBaseException
public IncQueryEngine getEngine()
getEngine
in class ViewerDataModel
public java.util.Collection<IQuerySpecification<?>> getPatterns(java.lang.String annotation)
public org.apache.log4j.Logger getLogger()
@Deprecated public void dispose()
IncQueryViewerDataModel
instance.dispose
in class ViewerDataModel
public static ViewerState newViewerState(IncQueryEngine engine, java.util.Collection<IQuerySpecification<?>> patterns, ViewerDataFilter filter, java.util.Collection<ViewerState.ViewerStateFeature> features)
ViewerState
and its corresponding ViewerDataModel
instance, for IncQuery-based
model sources.
When the state is disposed, the model will be disposed too.set
- engine
- patterns
- filter
- features
- public static ViewerState newViewerState(IncQueryViewerDataModel model, ViewerDataFilter filter, java.util.Collection<ViewerState.ViewerStateFeature> features)
ViewerState
, for an already existing IncQueryViewerDataModel
instance.
This ViewerDataModel
will not be disposed when the state is disposed.model
- filter
- features
- public java.util.Collection<IQuerySpecification<?>> getPatterns()
getPatterns
in class ViewerDataModel