All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.jcon.core.part.std.PartReaderStd

java.lang.Object
   |
   +----org.jcon.core.part.std.PartReaderStd

public class PartReaderStd
extends Object
implements PartReader
This class allows reading parts from a cell. It acts as a cell Fascade. (More methods will be added)


Constructor Index

 o PartReaderStd()

Method Index

 o enumeratePartNames()
Returns an Enumeration of the part names in the cell, in order.
 o findPart(String)
Finds and returns the named part.
 o getPart(String)
Returns the named part in the cell.
 o getPartCount()
Returns the number of parts in the cell.
 o getPartNamesNeeded()
Returns an array of the part names this part needs to do its work.
 o listTree(boolean)
Returns a String representing the System Tree, starting at the root or at the cell this PartReader is in.
 o replicate()
Returns a copy of itself without mission state.
 o setPart(String, Object)
Sets a named part, in response to part needs.

Constructors

 o PartReaderStd
 public PartReaderStd()

Methods

 o findPart
 public Object findPart(String partName)
Finds and returns the named part. See full documentation.

Parameters:
partName - the name of the part to find.
Returns:
the part found.
 o getPart
 public Object getPart(String name)
Returns the named part in the cell. See full documentation.

Parameters:
name - the name of the part to retrieve.
Returns:
the part in the cell with that name.
 o enumeratePartNames
 public Enumeration enumeratePartNames()
Returns an Enumeration of the part names in the cell, in order.

Returns:
the part names in the cell.
 o getPartCount
 public int getPartCount()
Returns the number of parts in the cell.

Returns:
the number of parts in the cell.
 o listTree
 public String listTree(boolean startAtRoot)
Returns a String representing the System Tree, starting at the root or at the cell this PartReader is in. Format is one line per part with indentation. This is for simple developement use.

Parameters:
startAtRoot - true to start at the root or false to start at this cell.
Returns:
a String representing the System Tree.
 o getPartNamesNeeded
 public String[] getPartNamesNeeded()
Returns an array of the part names this part needs to do its work.

Returns:
the names of the parts needed.
 o setPart
 public void setPart(String name,
                     Object part)
Sets a named part, in response to part needs.

Parameters:
name - the name of the needed part.
part - the needed part.
 o replicate
 public Object replicate()
Returns a copy of itself without mission state.

Returns:
the replication.

All Packages  Class Hierarchy  This Package  Previous  Next  Index