Class TypePartsReader
- java.lang.Object
-
- org.faktorips.runtime.model.type.read.TypePartsReader
-
public class TypePartsReader extends java.lang.ObjectReads the model parts from aAnnotatedDeclaration. After constructing the reader with the necessary collectors you need to callinit(AnnotatedDeclaration). ThisAnnotatedDeclarationneed to be annotated with the annotations that contains all names of the pars (e.g.IpsAttributes). After initialization you could callread(AnnotatedDeclaration)multiple times with different declarations (e.g. first for product component and second for generation).At the end the collectors have collected all relevant methods and could be asked for the requested parts.
-
-
Constructor Summary
Constructors Constructor Description TypePartsReader(TypePartCollector<?,?>... collectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(AnnotatedDeclaration annotatedDeclaration)voidread(AnnotatedDeclaration annotatedDeclaration)
-
-
-
Constructor Detail
-
TypePartsReader
public TypePartsReader(TypePartCollector<?,?>... collectors)
-
-
Method Detail
-
init
public void init(AnnotatedDeclaration annotatedDeclaration)
-
read
public void read(AnnotatedDeclaration annotatedDeclaration)
-
-