public class FeatureNodeContainerTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<eu.etaxonomy.cdm.model.description.DescriptionElementBase> |
comparator
Constant
comparator |
Constructor and Description |
---|
FeatureNodeContainerTree(eu.etaxonomy.cdm.model.description.DescriptionBase description,
eu.etaxonomy.cdm.model.description.FeatureTree featureTree) |
Modifier and Type | Method and Description |
---|---|
void |
addContainer(FeatureNodeContainer container) |
void |
buildTree()
Traverses the given
FeatureNode and computes a FeatureNodeContainer branch if the
given TaxonDescription has elements for the given feature node or any of its children
or null if there are no elements. |
eu.etaxonomy.cdm.model.description.DescriptionBase |
getDescription() |
java.util.List<eu.etaxonomy.cdm.model.description.DescriptionElementBase> |
getDescriptionsElementsForFeature(eu.etaxonomy.cdm.model.description.Feature feature)
Returns all elements contained in the given
description that have the given feature . |
FeatureNodeContainer |
getFeatureNodeContainer(eu.etaxonomy.cdm.model.description.Feature feature) |
FeatureNodeContainer |
getFeatureNodeContainer(eu.etaxonomy.cdm.model.description.FeatureNode featureNode) |
FeatureNodeContainer |
getFeatureNodeContainerForDescriptionElement(eu.etaxonomy.cdm.model.description.DescriptionElementBase descriptionElement)
getFeatureNodeContainerForDescriptionElement
|
eu.etaxonomy.cdm.model.description.FeatureTree |
getFeatureTree() |
FeatureNodeContainer |
getRoot() |
void |
removeContainer(FeatureNodeContainer container) |
public static java.util.Comparator<eu.etaxonomy.cdm.model.description.DescriptionElementBase> comparator
comparator
public FeatureNodeContainerTree(eu.etaxonomy.cdm.model.description.DescriptionBase description, eu.etaxonomy.cdm.model.description.FeatureTree featureTree)
public void buildTree()
FeatureNode
and computes a FeatureNodeContainer branch if the
given TaxonDescription
has elements for the given feature node or any of its children
or null if there are no elements.public FeatureNodeContainer getFeatureNodeContainerForDescriptionElement(eu.etaxonomy.cdm.model.description.DescriptionElementBase descriptionElement)
getFeatureNodeContainerForDescriptionElement
descriptionElement
- a DescriptionElementBase
object.FeatureNodeContainer
object.public java.util.List<eu.etaxonomy.cdm.model.description.DescriptionElementBase> getDescriptionsElementsForFeature(eu.etaxonomy.cdm.model.description.Feature feature)
description
that have the given feature
.description
- feature
- DescriptionHelper.getLabel(Object)
public FeatureNodeContainer getFeatureNodeContainer(eu.etaxonomy.cdm.model.description.Feature feature)
public FeatureNodeContainer getFeatureNodeContainer(eu.etaxonomy.cdm.model.description.FeatureNode featureNode)
public void addContainer(FeatureNodeContainer container)
public void removeContainer(FeatureNodeContainer container)
public FeatureNodeContainer getRoot()
public eu.etaxonomy.cdm.model.description.DescriptionBase getDescription()
public eu.etaxonomy.cdm.model.description.FeatureTree getFeatureTree()
Copyright © 2007-2018. All Rights Reserved.