public static class FeatureChainedAttributeVisitor.FeatureChainLink extends Object
The class is public
as its purpose is to convey information to clients, but
instantiation and manipulation of its internal state is private
.
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Unique identifier of a link in the chain; mainly useful when SQL encoding the feature
chained attribute.
|
FeatureTypeMapping |
getFeatureTypeMapping()
Gets the mapping configuration of the linked feature type.
|
NestedAttributeMapping |
getNestedFeatureAttribute()
Gets the mapping configuration of the attribute holding the next nested feature in the
chain.
|
<T extends NestedAttributeMapping> |
getNestedFeatureAttribute(Class<T> attributeMappingClass)
Gets the mapping configuration of the attribute holding the next nested feature in the
chain, cast to the specified
NestedAttributeMapping subclass. |
boolean |
hasNestedFeature()
Returns
true if this link refers to a nested feature type which in turn
contains another nested feature. |
boolean |
isChainingByReference()
Returns
true if this FeatureChainedAttributeVisitor.FeatureChainLink instance represents a
chaining-by-reference mapping, i.e. nested feature is not fully encoded inline, only
xlink:href attribute is set. |
boolean |
isJoiningNestedMapping()
Returns
true if joining support is enabled for the nested attribute mapping. |
FeatureChainedAttributeVisitor.FeatureChainLink |
next()
Returns the next link in the chain.
|
FeatureChainedAttributeVisitor.FeatureChainLink |
previous()
Returns the previous link in the chain.
|
public FeatureTypeMapping getFeatureTypeMapping()
public NestedAttributeMapping getNestedFeatureAttribute()
null
if there are no more nested
features in the chainpublic <T extends NestedAttributeMapping> T getNestedFeatureAttribute(Class<T> attributeMappingClass)
NestedAttributeMapping
subclass.attributeMappingClass
- the NestedAttributeMapping
subclass to cast togetNestedFeatureAttribute()
public boolean isChainingByReference()
true
if this FeatureChainedAttributeVisitor.FeatureChainLink
instance represents a
chaining-by-reference mapping, i.e. nested feature is not fully encoded inline, only
xlink:href
attribute is set.true
if this is chaining by reference, false
otherwisepublic boolean isJoiningNestedMapping()
true
if joining support is enabled for the nested attribute mapping.true
if joining support is enabled for this chain link, false
otherwisepublic boolean hasNestedFeature()
true
if this link refers to a nested feature type which in turn
contains another nested feature.true
if there is another nested feature in the chain, false
otherwisepublic String getAlias()
public FeatureChainedAttributeVisitor.FeatureChainLink next()
null
if none existspublic FeatureChainedAttributeVisitor.FeatureChainLink previous()
null
if none existsCopyright © 1996–2023 Geotools. All rights reserved.