Class TypePartCollector<T extends ModelElement,D extends PartDescriptor<T>>
- java.lang.Object
-
- org.faktorips.runtime.model.type.read.TypePartCollector<T,D>
-
- Direct Known Subclasses:
AssociationCollector,AttributeCollector,TableUsageCollector,ValidationRuleCollector
public abstract class TypePartCollector<T extends ModelElement,D extends PartDescriptor<T>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]NO_NAMES
-
Constructor Summary
Constructors Constructor Description TypePartCollector(java.util.List<AnnotationProcessor<?,D>> annotationAccessors)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddPart(java.util.LinkedHashMap<java.lang.String,T> result, T part)protected abstract DcreateDescriptor()java.util.LinkedHashMap<java.lang.String,T>createParts(ModelElement parentModel)protected DgetDescriptor(java.lang.String name, java.lang.String typeName)protected java.util.LinkedHashMap<java.lang.String,D>getDescriptors()protected abstract java.lang.String[]getNames(AnnotatedDeclaration annotatedDeclaration)voidinitDescriptors(AnnotatedDeclaration annotatedDeclaration)voidreadAnnotations(AnnotatedDeclaration annotatedDeclaration, java.lang.reflect.AnnotatedElement annotatedElement)
-
-
-
Constructor Detail
-
TypePartCollector
public TypePartCollector(java.util.List<AnnotationProcessor<?,D>> annotationAccessors)
-
-
Method Detail
-
initDescriptors
public void initDescriptors(AnnotatedDeclaration annotatedDeclaration)
-
createParts
public java.util.LinkedHashMap<java.lang.String,T> createParts(ModelElement parentModel)
-
getNames
protected abstract java.lang.String[] getNames(AnnotatedDeclaration annotatedDeclaration)
-
createDescriptor
protected abstract D createDescriptor()
-
readAnnotations
public void readAnnotations(AnnotatedDeclaration annotatedDeclaration, java.lang.reflect.AnnotatedElement annotatedElement)
-
getDescriptor
protected D getDescriptor(java.lang.String name, java.lang.String typeName)
-
getDescriptors
protected java.util.LinkedHashMap<java.lang.String,D> getDescriptors()
-
-