org.apache.ecs
Class ElementContainer

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementContainer

public class ElementContainer
extends Element

This class is a Element container class. You can place elements into this class and then you can place this class into other elements in order to combine elements together.

P p = new P().addElement("foo");
P p1 = new P().addElement("bar");
ElementContainer ec = new ElementContainer(p).addElement(p1);
System.out.println(ec.toString());

Version:
$Id: ElementContainer.java,v 1.2 1999/04/30 23:45:35 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
private  java.util.Vector ec
          internal use only
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
ElementContainer()
          Basic constructor
ElementContainer(Element element)
          Basic constructor
 
Method Summary
 ElementContainer addElement(Element element)
          Adds an Element to the element.
 void output(java.io.OutputStream out)
          Implements the output method in Element
 void output(java.io.PrintWriter out)
          Implements the output method in Element
 
Methods inherited from class org.apache.ecs.Element
alterCase, getCase, getCodeSet, getElementHashEntry, getElementType, getFilter, getFilterState, getNeedClosingTag, getTagPosition, getVersion, setCase, setCodeSet, setElementType, setFilter, setFilterState, setNeedClosingTag, setTagPosition, toString, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ec

private java.util.Vector ec
internal use only
Constructor Detail

ElementContainer

public ElementContainer()
Basic constructor

ElementContainer

public ElementContainer(Element element)
Basic constructor
Method Detail

addElement

public ElementContainer addElement(Element element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

output

public void output(java.io.OutputStream out)
Implements the output method in Element
Overrides:
output in class Element

output

public void output(java.io.PrintWriter out)
Implements the output method in Element
Overrides:
output in class Element