Class FieldDefinition

All Implemented Interfaces:
IComponentFactory, IDefinition, IFieldDefinition, ILabeledDefinition
Direct Known Subclasses:
ExtendedFieldDefinition

public class FieldDefinition extends LabeledDefinition implements IFieldDefinition
The field definition is a definition of a component capable of editing a list of features of an object. The features are defined as FeaturePaths.
The main purpose of this definition is to describe the UI element that consists of a label and a control for editing the specified list of features.
The key feature of this definition is AbstractDefinition.hashCode() and AbstractDefinition.equals(Object) implementation, which ignores all fields except the array of the feature paths. This feature allows to implement rules with convenient ways for managing sets of definitions.
  • Constructor Details

    • FieldDefinition

      public FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.databinding.FeaturePath... paths)
      Creates a new instance with the specified arguments.
      Parameters:
      componentClass - the class of the component
      parameterization - the parameterization
      label - the label
      paths - the feature paths, may be empty
    • FieldDefinition

      public FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EStructuralFeature... features)
      Creates a new instance with the single feature path defined by its features.
      Parameters:
      componentClass - the class of the component.
      parameterization - the parameterization.
      label - the label.
      features - the features for FeaturePath.
  • Method Details