Interface IContainer

All Known Subinterfaces:
IAssemblyDefinition, IBindingDefinitionModel, IBindingDefinitionModelAssembly, IBoundDefinitionModel<ITEM>, IBoundDefinitionModelAssembly, IBoundDefinitionModelComplex, IBoundDefinitionModelField<ITEM>, IBoundDefinitionModelFieldComplex, IBoundInstanceModelChoiceGroup, IBoundInstanceModelFieldScalar, IChoiceGroupInstance, IChoiceInstance, IContainerModel, IContainerModelAbsolute, IContainerModelAssembly, IContainerModelGrouped, IFeatureContainerFlag<FI>, IFeatureContainerModelAbsolute<MI,NMI,FI,AI>, IFeatureContainerModelAssembly<MI,NMI,FI,AI,CI,CGI>, IFeatureContainerModelGrouped<NMI,FI,AI>, IFieldDefinition, IModelDefinition
All Known Implementing Classes:
AbstractChoiceGroupInstance, AbstractChoiceInstance, AbstractGlobalAssemblyDefinition, AbstractGlobalFieldDefinition, AbstractInlineAssemblyDefinition, AbstractInlineFieldDefinition
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IContainer
Represents a model element that can contain child instances.

This interface is implemented by model definitions that may contain flags, fields, or assemblies as part of their structure.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Identifies if the container allows child instances or not.
  • Method Details

    • hasChildren

      boolean hasChildren()
      Identifies if the container allows child instances or not.

      This can be the case if the container has flags or a complex model with at least a choice, choice group, field, or assembly instance.

      Returns:
      true if there are flags or a model, or false otherwise