Package org.faktorips.runtime.model.type
Class TypePart
java.lang.Object
org.faktorips.runtime.model.type.ModelElement
org.faktorips.runtime.model.type.TypePart
- Direct Known Subclasses:
Association,Attribute,Formula,TableUsage,ValidationRule
Abstract class for any part of a
Type.-
Constructor Summary
ConstructorsConstructorDescriptionTypePart(String name, Type parent, IpsExtensionProperties extensionProperties, Optional<Deprecation> deprecation) -
Method Summary
Modifier and TypeMethodDescriptionprotected MessagesHelperprotected StringgetMessageKey(DocumentationKind messageType) Deprecated.getType()Returns the parentTypeprotected StringReturns the name of the parent model type.abstract booleanChecks whether this part is changing over time (resides in the generation) or not (resides in the product component).voidvalidate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) Validates this part's configuration in the given product against the model.Methods inherited from class org.faktorips.runtime.model.type.ModelElement
createMessageHelper, getDeprecation, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, getRelevantProductObject, invokeField, invokeMethod, isDeprecated, toString
-
Constructor Details
-
TypePart
public TypePart(String name, Type parent, IpsExtensionProperties extensionProperties, Optional<Deprecation> deprecation)
-
-
Method Details
-
getType
Returns the parentType -
getModelType
Deprecated.UsegetType()Returns the parentType -
getTypeName
Returns the name of the parent model type. -
getMessageKey
- Specified by:
getMessageKeyin classModelElement
-
getMessageHelper
- Specified by:
getMessageHelperin classModelElement
-
validate
public void validate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) Validates this part's configuration in the given product against the model.- Parameters:
list- aMessageList, to which validation messages may be addedcontext- theIValidationContext, needed to determine theLocalein which to createMessagesproduct- theIProductComponentto validateeffectiveDate- the date that determines whichIProductComponentGenerationis to be validated, if theIProductComponenthas any and this partis changing over time- Since:
- 25.1
-
isChangingOverTime
public abstract boolean isChangingOverTime()Checks whether this part is changing over time (resides in the generation) or not (resides in the product component).- Returns:
- whether this association is changing over time
- Since:
- 25.1
-
getType()