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 Summary
Constructors Constructor Description AbstractAttributeDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tcreate(ModelElement parentElement)Is called by the collector to create a part of type T using the previously collected information.protected abstract TcreateValid(Type type)java.lang.reflect.AnnotatedElementgetAnnotatedElement()java.lang.reflect.MethodgetSetterMethod()booleanisValid()voidsetAnnotatedElement(java.lang.reflect.AnnotatedElement annotatedElement)voidsetSetterMethod(java.lang.reflect.Method setterMethod)-
Methods inherited from class org.faktorips.runtime.model.type.read.PartDescriptor
getName, setName
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
-
getAnnotatedElement
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
-
setAnnotatedElement
public void setAnnotatedElement(java.lang.reflect.AnnotatedElement annotatedElement)
-
getSetterMethod
public java.lang.reflect.Method getSetterMethod()
-
setSetterMethod
public void setSetterMethod(java.lang.reflect.Method setterMethod)
-
create
public T 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<T extends Attribute>- Parameters:
parentElement- The parent of the part that should be created- Returns:
- The newly created part
-
-