Class PartDescriptor<T extends ModelElement>
- java.lang.Object
-
- org.faktorips.runtime.model.type.read.PartDescriptor<T>
-
- Direct Known Subclasses:
AbstractAssociationDescriptor,AbstractAttributeDescriptor,TableUsageCollector.TableUsageDescriptor,ValidationRuleDescriptor
public abstract class PartDescriptor<T extends ModelElement> extends java.lang.ObjectA descriptor for a part which type is specified by the generic type T.To be totally type safe we would need to specify the generic subtype of
Type. But this leads to much more generic overhead for little use.
-
-
Constructor Summary
Constructors Constructor Description PartDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tcreate(ModelElement parentElement)Is called by the collector to create a part of type T using the previously collected information.java.lang.StringgetName()voidsetName(java.lang.String name)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
create
public abstract T create(ModelElement parentElement)
Is called by the collector to create a part of type T using the previously collected information.- Parameters:
parentElement- The parent of the part that should be created- Returns:
- The newly created part
-
-