wtanaka.praya.gale
Class FragmentList

java.lang.Object
  |
  +--wtanaka.praya.gale.FragmentList

public class FragmentList
extends java.lang.Object

Represents a fragment list.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/09/30 21:14:52 $
Author:
$Author: wtanaka $

Field Summary
private  FragmentInterface[] m_fragmentList
           
 
Constructor Summary
FragmentList()
          Convenience, no-arg constructor.
FragmentList(FragmentInterface[] fragmentList)
           
 
Method Summary
 FragmentInterface find(java.lang.String fragmentName)
           
 FragmentInterface find(java.lang.String fragmentName, boolean recurse)
           
 FragmentInterface getFragmentAt(int i)
           
 int getNumFragments()
           
 int getStreamLength()
           
 java.lang.String toString()
           
(package private)  java.lang.String toString(int indentLevel)
           
 FragmentList unionWith(FragmentInterface fragment)
           
 void write(GaleOutputStream out)
          Writes this fragment list to the output stream.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

m_fragmentList

private FragmentInterface[] m_fragmentList
Constructor Detail

FragmentList

public FragmentList()
Convenience, no-arg constructor. Constructs an empty fragment list. Equivalent to FragmentList (new FragmentInterface[0]).

FragmentList

public FragmentList(FragmentInterface[] fragmentList)
Method Detail

getNumFragments

public int getNumFragments()

getFragmentAt

public FragmentInterface getFragmentAt(int i)

unionWith

public FragmentList unionWith(FragmentInterface fragment)

find

public FragmentInterface find(java.lang.String fragmentName)

find

public FragmentInterface find(java.lang.String fragmentName,
                              boolean recurse)
Parameters:
recurse - true causes this method to perform a bizarre DFS of the fragment tree, treating each FragmentList as a node.

getStreamLength

public int getStreamLength()

write

public void write(GaleOutputStream out)
           throws java.io.IOException
Writes this fragment list to the output stream. Locks out with synchronized (out).
Parameters:
out - the stream on which to write.

toString

java.lang.String toString(int indentLevel)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object