public class XmlMappingFeatureIterator extends DataAccessMappingFeatureIterator
Modifier and Type | Field and Description |
---|---|
protected XmlResponse |
xmlResponse |
static String |
XPATH_SEPARATOR
Constants for manipulating XPath Expressions
|
curSrcFeature, foreignIds, mappedSource, reprojection, sourceFeatures, targetFeature
attf, dataMaxFeatures, featureCounter, filterFac, ftf, includeMandatory, LOGGER, mapping, namespaceAwareFilterFactory, namespaces, query, requestMaxFeatures, RESOLVE_TIMEOUT_POLL_INTERVAL, resolveDepth, resolveTimeOut, selectedMapping, selectedProperties, store, transaction, XLINK_HREF_NAME, xpathAttributeBuilder
Constructor and Description |
---|
XmlMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query) |
XmlMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query,
String xpath,
String value) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeSourceFeatures() |
protected Feature |
computeNext() |
static String |
createIndexedItemXpathString(XmlFeatureTypeMapping mapping,
XmlResponse xmlResponse,
int indexCounter) |
protected 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 FeatureIterator<? extends Feature> |
getSourceFeatureIterator() |
protected List<String> |
getValue(String expressionValue) |
boolean |
hasNext()
Return true if there are more features.
|
protected boolean |
isNextSourceFeatureNull() |
protected boolean |
isSourceFeatureIteratorNull() |
protected Feature |
populateFeatureData() |
protected void |
setClientProperties(Attribute target,
Object xpathPrefix,
Map<Name,Expression> clientProperties) |
protected boolean |
sourceFeatureIteratorHasNext() |
protected boolean |
unprocessedFeatureExists() |
checkForeignIdValues, checkForeignIdValues, cleanEmptyElements, extractIdForFeature, getForeignIdValues, getIdValues, getMappedSource, getNextFeatureId, getSources, getValue, getValues, initialiseSourceFeatures, isByReference, isReprojectionCrsEqual, isTransactionOwner, peekNextValue, peekValue, populateFeatureData, setAttributeValue, setForeignIds, setListFilter, setNextFeature, setXlinkReference, skip, skipNestedMapping, skipTopElement
close, getClientProperties, getTransaction, getUnrolledQuery, isHasNextCalled, next, referenceToIdentifier, remove, setAttributeContent, setGeometryUserData, setHasNextCalled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static final String XPATH_SEPARATOR
protected XmlResponse xmlResponse
public XmlMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query) throws IOException
store
- mapping
- place holder for the target type, the surrogate FeatureSource and the mappings
between them.query
- the query over the target feature type, that is to be unpacked to its equivalent
over the surrogate feature type.IOException
public XmlMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, String xpath, String value) throws IOException
IOException
protected FeatureIterator<? extends Feature> getSourceFeatureIterator()
getSourceFeatureIterator
in class DataAccessMappingFeatureIterator
protected boolean isSourceFeatureIteratorNull()
isSourceFeatureIteratorNull
in class DataAccessMappingFeatureIterator
protected String extractIdForAttribute(Expression idExpression, Object sourceInstance)
AbstractMappingFeatureIterator
idExpression
from the source complex attribute.extractIdForAttribute
in class DataAccessMappingFeatureIterator
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.public static String createIndexedItemXpathString(XmlFeatureTypeMapping mapping, XmlResponse xmlResponse, int indexCounter)
protected Feature populateFeatureData() throws IOException
IOException
protected void setClientProperties(Attribute target, Object xpathPrefix, Map<Name,Expression> clientProperties)
setClientProperties
in class AbstractMappingFeatureIterator
protected boolean unprocessedFeatureExists()
unprocessedFeatureExists
in class DataAccessMappingFeatureIterator
protected boolean sourceFeatureIteratorHasNext()
sourceFeatureIteratorHasNext
in class DataAccessMappingFeatureIterator
protected boolean isNextSourceFeatureNull()
isNextSourceFeatureNull
in class DataAccessMappingFeatureIterator
protected void closeSourceFeatures()
closeSourceFeatures
in class DataAccessMappingFeatureIterator
public boolean hasNext()
hasNext
in interface Iterator<Feature>
hasNext
in interface FeatureIterator<Feature>
hasNext
in class DataAccessMappingFeatureIterator
Iterator.hasNext()
protected Feature computeNext() throws IOException
computeNext
in class DataAccessMappingFeatureIterator
IOException
Copyright © 1996–2019 Geotools. All rights reserved.