PaP
Class Item

java.lang.Object
  |
  +--PaP.Item
All Implemented Interfaces:
java.io.Serializable

public class Item
extends java.lang.Object
implements java.io.Serializable

Item is an information element that can contain other Items in a hierarchy. It is part of the debug facilities of the PaP system. Item is one node in the tree hierarchy of status information of PaP entities. Every item has a name. If it is a leaf-node in the hierarchy it has a value, else it contains an array of other items.

See Also:
Serialized Form

Field Summary
 Item[] list
          List of other items if the item is compound, otherwise it's null
 java.lang.String name
          Name of the information item
 java.lang.String value
          Value of the information item if list is null, otherwise it's null
 
Constructor Summary
Item(java.lang.String pName, Item[] pList, java.lang.String pValue)
          Creates a new Item and sets the values of its variables.
 
Method Summary
static void show(int l, BaseFrame bf, Item t)
          Goes through the specified item and prints its information in the specified baseframe.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name of the information item

list

public Item[] list
List of other items if the item is compound, otherwise it's null

value

public java.lang.String value
Value of the information item if list is null, otherwise it's null
Constructor Detail

Item

public Item(java.lang.String pName,
            Item[] pList,
            java.lang.String pValue)
Creates a new Item and sets the values of its variables.
Parameters:
pName - The name of this Item.
pList - Array of other Items if it is compound, else it is null.
pValue - Value of this item if it is a leaf-node in the hierarchy.
Method Detail

show

public static void show(int l,
                        BaseFrame bf,
                        Item t)
Goes through the specified item and prints its information in the specified baseframe. It is a utility to parse and print a whole tree of Item hierarchy.
Parameters:
l - Level of the item being printed in the hierarchy of items.
bf - BaseFrame to print the information in the Item hierarchy.
t - The current item being printed recursively.