Class PartDescriptor<T extends ModelElement>

java.lang.Object
org.faktorips.runtime.model.type.read.PartDescriptor<T>
Direct Known Subclasses:
AbstractAssociationDescriptor, AbstractAttributeDescriptor, TableUsageCollector.TableUsageDescriptor, ValidationRuleDescriptor

public abstract class PartDescriptor<T extends ModelElement> extends Object
A descriptor for a part which type is specified by the generic type T.

To be totally type safe we would need to specify the generic subtype of Type. But this leads to much more generic overhead for little use.

  • Constructor Details

    • PartDescriptor

      public PartDescriptor()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • create

      public abstract T create(ModelElement parentElement)
      Is called by the collector to create a part of type T using the previously collected information.
      Parameters:
      parentElement - The parent of the part that should be created
      Returns:
      The newly created part