Class AbstractAttributeDescriptor<T extends Attribute>

java.lang.Object
org.faktorips.runtime.model.type.read.PartDescriptor<T>
org.faktorips.runtime.model.type.read.AbstractAttributeDescriptor<T>
Direct Known Subclasses:
PolicyAttributeCollector.PolicyAttributeDescriptor, ProductAttributeCollector.ProductAttributeDescriptor

public abstract class AbstractAttributeDescriptor<T extends Attribute> extends PartDescriptor<T>
  • Constructor Details

    • AbstractAttributeDescriptor

      public AbstractAttributeDescriptor()
  • Method Details

    • isValid

      public boolean isValid()
    • getAnnotatedElement

      public AnnotatedElement getAnnotatedElement()
    • setAnnotatedElement

      public void setAnnotatedElement(AnnotatedElement annotatedElement)
    • getSetterMethod

      public Method getSetterMethod()
    • setSetterMethod

      public void setSetterMethod(Method setterMethod)
    • create

      public T 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<T extends Attribute>
      Parameters:
      parentElement - The parent of the part that should be created
      Returns:
      The newly created part
    • createValid

      protected abstract T createValid(Type type)