public class IlvOutputBehavior extends IlvSingleBehavior
IlvOutputBehavior
is used to explicitly generate a
value. An IlvOutputBehavior
object generates the property that
it handles (by a call to IlvGroupElement.pushValue
) every time
the property is set.Constructor and Description |
---|
IlvOutputBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvOutputBehavior(IlvOutputBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvOutputBehavior(String name)
Creates a new output behavior object.
|
Modifier and Type | Method and Description |
---|---|
IlvBehavior |
copy()
Returns a copy of the behavior.
|
boolean |
isOutput()
Returns
true |
boolean |
isReadable()
Returns
false |
protected void |
set(IlvGroup group,
String name,
Object value)
Generates the new value by calling the
pushValue method for
group . |
String |
toString()
Returns a short text describing this behavior object.
|
void |
write(IlvOutputStream out)
Writes the behavior to an
IlvOutputStream . |
get, get, getName, getValueNames, set, setName
attach, detach, getParameter, isWritable
public IlvOutputBehavior(String name)
name
- the name of the behavior object.public IlvOutputBehavior(IlvOutputBehavior source)
source
- the behavior object to be copied.public IlvOutputBehavior(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 isReadable()
false
isReadable
in class IlvBehavior
public boolean isOutput()
true
isOutput
in class IlvBehavior
protected void set(IlvGroup group, String name, Object value) throws IlvValueException
pushValue
method for
group
.set
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of this behavior object.value
- the new value that will be pushed.IlvValueException
- if an error occurred while setting a property.IlvGroupElement.pushValue(java.lang.String, java.lang.Object)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.