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 Summary
Constructors Constructor Description AbstractAssociationDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Pcreate(ModelElement parentElement)Is called by the collector to create a part of type T using the previously collected information.protected abstract PcreateValid(Type type)java.lang.reflect.MethodgetAddMethod()java.lang.reflect.MethodgetAnnotatedElement()java.lang.reflect.MethodgetRemoveMethod()booleanisValid()voidsetAddMethod(java.lang.reflect.Method adderMethod)voidsetAnnotatedElement(java.lang.reflect.Method annotatedElement)voidsetRemoveMethod(java.lang.reflect.Method removeMethod)-
Methods inherited from class org.faktorips.runtime.model.type.read.PartDescriptor
getName, setName
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
-
getAnnotatedElement
public java.lang.reflect.Method getAnnotatedElement()
-
setAnnotatedElement
public void setAnnotatedElement(java.lang.reflect.Method annotatedElement)
-
setAddMethod
public void setAddMethod(java.lang.reflect.Method adderMethod)
-
getAddMethod
public java.lang.reflect.Method getAddMethod()
-
getRemoveMethod
public java.lang.reflect.Method getRemoveMethod()
-
setRemoveMethod
public void setRemoveMethod(java.lang.reflect.Method removeMethod)
-
create
public P create(ModelElement parentElement)
Description copied from class:PartDescriptorIs called by the collector to create a part of type T using the previously collected information.- Specified by:
createin classPartDescriptor<P extends Association>- Parameters:
parentElement- The parent of the part that should be created- Returns:
- The newly created part
-
-