Class Expression
- java.lang.Object
-
- org.kie.workbench.common.dmn.api.definition.model.DMNModelInstrumentedBase
-
- org.kie.workbench.common.dmn.api.definition.model.DMNElement
-
- org.kie.workbench.common.dmn.api.definition.model.Expression
-
- All Implemented Interfaces:
DMNDefinition,HasComponentWidths,HasTypeRef,HasTypeRefs
- Direct Known Subclasses:
Context,DecisionTable,FunctionDefinition,Invocation,List,LiteralExpression,Relation
public abstract class Expression extends DMNElement implements HasTypeRef, HasComponentWidths
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNElement
DMNElement.ExtensionElements
-
Nested classes/interfaces inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNModelInstrumentedBase
DMNModelInstrumentedBase.BaseNodeBuilder<T extends DMNModelInstrumentedBase>, DMNModelInstrumentedBase.Namespace
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Double>componentWidthsprotected QNametypeRef-
Fields inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNElement
description, id
-
-
Constructor Summary
Constructors Constructor Description Expression()Expression(Id id, Description description, QName typeRef)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DMNModelInstrumentedBaseasDMNModelInstrumentedBase()abstract Expressioncopy()It represents a contract for all subclasses ofExpression.List<Double>getComponentWidths()Gets a list of the widths of the different components.List<HasTypeRef>getHasTypeRefs()QNamegetTypeRef()voidsetTypeRef(QName typeRef)-
Methods inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNElement
getDescription, getExtensionElements, getId, setDescription, setExtensionElements, setId
-
Methods inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNModelInstrumentedBase
getAdditionalAttributes, getDefaultNamespace, getNsContext, getParent, getPrefixForNamespaceURI, setAdditionalAttributes, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.dmn.api.definition.HasComponentWidths
getRequiredComponentWidthCount
-
-
-
-
Constructor Detail
-
Expression
public Expression()
-
Expression
public Expression(Id id, Description description, QName typeRef)
-
-
Method Detail
-
copy
public abstract Expression copy()
It represents a contract for all subclasses ofExpression. Its purpose is to exploit polymorphism when we deeply copy the Expression boxed inside theDecision
-
getTypeRef
public QName getTypeRef()
- Specified by:
getTypeRefin interfaceHasTypeRef
-
setTypeRef
public void setTypeRef(QName typeRef)
- Specified by:
setTypeRefin interfaceHasTypeRef
-
getComponentWidths
public List<Double> getComponentWidths()
Description copied from interface:HasComponentWidthsGets a list of the widths of the different components. A component is considered a column used to visually represent a BoxedExpressionGrid in the editor.- Specified by:
getComponentWidthsin interfaceHasComponentWidths- Returns:
-
asDMNModelInstrumentedBase
public DMNModelInstrumentedBase asDMNModelInstrumentedBase()
- Specified by:
asDMNModelInstrumentedBasein interfaceHasTypeRef
-
getHasTypeRefs
public List<HasTypeRef> getHasTypeRefs()
- Specified by:
getHasTypeRefsin interfaceHasTypeRefs
-
-