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()
Returns the possible kinds of this attribute.
|
IModelTypeAttribute.AttributeType |
getAttributeType()
Deprecated.
|
Class<?> |
getDatatype()
Returns the data type of this attribute.
|
protected Object |
getRelevantProductObject(IProductComponent productComponent,
Calendar effectiveDate) |
ValueSetKind |
getValueSetKind()
Returns the
ValueSetKind of this attribute. |
IModelTypeAttribute.ValueSetType |
getValueSetType()
Deprecated.
|
boolean |
isChangingOverTime()
Returns true if this attribute is changing over time.
|
abstract boolean |
isProductRelevant()
Returns true if this attribute is configured by the product.
|
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()
isChangingOverTime in interface IModelTypeAttributetrue if the attribute is changing over time, false if notpublic abstract boolean isProductRelevant()
isProductRelevant in interface IModelTypeAttributetrue if this attribute is configured by the product, false
if notpublic Class<?> getDatatype()
getDatatype in interface IModelTypeAttributeClasspublic AttributeKind getAttributeKind()
@Deprecated public IModelTypeAttribute.AttributeType getAttributeType()
getAttributeKind()getAttributeType in interface IModelTypeAttributepublic ValueSetKind getValueSetKind()
ValueSetKind of this attribute.@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 © 2019. All rights reserved.