public class IlvDebugBehavior extends IlvSingleBehavior
IlvDebugBehavior
is used to debug
the behavior objects attached to a group. When an IlvDebugBehavior
object
is added to a group, a message is printed to the console
whenever the corresponding value is set or read.Constructor and Description |
---|
IlvDebugBehavior(IlvDebugBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvDebugBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvDebugBehavior(String name)
Creates a new debug behavior object.
|
Modifier and Type | Method and Description |
---|---|
IlvBehavior |
copy()
Returns a copy of the behavior.
|
protected Object |
get(IlvGroup group,
String name)
Prints a message to the console indicating the name of the property read.
|
protected void |
set(IlvGroup group,
String name,
Object value)
Prints a message to the console indicating the name of the modified property and
its new value.
|
String |
toString()
Returns a short text describing this behavior object.
|
void |
write(IlvOutputStream out)
Writes the behavior to an
IlvOutputStream . |
get, getName, getValueNames, set, setName
attach, detach, getParameter, isOutput, isReadable, isWritable
public IlvDebugBehavior(String name)
name
- the name of the behavior object.public IlvDebugBehavior(IlvDebugBehavior source)
source
- the behavior object to be copied.public IlvDebugBehavior(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
protected void set(IlvGroup group, String name, Object value)
set
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of the behavior object.value
- the new value.IlvSingleBehavior.set(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
protected Object get(IlvGroup group, String name)
get
in class IlvSingleBehavior
group
- the group to which the behavior object is attached.name
- the name of the behavior object.null
.IlvSingleBehavior.get(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.