org.geotools.data.complex
Class XmlFeatureTypeMapping

java.lang.Object
  extended by org.geotools.data.complex.FeatureTypeMapping
      extended by 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

Constructor Summary
XmlFeatureTypeMapping()
          No parameters constructor for use by the digester configuration engine as a JavaBean
XmlFeatureTypeMapping(FeatureSource source, org.opengis.feature.type.AttributeDescriptor target, java.util.List<AttributeMapping> mappings, org.xml.sax.helpers.NamespaceSupport namespaces)
           
XmlFeatureTypeMapping(FeatureSource source, org.opengis.feature.type.AttributeDescriptor target, java.util.List<AttributeMapping> mappings, org.xml.sax.helpers.NamespaceSupport namespaces, java.lang.String itemXpath)
           
 
Method Summary
 java.util.List<AttributeMapping> getAttributeMappingsByExpression(org.opengis.filter.expression.Expression sourceExpression)
          Finds the attribute mappings for the given source expression.
 java.lang.String getStringMapping(XPath.StepList exactPath)
          Finds the attribute mapping for the target expression exactPath
 java.util.List<java.lang.String> getStringMappingsIgnoreIndex(XPath.StepList targetPath)
           
protected  java.lang.Object getValue(java.lang.String xpathPrefix, org.opengis.filter.expression.Expression node)
           
 void populateFeatureData()
           
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)
           
 
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
 

Constructor Detail

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)
Method Detail

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.