org.geotools.data.complex
Class XmlFeatureTypeMapping
java.lang.Object
org.geotools.data.complex.FeatureTypeMapping
org.geotools.data.complex.XmlFeatureTypeMapping
public class XmlFeatureTypeMapping
- extends FeatureTypeMapping
- Version:
- $Id: XmlFeatureTypeMapping.java 34358 2009-11-10 02:58:00Z bencaradocdavies $
- Author:
- Russell Petty, GSV Victoria
Methods inherited from class org.geotools.data.complex.FeatureTypeMapping |
getAttributeMapping, getAttributeMappings, getAttributeMappingsIgnoreIndex, getItemXpath, getMappingName, getNamespaces, getSource, getTargetFeature, getUnderlyingComplexMapping, setName, setTargetFeature |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlFeatureTypeMapping
public XmlFeatureTypeMapping()
- No parameters constructor for use by the digester configuration engine as a JavaBean
XmlFeatureTypeMapping
public XmlFeatureTypeMapping(FeatureSource source,
org.opengis.feature.type.AttributeDescriptor target,
java.util.List<AttributeMapping> mappings,
org.xml.sax.helpers.NamespaceSupport namespaces)
XmlFeatureTypeMapping
public XmlFeatureTypeMapping(FeatureSource source,
org.opengis.feature.type.AttributeDescriptor target,
java.util.List<AttributeMapping> mappings,
org.xml.sax.helpers.NamespaceSupport namespaces,
java.lang.String itemXpath)
getStringMappingsIgnoreIndex
public java.util.List<java.lang.String> getStringMappingsIgnoreIndex(XPath.StepList targetPath)
getAttributeMappingsByExpression
public java.util.List<AttributeMapping> getAttributeMappingsByExpression(org.opengis.filter.expression.Expression sourceExpression)
- Finds the attribute mappings for the given source expression.
- Overrides:
getAttributeMappingsByExpression
in class FeatureTypeMapping
- Parameters:
sourceExpression
-
- Returns:
- list of matching attribute mappings
getStringMapping
public java.lang.String getStringMapping(XPath.StepList exactPath)
- Finds the attribute mapping for the target expression
exactPath
- Parameters:
exactPath
- the xpath expression on the target schema to find the mapping for
- Returns:
- the attribute mapping that match 1:1 with
exactPath
or null
if
populateFeatureData
public void populateFeatureData()
throws java.io.IOException
- Throws:
java.io.IOException
getValue
protected java.lang.Object getValue(java.lang.String xpathPrefix,
org.opengis.filter.expression.Expression node)
setClientProperties
protected void setClientProperties(org.opengis.feature.Attribute target,
java.lang.Object source,
java.util.Map<org.opengis.feature.type.Name,org.opengis.filter.expression.Expression> clientProperties)
Copyright © 1996-2010 Geotools. All Rights Reserved.