|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ecs.GenericElement
org.apache.ecs.ElementAttributes
org.apache.ecs.ConcreteElement
org.apache.ecs.ElementContainer
public class ElementContainer
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());
Field Summary | |
---|---|
private java.util.Vector |
ec
internal use only |
Fields inherited from class org.apache.ecs.GenericElement |
---|
tabLevel |
Fields inherited from interface org.apache.ecs.Attributes |
---|
NO_ATTRIBUTE_VALUE |
Fields inherited from interface org.apache.ecs.Element |
---|
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE |
Constructor Summary | |
---|---|
ElementContainer()
Basic constructor |
|
ElementContainer(Element element)
Basic constructor |
Method Summary | |
---|---|
ElementContainer |
addElement(Element element)
Adds an Element to the element. |
ElementContainer |
addElement(java.lang.String element)
Adds an Element to the element. |
java.util.Enumeration |
elements()
returns an enumeration of the elements in this container |
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.ConcreteElement |
---|
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, getElement, isEmpty, keys, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.Vector ec
Constructor Detail |
---|
public ElementContainer()
public ElementContainer(Element element)
Method Detail |
---|
public ElementContainer addElement(Element element)
element
- Adds an Element to the element.public ElementContainer addElement(java.lang.String element)
element
- Adds an Element to the element.public void output(java.io.OutputStream out)
output
in interface Element
output
in class ConcreteElement
public void output(java.io.PrintWriter out)
output
in interface Element
output
in class ConcreteElement
public java.util.Enumeration elements()
elements
in class ConcreteElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |