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)
-
PartReaderStd()
-
-
enumeratePartNames()
- Returns an Enumeration of the part names in the cell, in order.
-
findPart(String)
- Finds and returns the named part.
-
getPart(String)
- Returns the named part in the cell.
-
getPartCount()
- Returns the number of parts in the cell.
-
getPartNamesNeeded()
- Returns an array of the part names this part needs to
do its work.
-
listTree(boolean)
- Returns a String representing the System Tree, starting
at the root or at the cell this PartReader is in.
-
replicate()
- Returns a copy of itself without mission state.
-
setPart(String, Object)
- Sets a named part, in response to part needs.
PartReaderStd
public PartReaderStd()
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.
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.
enumeratePartNames
public Enumeration enumeratePartNames()
- Returns an Enumeration of the part names in the cell, in order.
- Returns:
- the part names in the cell.
getPartCount
public int getPartCount()
- Returns the number of parts in the cell.
- Returns:
- the number of parts in the cell.
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.
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.
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.
replicate
public Object replicate()
- Returns a copy of itself without mission state.
- Returns:
- the replication.
All Packages Class Hierarchy This Package Previous Next Index