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, targetFeatureattf, 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, skipTopElementclose, getClientProperties, getTransaction, getUnrolledQuery, isHasNextCalled, next, referenceToIdentifier, remove, setAttributeContent, setGeometryUserData, setHasNextCalledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic 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.IOExceptionpublic XmlMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, String xpath, String value) throws IOException
IOExceptionprotected FeatureIterator<? extends Feature> getSourceFeatureIterator()
getSourceFeatureIterator in class DataAccessMappingFeatureIteratorprotected boolean isSourceFeatureIteratorNull()
isSourceFeatureIteratorNull in class DataAccessMappingFeatureIteratorprotected String extractIdForAttribute(Expression idExpression, Object sourceInstance)
AbstractMappingFeatureIteratoridExpression from the source complex attribute.extractIdForAttribute in class DataAccessMappingFeatureIteratoridExpression - 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
IOExceptionprotected void setClientProperties(Attribute target, Object xpathPrefix, Map<Name,Expression> clientProperties)
setClientProperties in class AbstractMappingFeatureIteratorprotected boolean unprocessedFeatureExists()
unprocessedFeatureExists in class DataAccessMappingFeatureIteratorprotected boolean sourceFeatureIteratorHasNext()
sourceFeatureIteratorHasNext in class DataAccessMappingFeatureIteratorprotected boolean isNextSourceFeatureNull()
isNextSourceFeatureNull in class DataAccessMappingFeatureIteratorprotected void closeSourceFeatures()
closeSourceFeatures in class DataAccessMappingFeatureIteratorpublic boolean hasNext()
hasNext in interface Iterator<Feature>hasNext in interface FeatureIterator<Feature>hasNext in class DataAccessMappingFeatureIteratorIterator.hasNext()protected Feature computeNext() throws IOException
computeNext in class DataAccessMappingFeatureIteratorIOExceptionCopyright © 1996–2019 Geotools. All rights reserved.