public static class FeatureChainedAttributeVisitor.FeatureChainedAttributeDescriptor extends Object
In more detail, purpose of this class is to store:
Modifier and Type | Method and Description |
---|---|
void |
addLink(FeatureChainedAttributeVisitor.FeatureChainLink chainLink)
Adds a new link in the feature types chain.
|
int |
chainSize()
Gets the size of the feature types chain.
|
XPathUtil.StepList |
getAttributePath()
Gets the path of the feature chained attribute.
|
List<FeatureChainedAttributeVisitor.FeatureChainLink> |
getFeatureChain()
Returns the list of links in the feature types chain.
|
FeatureTypeMapping |
getFeatureTypeOwningAttribute()
Returns the feature type where the mapping configuration of the nested attribute is
defined.
|
FeatureChainedAttributeVisitor.FeatureChainLink |
getFirstLink()
Gets the first link in the feature types chain.
|
FeatureChainedAttributeVisitor.FeatureChainLink |
getLastLink()
Gets the last link in the feature types chain.
|
FeatureChainedAttributeVisitor.FeatureChainLink |
getLink(int linkIdx)
Gets a link in the feature types chain by its index.
|
boolean |
isJoiningEnabled()
Checks whether all nested attribute mappings are instances of
JoiningNestedAttributeMapping . |
void |
setAttributePath(XPathUtil.StepList attributePath)
Sets the path of the feature chained attribute.
|
FeatureChainedAttributeVisitor.FeatureChainedAttributeDescriptor |
shallowCopy()
Perform a shallow copy of this
FeatureChainedAttributeVisitor.FeatureChainedAttributeDescriptor instance. |
public List<FeatureChainedAttributeVisitor.FeatureChainLink> getFeatureChain()
public void addLink(FeatureChainedAttributeVisitor.FeatureChainLink chainLink)
chainLink
- the link to addpublic FeatureChainedAttributeVisitor.FeatureChainLink getLink(int linkIdx)
linkIdx
- the link index (0-based)IllegalArgumentException
- if linkIdx
is negativeIndexOutOfBoundsException
- if linkIdx
is >= than the chain sizepublic FeatureChainedAttributeVisitor.FeatureChainLink getFirstLink()
IndexOutOfBoundsException
- if the feature types chain is emptypublic FeatureChainedAttributeVisitor.FeatureChainLink getLastLink()
IndexOutOfBoundsException
- if the feature types chain is emptypublic boolean isJoiningEnabled()
JoiningNestedAttributeMapping
.true
if all nested attribute mappings in the chain support joining,
false
otherwisepublic int chainSize()
public XPathUtil.StepList getAttributePath()
public void setAttributePath(XPathUtil.StepList attributePath)
attributePath
- the attribute path to setpublic FeatureTypeMapping getFeatureTypeOwningAttribute()
In practice, this is the last linked feature type in the chain, except when the last chaining is done by reference (via an xlink:href attribute), in which case the second last feature type is returned.
public FeatureChainedAttributeVisitor.FeatureChainedAttributeDescriptor shallowCopy()
FeatureChainedAttributeVisitor.FeatureChainedAttributeDescriptor
instance.Copyright © 1996–2023 Geotools. All rights reserved.