Class LiteralExpression
- 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.LiteralExpression
-
- All Implemented Interfaces:
DMNDefinition,HasComponentWidths,HasText,HasTypeRef,HasTypeRefs,HasValue<Text>,IsLiteralExpression,org.kie.workbench.common.stunner.core.domainobject.DomainObject
- Direct Known Subclasses:
LiteralExpressionPMMLDocument,LiteralExpressionPMMLDocumentModel
@Portable public class LiteralExpression extends Expression implements IsLiteralExpression, HasText, org.kie.workbench.common.stunner.core.domainobject.DomainObject
-
-
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 ExpressionLanguageexpressionLanguageprotected ImportedValuesimportedValuesprotected Texttext-
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
-
-
Constructor Summary
Constructors Constructor Description LiteralExpression()LiteralExpression(Id id, Description description, QName typeRef, Text text, ImportedValues importedValues, ExpressionLanguage expressionLanguage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiteralExpressioncopy()It represents a contract for all subclasses ofExpression.booleanequals(Object o)StringgetDomainObjectNameTranslationKey()StringgetDomainObjectUUID()ExpressionLanguagegetExpressionLanguage()ImportedValuesgetImportedValues()intgetRequiredComponentWidthCount()Returns the expected number of components to correctly represent anExpressionin the editor.StringgetStunnerCategory()Set<String>getStunnerLabels()TextgetText()Returns theTextConvenience method replicatingHasValue.getValue()to honour DMN model semantics.inthashCode()voidsetExpressionLanguage(ExpressionLanguage expressionLanguage)voidsetImportedValues(ImportedValues importedValues)voidsetText(Text text)Sets theTextConvenience method replicatingHasValue.setValue(Object)to honour DMN model semantics.-
Methods inherited from class org.kie.workbench.common.dmn.api.definition.model.Expression
asDMNModelInstrumentedBase, getComponentWidths, getHasTypeRefs, 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.HasText
getValue, setValue
-
Methods inherited from interface org.kie.workbench.common.dmn.api.definition.model.IsLiteralExpression
getDescription, getId, getTypeRef
-
-
-
-
Field Detail
-
text
protected Text text
-
importedValues
protected ImportedValues importedValues
-
expressionLanguage
protected ExpressionLanguage expressionLanguage
-
-
Constructor Detail
-
LiteralExpression
public LiteralExpression()
-
LiteralExpression
public LiteralExpression(Id id, Description description, QName typeRef, Text text, ImportedValues importedValues, ExpressionLanguage expressionLanguage)
-
-
Method Detail
-
copy
public LiteralExpression 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
-
getStunnerCategory
public String getStunnerCategory()
-
getText
public Text getText()
Description copied from interface:HasTextReturns theTextConvenience method replicatingHasValue.getValue()to honour DMN model semantics.- Specified by:
getTextin interfaceHasText- Specified by:
getTextin interfaceIsLiteralExpression- Returns:
-
setText
public void setText(Text text)
Description copied from interface:HasTextSets theTextConvenience method replicatingHasValue.setValue(Object)to honour DMN model semantics.
-
getImportedValues
public ImportedValues getImportedValues()
- Specified by:
getImportedValuesin interfaceIsLiteralExpression
-
setImportedValues
public void setImportedValues(ImportedValues importedValues)
-
getExpressionLanguage
public ExpressionLanguage getExpressionLanguage()
-
setExpressionLanguage
public void setExpressionLanguage(ExpressionLanguage expressionLanguage)
-
getDomainObjectUUID
public String getDomainObjectUUID()
- Specified by:
getDomainObjectUUIDin interfaceorg.kie.workbench.common.stunner.core.domainobject.DomainObject
-
getDomainObjectNameTranslationKey
public String getDomainObjectNameTranslationKey()
- Specified by:
getDomainObjectNameTranslationKeyin interfaceorg.kie.workbench.common.stunner.core.domainobject.DomainObject
-
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:
-
-