@Portable public class LiteralExpression extends Expression implements IsLiteralExpression, HasText, DomainObject
DMNElement.ExtensionElements
DMNModelInstrumentedBase.BaseNodeBuilder<T extends DMNModelInstrumentedBase>, DMNModelInstrumentedBase.Namespace
Modifier and Type | Field and Description |
---|---|
protected ExpressionLanguage |
expressionLanguage |
protected ImportedValues |
importedValues |
protected Text |
text |
componentWidths, typeRef
description, id
Constructor and Description |
---|
LiteralExpression() |
LiteralExpression(Id id,
Description description,
QName typeRef,
Text text,
ImportedValues importedValues,
ExpressionLanguage expressionLanguage) |
Modifier and Type | Method and Description |
---|---|
LiteralExpression |
copy()
It represents a contract for all subclasses of
Expression . |
boolean |
equals(Object o) |
String |
getDomainObjectNameTranslationKey() |
String |
getDomainObjectUUID() |
ExpressionLanguage |
getExpressionLanguage() |
ImportedValues |
getImportedValues() |
int |
getRequiredComponentWidthCount()
Returns the expected number of components to correctly represent an
Expression in the editor. |
String |
getStunnerCategory() |
Set<String> |
getStunnerLabels() |
Text |
getText()
Returns the
Text
Convenience method replicating HasValue.getValue() to honour DMN model semantics. |
int |
hashCode() |
void |
setExpressionLanguage(ExpressionLanguage expressionLanguage) |
void |
setImportedValues(ImportedValues importedValues) |
void |
setText(Text text)
Sets the
Text
Convenience method replicating HasValue.setValue(Object) to honour DMN model semantics. |
asDMNModelInstrumentedBase, getComponentWidths, getHasTypeRefs, getTypeRef, setTypeRef
getDescription, getExtensionElements, getId, setDescription, setExtensionElements, setId
getAdditionalAttributes, getDefaultNamespace, getNsContext, getParent, getPrefixForNamespaceURI, setAdditionalAttributes, setParent
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDescription, getId, getTypeRef
protected Text text
protected ImportedValues importedValues
protected ExpressionLanguage expressionLanguage
public LiteralExpression()
public LiteralExpression(Id id, Description description, QName typeRef, Text text, ImportedValues importedValues, ExpressionLanguage expressionLanguage)
public LiteralExpression copy()
Expression
Expression
.
Its purpose is to exploit polymorphism when we deeply copy the Expression boxed inside the Decision
copy
in class Expression
public String getStunnerCategory()
public Text getText()
HasText
Text
Convenience method replicating HasValue.getValue()
to honour DMN model semantics.getText
in interface HasText
getText
in interface IsLiteralExpression
public void setText(Text text)
HasText
Text
Convenience method replicating HasValue.setValue(Object)
to honour DMN model semantics.public ImportedValues getImportedValues()
getImportedValues
in interface IsLiteralExpression
public void setImportedValues(ImportedValues importedValues)
public ExpressionLanguage getExpressionLanguage()
public void setExpressionLanguage(ExpressionLanguage expressionLanguage)
public String getDomainObjectUUID()
getDomainObjectUUID
in interface DomainObject
public String getDomainObjectNameTranslationKey()
getDomainObjectNameTranslationKey
in interface DomainObject
public int getRequiredComponentWidthCount()
HasComponentWidths
Expression
in the editor.getRequiredComponentWidthCount
in interface HasComponentWidths
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.