public class ExpressionPlaceHolder extends ilog.rules.dt.model.common.impl.DTAbstractElement implements IlrDTExpressionPlaceHolder, IlrDTExpressionRole
ExpressionPlaceHolder represents the expression placeholder
part of an expression definition.
This class is the implementation of IlrDTExpressionDefinition.IlrDTExpressionPlaceHolder,
Serialized FormHOLDER_ROLE_INDEXNILINSTANCE, TRANSIENT, VOLATILE| Modifier and Type | Method and Description |
|---|---|
void |
addError(IlrDTError err)
Deprecated.
|
java.lang.Object |
clone()
Clones this expression placeholder.
|
IlrDTExpression |
clone(IlrDTContext context)
Deprecated.
|
IlrCardinality |
getCardinality()
Returns the cardinality of this placeholder.
|
IlrConcept |
getConcept()
Returns the concept of this placeholder.
|
java.lang.String |
getDefaultValue()
Returns the default value of this placeholder.
|
IlrDTExpressionDefinition |
getDefinition()
Returns the expression definition this placeholder belongs to.
|
IlrDTContext |
getDTContext() |
IlrDTErrorManager |
getErrorManager()
Returns the error manager associated with this expression parameter.
|
IlrConcept |
getExpressionConcept()
Deprecated.
|
IlrDTExpressionSentence |
getExpressionSentence()
Deprecated.
|
IlrSyntaxTree.Node |
getExpressionSyntaxNode()
Deprecated.
|
java.lang.String |
getExpressionText()
Deprecated.
|
java.util.Collection |
getExpressionTexts()
Deprecated.
|
IlrConcept |
getParameterConcept()
Deprecated.
|
int |
getParameterIndex()
Deprecated.
|
int |
getSentenceIndex()
Deprecated.
|
IlrSyntacticRole |
getSyntacticRole()
Deprecated.
|
java.lang.String |
getText()
Returns the placeholder text.
|
java.lang.String |
getType()
Returns the concept of the placeholder as a
String. |
java.lang.Object |
getValue()
Deprecated.
|
boolean |
hasSyntacticErrors()
Deprecated.
|
boolean |
isCollection()
Deprecated.
|
boolean |
isExpressionValid()
Deprecated.
|
boolean |
isLiteral()
Deprecated.
|
boolean |
isValid()
Tests if this placeholder is valid.
|
int |
overlap(IlrDTExpression expression)
Deprecated.
|
boolean |
reset()
Drops all references to vocabulary, and will requires parsing.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value of this placeholder.
|
void |
setExpressionSentence(IlrDTExpressionSentence expressionSentence)
Deprecated.
|
void |
setExpressionText(java.lang.String text)
Deprecated.
|
void |
setExpressionTexts(java.util.Collection collection)
Deprecated.
|
void |
setParameterIndex(int parameterIndex)
Deprecated.
|
void |
setText(java.lang.String text)
Sets the text of the expression.
|
java.lang.String |
toString() |
java.lang.Object |
visit(ilog.rules.dt.model.expression.IlrDTExpression.Visitor visitor)
Deprecated.
|
getTimeStamp, setTimeStampaddProperties, clearProperties, clearVolatileProperties, getProperties, getProperty, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsaddProperties, clearProperties, clearVolatileProperties, getProperties, getProperty, setPropertygetTimeStamp, setTimeStamppublic IlrDTExpressionDefinition getDefinition()
IlrDTExpressionPlaceHoldergetDefinition in interface IlrDTExpressionPlaceHolderpublic java.lang.String getText()
IlrDTExpressionPlaceHoldergetText in interface IlrDTExpressionPlaceHolderpublic java.lang.String getExpressionText()
IlrDTExpressionText
For an IlrDTExpressionDefinition, the definition text is
returned with placeholders.
For an IlrDTExpressionInstance, the expression text is
returned and the placeholders are replaced by expression parameter values.
getExpressionText in interface IlrDTExpressionTextpublic void setExpressionText(java.lang.String text)
IlrDTExpressionRolesetExpressionText in interface IlrDTExpressionRoletext - the text of the expression.public void setText(java.lang.String text)
IlrDTExpressionRolesetText in interface IlrDTExpressionRoletext - The expression in a text string.public java.lang.String getType()
IlrDTExpressionPlaceHolderString.getType in interface IlrDTExpressionPlaceHoldernull is returned.public IlrConcept getConcept()
IlrDTExpressionPlaceHoldergetConcept in interface IlrDTExpressionPlaceHoldernull is returned.public IlrCardinality getCardinality()
IlrDTExpressionPlaceHoldergetCardinality in interface IlrDTExpressionPlaceHoldernull is returned.public java.lang.String getDefaultValue()
IlrDTExpressionPlaceHoldergetDefaultValue in interface IlrDTExpressionPlaceHolderpublic void setDefaultValue(java.lang.String defaultValue)
IlrDTExpressionPlaceHoldersetDefaultValue in interface IlrDTExpressionPlaceHolderdefaultValue - The new default value.public boolean isValid()
IlrDTExpressionPlaceHolderAn invalid placeholder only has a text object. It has no type, concept, cardinality or path.
isValid in interface IlrDTExpressionPlaceHoldertrue is returned.public IlrDTContext getDTContext()
getDTContext in interface IlrDTExpressionpublic boolean reset()
IlrDTExpressionreset in interface IlrDTExpressionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
IlrDTExpressionPlaceHolderclone in interface IlrDTExpressionclone in interface IlrDTExpressionPlaceHolderclone in interface IlrDecorableElementclone in class IlrDecorableElementImplIlrDecorableElement.INSTANCE are not copied.public IlrDTExpressionSentence getExpressionSentence()
IlrDTExpressionRolegetExpressionSentence in interface IlrDTExpressionRolepublic java.util.Collection getExpressionTexts()
IlrDTExpressionRoleIlrDTExpressionRole.isCollection() is true.getExpressionTexts in interface IlrDTExpressionRolepublic IlrConcept getParameterConcept()
IlrDTExpressionRolegetParameterConcept in interface IlrDTExpressionRolepublic int getParameterIndex()
IlrDTExpressionRoleIlrDTExpressionRole.HOLDER_ROLE_INDEX for holder role expression.getParameterIndex in interface IlrDTExpressionRoleIlrDTExpressionRole.HOLDER_ROLE_INDEX for holder role expression.public int getSentenceIndex()
IlrDTExpressionRolegetSentenceIndex in interface IlrDTExpressionRolepublic IlrSyntacticRole getSyntacticRole()
IlrDTExpressionRolegetSyntacticRole in interface IlrDTExpressionRolepublic java.lang.Object getValue()
IlrDTExpressionRoleIlrDTExpressionRole.isLiteral() is true.getValue in interface IlrDTExpressionRolepublic boolean isCollection()
IlrDTExpressionRoleisCollection in interface IlrDTExpressionRolepublic boolean isLiteral()
IlrDTExpressionRoleIlrDTExpressionRole.getValue() returns the value corresponding
to the text and the concept of the expression.isLiteral in interface IlrDTExpressionRolepublic void setExpressionSentence(IlrDTExpressionSentence expressionSentence)
public void setExpressionTexts(java.util.Collection collection)
IlrDTExpressionRolesetExpressionTexts in interface IlrDTExpressionRolecollection - The collection defining the text of the expression.public void setParameterIndex(int parameterIndex)
public IlrConcept getExpressionConcept()
IlrDTExpressionTextgetExpressionConcept in interface IlrDTExpressionTextpublic IlrSyntaxTree.Node getExpressionSyntaxNode()
IlrDTExpressionTextgetExpressionSyntaxNode in interface IlrDTExpressionTextpublic boolean isExpressionValid()
IlrDTExpressionText
The corresponding syntax tree for an invalid expression is either
null or in error recovery.
isExpressionValid in interface IlrDTExpressionTexttrue is
returned.public boolean hasSyntacticErrors()
IlrDTExpressionTexthasSyntacticErrors in interface IlrDTExpressionTextpublic IlrDTExpression clone(IlrDTContext context)
clone in interface IlrDTExpressioncontext - The context of the cloned expression.public IlrDTErrorManager getErrorManager()
IlrDTExpressionPlaceHoldergetErrorManager in interface IlrDTExpressiongetErrorManager in interface IlrDTExpressionPlaceHolderpublic void addError(IlrDTError err)
public int overlap(IlrDTExpression expression)
public java.lang.Object visit(ilog.rules.dt.model.expression.IlrDTExpression.Visitor visitor)
© Copyright IBM Corp. 1987, 2017