public abstract class Attribute extends TypePart implements IModelTypeAttribute
Attribute represents an attribute from a PolicyCmptType or a ProductCmptType.IModelTypeAttribute.AttributeType, IModelTypeAttribute.ValueSetType| Constructor and Description |
|---|
Attribute(Type type,
IpsAttribute attributeAnnotation,
IpsExtensionProperties extensionProperties,
Class<?> datatype,
boolean changingOverTime) |
| Modifier and Type | Method and Description |
|---|---|
abstract Attribute |
createOverwritingAttributeFor(Type subType)
Creates an attribute model for a sub type in which this attribute is overwritten.
|
AttributeKind |
getAttributeKind() |
IModelTypeAttribute.AttributeType |
getAttributeType()
Deprecated.
|
Class<?> |
getDatatype() |
protected Object |
getRelevantProductObject(IProductComponent productComponent,
Calendar effectiveDate) |
ValueSetKind |
getValueSetKind() |
IModelTypeAttribute.ValueSetType |
getValueSetType()
Deprecated.
|
boolean |
isChangingOverTime()
Checks whether this attribute is changing over time.
|
abstract boolean |
isProductRelevant()
Returns if this attribute is product relevant.
|
String |
toString() |
getMessageHelper, getMessageKey, getModelType, getType, getTypeNamecreateMessageHelper, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModelTypegetDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getNamepublic Attribute(Type type, IpsAttribute attributeAnnotation, IpsExtensionProperties extensionProperties, Class<?> datatype, boolean changingOverTime)
public boolean isChangingOverTime()
isProductRelevant()) resides in the generation.isChangingOverTime in interface IModelTypeAttributepublic abstract boolean isProductRelevant()
isProductRelevant in interface IModelTypeAttributepublic Class<?> getDatatype() throws ClassNotFoundException
getDatatype in interface IModelTypeAttributeClass.ClassNotFoundException - if the datatype's class can not be loaded.public AttributeKind getAttributeKind()
@Deprecated public IModelTypeAttribute.AttributeType getAttributeType()
getAttributeKind()getAttributeType in interface IModelTypeAttributepublic ValueSetKind getValueSetKind()
@Deprecated public IModelTypeAttribute.ValueSetType getValueSetType()
getValueSetKind()getValueSetType in interface IModelTypeAttributepublic String toString()
toString in class ModelElementpublic abstract Attribute createOverwritingAttributeFor(Type subType)
subType - a model type representing a sub type of this attribute's model typeAttribute for the given sub model typeprotected Object getRelevantProductObject(IProductComponent productComponent, Calendar effectiveDate)
Copyright © 2017. All rights reserved.