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 |
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 |
ec
private java.util.Vector ec
- internal use only
ElementContainer
public ElementContainer()
- Basic constructor
ElementContainer
public ElementContainer(Element element)
- Basic constructor
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