public abstract class AbstractFeatureFactory<FT extends FeatureServiceFeature,QT> extends Object implements FeatureFactory<FT,QT>
FeatureFactory.TooManyFeaturesException| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
protected groovy.lang.GroovyShell |
groovyShell |
protected int |
ID |
protected Vector<FT> |
lastCreatedfeatureVector |
protected com.vividsolutions.jts.geom.Geometry |
lastGeom |
protected QT |
lastQuery |
String |
layerName |
protected LayerProperties |
layerProperties |
protected org.apache.log4j.Logger |
logger |
protected int |
maxFeatureCount |
protected Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> |
styles |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFeatureFactory()
Creates a new AbstractFeatureFactory object.
|
protected |
AbstractFeatureFactory(AbstractFeatureFactory aff)
Creates a new AbstractFeatureFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkCancelled(SwingWorker workerThread,
String message)
Checks if the worker thread was cancelled and performs cleanup.
|
abstract AbstractFeatureFactory |
clone()
DOCUMENT ME!
|
protected Vector<FT> |
createFeaturesFromMemory(QT query,
com.vividsolutions.jts.geom.Geometry geom)
DOCUMENT ME!
|
FeatureServiceFeature |
createNewFeature()
This method must be implemented, if
AbstractFeatureService.isEditable(). |
protected String |
evaluateBeanShellExpression(FT feature,
String expression)
DOCUMENT ME!
|
protected void |
evaluateExpressions(FT feature,
int index)
Evaluates id an annotation expressions of the current layer properties and applies it to the feature.
|
protected String |
evaluateGroovyExpressions(FT feature,
String expression)
Evaluates a groovy expression.
|
protected boolean |
featuresAlreadyInMemory(com.vividsolutions.jts.geom.Geometry geom,
QT query)
DOCUMENT ME!
|
Vector<FT> |
getLastCreatedFeatures()
This operation can be used to retrieve the last created features without the need to invoke the
createFeatures() operation. |
LayerProperties |
getLayerProperties()
Returns the layerProperties that are applied to all features constructed.
|
int |
getMaxFeatureCount()
Returns the maximum number of features that can be returned by this feature factory.
|
protected List<org.deegree.style.se.unevaluated.Style> |
getStyle()
DOCUMENT ME!
|
List<org.deegree.style.se.unevaluated.Style> |
getStyle(String layerName)
DOCUMENT ME!
|
protected abstract boolean |
isGenerateIds()
Determines if the service automatically generates unique IDs for all queryable features.
|
protected void |
reEvaluteExpressions(List<FT> features,
SwingWorker workerThread)
Re-evaluates the expressions of all features in the list.
|
protected void |
setInterruptedAllowed()
DOCUMENT ME!
|
protected void |
setInterruptedNotAllowed()
DOCUMENT ME!
|
void |
setLayerName(String layerName)
DOCUMENT ME!
|
void |
setLayerProperties(LayerProperties layerProperties)
Sets the layerProperties that are applied to all features constructed.
|
void |
setMaxFeatureCount(int maxFeatureCount)
Sets the maximum number of features that can be returned by this feature factory and that fall into the specified
BoundinfBox respectively.
|
void |
setSLDStyle(Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
DOCUMENT ME!
|
protected void |
sortFeatureList(List<? extends FeatureServiceFeature> featureList,
FeatureServiceAttribute[] attributes)
DOCUMENT ME!
|
protected void |
updateLastCreatedFeatures(Collection<FT> features,
com.vividsolutions.jts.geom.Geometry geom,
QT query)
DOCUMENT ME!
|
void |
waitUntilInterruptedIsAllowed()
DOCUMENT ME!
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAttributes, createFeatures, createFeatures, getFeatureCountpublic static final boolean DEBUG
public String layerName
protected int ID
protected org.apache.log4j.Logger logger
protected LayerProperties layerProperties
protected int maxFeatureCount
protected groovy.lang.GroovyShell groovyShell
protected Vector<FT extends FeatureServiceFeature> lastCreatedfeatureVector
protected Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles
protected com.vividsolutions.jts.geom.Geometry lastGeom
protected QT lastQuery
protected AbstractFeatureFactory()
protected AbstractFeatureFactory(AbstractFeatureFactory aff)
aff - DOCUMENT ME!public void waitUntilInterruptedIsAllowed()
protected void setInterruptedAllowed()
protected void setInterruptedNotAllowed()
public void setLayerName(String layerName)
FeatureFactorysetLayerName in interface FeatureFactory<FT extends FeatureServiceFeature,QT>layerName - DOCUMENT ME!public void setSLDStyle(Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
FeatureFactorysetSLDStyle in interface FeatureFactory<FT extends FeatureServiceFeature,QT>styles - DOCUMENT ME!public void setLayerProperties(LayerProperties layerProperties)
FeatureFactorysetLayerProperties in interface FeatureFactory<FT extends FeatureServiceFeature,QT>layerProperties - new LayerPropertiespublic LayerProperties getLayerProperties()
FeatureFactorygetLayerProperties in interface FeatureFactory<FT extends FeatureServiceFeature,QT>public int getMaxFeatureCount()
FeatureFactorymaxFeatureCount.getMaxFeatureCount in interface FeatureFactory<FT extends FeatureServiceFeature,QT>CachingFeatureFactorypublic void setMaxFeatureCount(int maxFeatureCount)
FeatureFactorysetMaxFeatureCount in interface FeatureFactory<FT extends FeatureServiceFeature,QT>maxFeatureCount - the maximum number of featuresprotected void sortFeatureList(List<? extends FeatureServiceFeature> featureList, FeatureServiceAttribute[] attributes)
featureList - DOCUMENT ME!attributes - DOCUMENT ME!protected void reEvaluteExpressions(List<FT> features, SwingWorker workerThread)
features - list of caches featuresworkerThread - DOCUMENT ME!protected void evaluateExpressions(FT feature, int index)
feature - to on that the expressions are appliedindex - is used as if the evaluation of the id expression failsprotected String evaluateGroovyExpressions(FT feature, String expression)
feature - DOCUMENT ME!expression - DOCUMENT ME!protected String evaluateBeanShellExpression(FT feature, String expression)
feature - DOCUMENT ME!expression - DOCUMENT ME!UnsupportedOperationException - DOCUMENT ME!protected boolean checkCancelled(SwingWorker workerThread, String message)
workerThread - DOCUMENT ME!message - DOCUMENT ME!public Vector<FT> getLastCreatedFeatures()
FeatureFactorycreateFeatures() operation. It returns a copy of the internal features vector of the factory to
provent concurrent modification exceptions.getLastCreatedFeatures in interface FeatureFactory<FT extends FeatureServiceFeature,QT>createFeatures()protected abstract boolean isGenerateIds()
true, the id expression is not evaluated.true if the service generates id}protected void updateLastCreatedFeatures(Collection<FT> features, com.vividsolutions.jts.geom.Geometry geom, QT query)
features - DOCUMENT ME!geom - DOCUMENT ME!query - DOCUMENT ME!public FeatureServiceFeature createNewFeature()
FeatureFactoryAbstractFeatureService.isEditable().createNewFeature in interface FeatureFactory<FT extends FeatureServiceFeature,QT>protected boolean featuresAlreadyInMemory(com.vividsolutions.jts.geom.Geometry geom,
QT query)
geom - DOCUMENT ME!query - DOCUMENT ME!protected Vector<FT> createFeaturesFromMemory(QT query, com.vividsolutions.jts.geom.Geometry geom) throws FeatureFactory.TooManyFeaturesException, Exception
query - DOCUMENT ME!geom - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - DOCUMENT ME!Exception - DOCUMENT ME!public abstract AbstractFeatureFactory clone()
FeatureFactoryclone in interface FeatureFactory<FT extends FeatureServiceFeature,QT>clone in class Objectprotected List<org.deegree.style.se.unevaluated.Style> getStyle()
Copyright © 2012–2026 cismet GmbH. All rights reserved.