public class IlvExpressionBehavior extends IlvSingleBehavior
IlvExpressionBehavior
class computes
an arithmetic and/or a Boolean expression.Constructor and Description |
---|
IlvExpressionBehavior(IlvExpressionBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvExpressionBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvExpressionBehavior(String name,
String expression)
Creates a new expression behavior.
|
Modifier and Type | Method and Description |
---|---|
IlvBehavior |
copy()
Returns a copy of the behavior.
|
protected Object |
get(IlvGroup group,
String name)
Returns the result of the arithmetic and/or the boolean expression
specified by the
expression parameter of the constructor. |
String |
getExpression()
Gets the
expression parameter. |
boolean |
isWritable()
Returns
false |
void |
setExpression(String expression)
Sets the
expression parameter. |
String |
toString()
Returns a short text describing this behavior object.
|
void |
write(IlvOutputStream out)
Writes the behavior to an
IlvOutputStream . |
get, getName, getValueNames, set, set, setName
attach, detach, getParameter, isOutput, isReadable
public IlvExpressionBehavior(String name, String expression)
name
- the name of this behaviorexpression
- the expression.public IlvExpressionBehavior(IlvExpressionBehavior source)
source
- the behavior object to be copied.public IlvExpressionBehavior(IlvInputStream in) throws IlvReadFileException
IlvInputStream
stream.
This constructor must be called by the
input constructors of subclasses.in
- The input stream.IlvReadFileException
- if the stream format is not correct.public void write(IlvOutputStream out) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvSingleBehavior
out
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvBehavior copy()
copy
in class IlvBehavior
public String toString()
toString
in class IlvBehavior
public boolean isWritable()
false
isWritable
in class IlvBehavior
protected Object get(IlvGroup group, String name) throws IlvValueException
expression
parameter of the constructor.get
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of this behavior object.IlvValueException
- if the expression is not valid.IlvSingleBehavior.get(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
public void setExpression(String expression)
expression
parameter.public String getExpression()
expression
parameter.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.