gzz.zzutil
Class Containment

java.lang.Object
  |
  +--gzz.zzutil.Containment

public class Containment
extends java.lang.Object

Convenience methods for Ted's containment mechanism.


Constructor Summary
Containment()
           
 
Method Summary
static void addContainedCell(Cell into, Cell add)
          Add the 'add' cell to the end of the list of cells inside 'into'.
static Enfilade1D getContainedEnfilade(Cell c)
          Get the contents of this cell as an Enfilade1D, as specified by the containment mechanism.
static java.lang.String getContainedText(Cell c)
          Get the contents of this cell as a String, as specified by the containment mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Containment

public Containment()
Method Detail

getContainedText

public static java.lang.String getContainedText(Cell c)
Get the contents of this cell as a String, as specified by the containment mechanism. This interprets the containment structure and joins the text of the different cells together.


getContainedEnfilade

public static Enfilade1D getContainedEnfilade(Cell c)
Get the contents of this cell as an Enfilade1D, as specified by the containment mechanism.


addContainedCell

public static void addContainedCell(Cell into,
                                    Cell add)
                             throws java.lang.IllegalArgumentException
Add the 'add' cell to the end of the list of cells inside 'into'. This means that 'add''s contents will appear after the contents of all other cells already contained in 'into.'

Throws:
java.lang.IllegalArgumentException - if 'add' is already contained in another cell (i.e., has a connection on d..contain-list, or a connection negwards on d.contain).