Class AbstractAssociationDescriptor<P extends Association>

java.lang.Object
org.faktorips.runtime.model.type.read.PartDescriptor<P>
org.faktorips.runtime.model.type.read.AbstractAssociationDescriptor<P>
Direct Known Subclasses:
PolicyAssociationCollector.PolicyAssociationDescriptor, ProductAssociationCollector.ProductAssociationDescriptor

public abstract class AbstractAssociationDescriptor<P extends Association> extends PartDescriptor<P>
  • Constructor Details

    • AbstractAssociationDescriptor

      public AbstractAssociationDescriptor()
  • Method Details

    • isValid

      public boolean isValid()
    • getAnnotatedElement

      public Method getAnnotatedElement()
    • setAnnotatedElement

      public void setAnnotatedElement(Method annotatedElement)
    • setAddMethod

      public void setAddMethod(Method adderMethod)
    • getAddMethod

      public Method getAddMethod()
    • getRemoveMethod

      public Method getRemoveMethod()
    • setRemoveMethod

      public void setRemoveMethod(Method removeMethod)
    • create

      public P create(ModelElement parentElement)
      Description copied from class: PartDescriptor
      Is called by the collector to create a part of type T using the previously collected information.
      Specified by:
      create in class PartDescriptor<P extends Association>
      Parameters:
      parentElement - The parent of the part that should be created
      Returns:
      The newly created part
    • createValid

      protected abstract P createValid(Type type)