@Portable public class LiteralExpression extends Expression implements IsLiteralExpression, HasText, DomainObject
DMNElement.ExtensionElementsDMNModelInstrumentedBase.BaseNodeBuilder<T extends DMNModelInstrumentedBase>, DMNModelInstrumentedBase.Namespace| Modifier and Type | Field and Description |
|---|---|
protected ExpressionLanguage |
expressionLanguage |
protected ImportedValues |
importedValues |
protected Text |
text |
componentWidths, typeRefdescription, 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, setTypeRefgetDescription, getExtensionElements, getId, setDescription, setExtensionElements, setIdgetAdditionalAttributes, getDefaultNamespace, getNsContext, getParent, getPrefixForNamespaceURI, setAdditionalAttributes, setParentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDescription, getId, getTypeRefprotected 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()
ExpressionExpression.
Its purpose is to exploit polymorphism when we deeply copy the Expression boxed inside the Decisioncopy in class Expressionpublic String getStunnerCategory()
public Text getText()
HasTextText
Convenience method replicating HasValue.getValue() to honour DMN model semantics.getText in interface HasTextgetText in interface IsLiteralExpressionpublic void setText(Text text)
HasTextText
Convenience method replicating HasValue.setValue(Object) to honour DMN model semantics.public ImportedValues getImportedValues()
getImportedValues in interface IsLiteralExpressionpublic void setImportedValues(ImportedValues importedValues)
public ExpressionLanguage getExpressionLanguage()
public void setExpressionLanguage(ExpressionLanguage expressionLanguage)
public String getDomainObjectUUID()
getDomainObjectUUID in interface DomainObjectpublic String getDomainObjectNameTranslationKey()
getDomainObjectNameTranslationKey in interface DomainObjectpublic int getRequiredComponentWidthCount()
HasComponentWidthsExpression in the editor.getRequiredComponentWidthCount in interface HasComponentWidthsCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.