|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMappingFeatureIterator
public abstract class AbstractMappingFeatureIterator
Base class for several MappingFeatureImplementation's.
| Field Summary | |
|---|---|
protected FeatureFactory |
attf
Factory used to create the target feature and attributes |
protected int |
featureCounter
counter to ensure maxFeatures is not exceeded |
protected FeatureTypeFactory |
ftf
|
protected boolean |
includeMandatory
|
protected static Logger |
LOGGER
The logger for the filter module. |
protected FeatureTypeMapping |
mapping
The mappings for the source and target schemas |
protected int |
maxFeatures
maxFeatures restriction value as provided by query |
protected FilterFactory |
namespaceAwareFilterFactory
|
protected NamespaceSupport |
namespaces
|
protected int |
resolveDepth
|
protected Integer |
resolveTimeOut
|
protected List<AttributeMapping> |
selectedMapping
Mappings after Property Selection is applied |
protected Map<AttributeMapping,List<PropertyName>> |
selectedProperties
Selected Properties for Feature Chaining |
protected AppSchemaDataAccess |
store
|
static Name |
XLINK_HREF_NAME
Name representation of xlink:href |
protected XPath |
xpathAttributeBuilder
|
| Constructor Summary | |
|---|---|
AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query)
|
|
AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query,
Query unrolledQuery)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying FeatureIterator |
protected abstract void |
closeSourceFeatures()
|
protected abstract Feature |
computeNext()
|
protected abstract String |
extractIdForAttribute(Expression idExpression,
Object sourceInstance)
Based on the set of xpath expression/id extracting expression, finds the ID for the attribute idExpression from the source complex attribute. |
protected Map |
getClientProperties(Property attribute)
|
protected abstract FeatureIterator<? extends Feature> |
getSourceFeatureIterator()
|
protected Query |
getUnrolledQuery(Query query)
Return a query appropriate to its underlying feature source. |
protected abstract Object |
getValue(Expression expression,
Object sourceFeature)
|
abstract boolean |
hasNext()
Does another Feature exist in this Iteration. |
protected abstract void |
initialiseSourceFeatures(FeatureTypeMapping mapping,
Query query,
CoordinateReferenceSystem crs)
|
protected boolean |
isHasNextCalled()
|
protected abstract boolean |
isNextSourceFeatureNull()
|
protected abstract boolean |
isSourceFeatureIteratorNull()
|
Feature |
next()
Return next feature. |
protected abstract Feature |
populateFeatureData(String id)
|
protected static String |
referenceToIdentifier(String reference)
|
void |
remove()
Shall not be called, just throws an UnsupportedOperationException |
protected Attribute |
setAttributeContent(Attribute target,
XPathUtil.StepList xpath,
Object value,
String id,
AttributeType targetNodeType,
boolean isXlinkRef,
Expression sourceExpression,
Object source,
Map<Name,Expression> clientProperties,
boolean ignoreXlinkHref)
|
protected void |
setClientProperties(Attribute target,
Object source,
Map<Name,Expression> clientProperties)
|
protected void |
setGeometryUserData(Attribute target,
Map<Name,Object> targetAttributes)
|
protected void |
setHasNextCalled(boolean hasNextCalled)
|
protected abstract boolean |
sourceFeatureIteratorHasNext()
|
protected abstract boolean |
unprocessedFeatureExists()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
protected FeatureTypeFactory ftf
public static final Name XLINK_HREF_NAME
protected FeatureTypeMapping mapping
protected List<AttributeMapping> selectedMapping
protected Map<AttributeMapping,List<PropertyName>> selectedProperties
protected boolean includeMandatory
protected FeatureFactory attf
protected AppSchemaDataAccess store
protected final XPath xpathAttributeBuilder
protected FilterFactory namespaceAwareFilterFactory
protected final int maxFeatures
protected int featureCounter
protected NamespaceSupport namespaces
protected int resolveDepth
protected Integer resolveTimeOut
| Constructor Detail |
|---|
public AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query)
throws IOException
IOException
public AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query,
Query unrolledQuery)
throws IOException
IOException| Method Detail |
|---|
public void remove()
remove in interface Iterator<Feature>public void close()
close in interface Closeableclose in interface FeatureIterator<Feature>
protected abstract String extractIdForAttribute(Expression idExpression,
Object sourceInstance)
idExpression from the source complex attribute.
idExpression - the location path of the attribute to be created, for which to obtain the id by
evaluating the corresponding org.geotools.filter.Expression from
sourceInstance.sourceInstance - a complex attribute which is the source of the mapping.
attributeXPath, or null if there is no an id mapping for
that attribute.protected Query getUnrolledQuery(Query query)
query - the original query against the output schema
protected boolean isHasNextCalled()
protected void setHasNextCalled(boolean hasNextCalled)
public Feature next()
next in interface Iterator<Feature>next in interface FeatureIterator<Feature>Iterator.next()
protected Map getClientProperties(Property attribute)
throws DataSourceException
DataSourceExceptionprotected static String referenceToIdentifier(String reference)
protected Attribute setAttributeContent(Attribute target,
XPathUtil.StepList xpath,
Object value,
String id,
AttributeType targetNodeType,
boolean isXlinkRef,
Expression sourceExpression,
Object source,
Map<Name,Expression> clientProperties,
boolean ignoreXlinkHref)
protected void setClientProperties(Attribute target,
Object source,
Map<Name,Expression> clientProperties)
protected void setGeometryUserData(Attribute target,
Map<Name,Object> targetAttributes)
protected abstract void closeSourceFeatures()
protected abstract FeatureIterator<? extends Feature> getSourceFeatureIterator()
protected abstract void initialiseSourceFeatures(FeatureTypeMapping mapping,
Query query,
CoordinateReferenceSystem crs)
throws IOException
IOExceptionprotected abstract boolean unprocessedFeatureExists()
protected abstract boolean sourceFeatureIteratorHasNext()
protected abstract boolean isNextSourceFeatureNull()
protected abstract Feature populateFeatureData(String id)
throws IOException
IOException
protected abstract Object getValue(Expression expression,
Object sourceFeature)
protected abstract boolean isSourceFeatureIteratorNull()
protected abstract Feature computeNext()
throws IOException
IOExceptionpublic abstract boolean hasNext()
FeatureIteratorIterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
hasNext in interface Iterator<Feature>hasNext in interface FeatureIterator<Feature>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||