Package org.geotools.data.complex.filter
Class FeatureChainedAttributeVisitor.FeatureChainLink
Object
FeatureChainLink
- Enclosing class:
- FeatureChainedAttributeVisitor
Represents a single link in the "chain" of feature types that need to be linked to go from the root type to a
nested attribute.
The class is public as its purpose is to convey information to clients, but instantiation and
manipulation of its internal state is private.
- Author:
- Stefano Costa, GeoSolutions
-
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Unique identifier of a link in the chain; mainly useful when SQL encoding the feature chained attribute.Gets the mapping configuration of the linked feature type.Gets the mapping configuration of the attribute holding the next nested feature in the chain.<T extends NestedAttributeMapping>
TgetNestedFeatureAttribute(Class<T> attributeMappingClass) Gets the mapping configuration of the attribute holding the next nested feature in the chain, cast to the specifiedNestedAttributeMappingsubclass.booleanReturnstrueif this link refers to a nested feature type which in turn contains another nested feature.booleanReturnstrueif thisFeatureChainedAttributeVisitor.FeatureChainLinkinstance represents a chaining-by-reference mapping, i.e. nested feature is not fully encoded inline, onlyxlink:hrefattribute is set.booleanReturnstrueif joining support is enabled for the nested attribute mapping.next()Returns the next link in the chain.previous()Returns the previous link in the chain.
-
Method Details
-
getFeatureTypeMapping
Gets the mapping configuration of the linked feature type.- Returns:
- the linked feature type mapping
-
getNestedFeatureAttribute
Gets the mapping configuration of the attribute holding the next nested feature in the chain.- Returns:
- the nested attribute mapping, or
nullif there are no more nested features in the chain
-
getNestedFeatureAttribute
public <T extends NestedAttributeMapping> T getNestedFeatureAttribute(Class<T> attributeMappingClass) Gets the mapping configuration of the attribute holding the next nested feature in the chain, cast to the specifiedNestedAttributeMappingsubclass.- Parameters:
attributeMappingClass- theNestedAttributeMappingsubclass to cast to- See Also:
-
isChainingByReference
public boolean isChainingByReference()Returnstrueif thisFeatureChainedAttributeVisitor.FeatureChainLinkinstance represents a chaining-by-reference mapping, i.e. nested feature is not fully encoded inline, onlyxlink:hrefattribute is set.- Returns:
trueif this is chaining by reference,falseotherwise
-
isJoiningNestedMapping
public boolean isJoiningNestedMapping()Returnstrueif joining support is enabled for the nested attribute mapping.- Returns:
trueif joining support is enabled for this chain link,falseotherwise
-
hasNestedFeature
public boolean hasNestedFeature()Returnstrueif this link refers to a nested feature type which in turn contains another nested feature.- Returns:
trueif there is another nested feature in the chain,falseotherwise
-
getAlias
Unique identifier of a link in the chain; mainly useful when SQL encoding the feature chained attribute.- Returns:
- a unique identifier of the link
-
next
Returns the next link in the chain.- Returns:
- the next link, or
nullif none exists
-
previous
Returns the previous link in the chain.- Returns:
- the previous link, or
nullif none exists
-