Class FunctionDefinition
- 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
-
- org.kie.workbench.common.dmn.api.definition.model.FunctionDefinition
-
- All Implemented Interfaces:
DMNDefinition,HasComponentWidths,HasExpression,HasTypeRef,HasTypeRefs
@Portable public class FunctionDefinition extends Expression implements HasExpression
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionDefinition.Kind-
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
-
Nested classes/interfaces inherited from interface org.kie.workbench.common.dmn.api.definition.HasExpression
HasExpression.WrappedHasExpression
-
-
Field Summary
-
Fields inherited from class org.kie.workbench.common.dmn.api.definition.model.Expression
componentWidths, typeRef
-
Fields inherited from class org.kie.workbench.common.dmn.api.definition.model.DMNElement
description, id
-
Fields inherited from interface org.kie.workbench.common.dmn.api.definition.HasExpression
NOP
-
-
Constructor Summary
Constructors Constructor Description FunctionDefinition()FunctionDefinition(Id id, Description description, QName typeRef, Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DMNModelInstrumentedBaseasDMNModelInstrumentedBase()FunctionDefinitioncopy()It represents a contract for all subclasses ofExpression.booleanequals(Object o)ExpressiongetExpression()List<InformationItem>getFormalParameter()List<HasTypeRef>getHasTypeRefs()FunctionDefinition.KindgetKind()intgetRequiredComponentWidthCount()Returns the expected number of components to correctly represent anExpressionin the editor.inthashCode()voidsetExpression(Expression expression)voidsetKind(FunctionDefinition.Kind kind)-
Methods inherited from class org.kie.workbench.common.dmn.api.definition.model.Expression
getComponentWidths, getTypeRef, setTypeRef
-
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.dmn.api.definition.HasExpression
isClearSupported
-
-
-
-
Constructor Detail
-
FunctionDefinition
public FunctionDefinition()
-
FunctionDefinition
public FunctionDefinition(Id id, Description description, QName typeRef, Expression expression)
-
-
Method Detail
-
copy
public FunctionDefinition copy()
Description copied from class:ExpressionIt represents a contract for all subclasses ofExpression. Its purpose is to exploit polymorphism when we deeply copy the Expression boxed inside theDecision- Specified by:
copyin classExpression
-
getExpression
public Expression getExpression()
- Specified by:
getExpressionin interfaceHasExpression
-
setExpression
public void setExpression(Expression expression)
- Specified by:
setExpressionin interfaceHasExpression
-
asDMNModelInstrumentedBase
public DMNModelInstrumentedBase asDMNModelInstrumentedBase()
- Specified by:
asDMNModelInstrumentedBasein interfaceHasExpression- Specified by:
asDMNModelInstrumentedBasein interfaceHasTypeRef- Overrides:
asDMNModelInstrumentedBasein classExpression
-
getFormalParameter
public List<InformationItem> getFormalParameter()
-
getKind
public FunctionDefinition.Kind getKind()
-
setKind
public void setKind(FunctionDefinition.Kind kind)
-
getHasTypeRefs
public List<HasTypeRef> getHasTypeRefs()
- Specified by:
getHasTypeRefsin interfaceHasTypeRefs- Overrides:
getHasTypeRefsin classExpression
-
getRequiredComponentWidthCount
public int getRequiredComponentWidthCount()
Description copied from interface:HasComponentWidthsReturns the expected number of components to correctly represent anExpressionin the editor.- Specified by:
getRequiredComponentWidthCountin interfaceHasComponentWidths- Returns:
-
-