org.geotools.data.complex
Class FeatureTypeMapping

java.lang.Object
  extended by org.geotools.data.complex.FeatureTypeMapping
Direct Known Subclasses:
XmlFeatureTypeMapping

public class FeatureTypeMapping
extends java.lang.Object

Since:
2.4
Version:
$Id: FeatureTypeMapping.java 35836 2010-07-05 07:49:35Z ang05a $
Author:
Gabriel Roldan, Axios Engineering, Rini Angreani, Curtin University of Technology

Constructor Summary
FeatureTypeMapping()
          No parameters constructor for use by the digester configuration engine as a JavaBean
FeatureTypeMapping(FeatureSource source, org.opengis.feature.type.AttributeDescriptor target, java.util.List<AttributeMapping> mappings, org.xml.sax.helpers.NamespaceSupport namespaces)
           
FeatureTypeMapping(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
 AttributeMapping getAttributeMapping(XPath.StepList exactPath)
          Finds the attribute mapping for the target expression exactPath
 java.util.List<AttributeMapping> getAttributeMappings()
           
 java.util.List<AttributeMapping> getAttributeMappingsByExpression(org.opengis.filter.expression.Expression sourceExpression)
          Finds the attribute mappings for the given source expression.
 java.util.List<AttributeMapping> getAttributeMappingsIgnoreIndex(XPath.StepList targetPath)
          Finds the attribute mappings for the given target location path.
 java.lang.String getItemXpath()
           
 org.opengis.feature.type.Name getMappingName()
           
 org.xml.sax.helpers.NamespaceSupport getNamespaces()
           
 FeatureSource getSource()
           
 org.opengis.feature.type.AttributeDescriptor getTargetFeature()
           
 FeatureTypeMapping getUnderlyingComplexMapping()
           
 void setName(org.opengis.feature.type.Name name)
           
 void setTargetFeature(org.opengis.feature.type.AttributeDescriptor feature)
          Has to be called after #setTargetType(FeatureType)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTypeMapping

public FeatureTypeMapping()
No parameters constructor for use by the digester configuration engine as a JavaBean


FeatureTypeMapping

public FeatureTypeMapping(FeatureSource source,
                          org.opengis.feature.type.AttributeDescriptor target,
                          java.util.List<AttributeMapping> mappings,
                          org.xml.sax.helpers.NamespaceSupport namespaces)

FeatureTypeMapping

public FeatureTypeMapping(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

getAttributeMappings

public java.util.List<AttributeMapping> getAttributeMappings()

getAttributeMappingsIgnoreIndex

public java.util.List<AttributeMapping> getAttributeMappingsIgnoreIndex(XPath.StepList targetPath)
Finds the attribute mappings for the given target location path. If the exactPath is not indexed, it will get all the matching mappings ignoring index. If it is indexed, it will get the one with matching index only.

Parameters:
targetPath -
Returns:

getAttributeMappingsByExpression

public java.util.List<AttributeMapping> getAttributeMappingsByExpression(org.opengis.filter.expression.Expression sourceExpression)
Finds the attribute mappings for the given source expression.

Parameters:
sourceExpression -
Returns:
list of matching attribute mappings

getAttributeMapping

public AttributeMapping getAttributeMapping(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

getNamespaces

public org.xml.sax.helpers.NamespaceSupport getNamespaces()

getItemXpath

public java.lang.String getItemXpath()

setTargetFeature

public void setTargetFeature(org.opengis.feature.type.AttributeDescriptor feature)
Has to be called after #setTargetType(FeatureType)

Parameters:
elementName -
featureTypeName -

getTargetFeature

public org.opengis.feature.type.AttributeDescriptor getTargetFeature()

getSource

public FeatureSource getSource()

getUnderlyingComplexMapping

public FeatureTypeMapping getUnderlyingComplexMapping()

setName

public void setName(org.opengis.feature.type.Name name)

getMappingName

public org.opengis.feature.type.Name getMappingName()


Copyright © 1996-2010 Geotools. All Rights Reserved.