|
||||||||||
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
public class ConcreteElement
This class is to be subclassed by those elements that are made up of other elements. i.e. BODY,HEAD,etc.
Field Summary | |
---|---|
private static java.lang.String |
lineSeparator
The line separator to use for pretty printing |
private java.util.Hashtable |
registry
|
private java.util.Vector |
registryList
Maintain an ordered list of elements |
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 | |
---|---|
ConcreteElement()
|
Method Summary | |
---|---|
Element |
addElementToRegistry(Element element)
Registers an element in the head element list |
Element |
addElementToRegistry(Element element,
boolean filter)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String value)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String value,
boolean filter)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String hashcode,
Element element)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String hashcode,
Element element,
boolean filter)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String hashcode,
java.lang.String value)
Registers an element in the head element list |
Element |
addElementToRegistry(java.lang.String hashcode,
java.lang.String value,
boolean filter)
Registers an element in the head element list |
java.lang.Object |
clone()
Allows all Elements the ability to be cloned. |
java.util.Enumeration |
elements()
Get an enumeration of the elements that this element contains. |
ConcreteElement |
getElement(java.lang.String element)
If the object is in the registry return otherwise return null. |
boolean |
isEmpty()
|
java.util.Enumeration |
keys()
Get the keys of this element. |
void |
output(java.io.OutputStream out)
Override output(OutputStream) incase any elements are in the registry. |
static void |
output(java.io.OutputStream out,
ConcreteElement ce)
Overload output(OutputStream). |
void |
output(java.io.PrintWriter out)
Override output(BufferedWriter) incase any elements are in the registry. |
void |
output(java.io.Writer out)
Writer version of this method. |
boolean |
registryHasElement(Element element)
Find out if this element is in the element registry. |
boolean |
registryHasElement(java.lang.String hashcode)
Find out if this element is in the element registry. |
Element |
removeElementFromRegistry(Element element)
Removes an element from the element registry |
Element |
removeElementFromRegistry(java.lang.String hashcode)
Removes an element from the head element registry |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static java.lang.String lineSeparator
private java.util.Hashtable registry
private java.util.Vector registryList
Constructor Detail |
---|
public ConcreteElement()
Method Detail |
---|
public ConcreteElement getElement(java.lang.String element)
element
- the name of the object to locate.public Element addElementToRegistry(Element element)
addElementToRegistry
in interface ElementRegistry
element
- element to be added to the registry.public Element addElementToRegistry(java.lang.String hashcode, Element element)
hashcode
- internal name of elementelement
- element to be added to the registry.public Element addElementToRegistry(Element element, boolean filter)
element
- element to be added to the registry.filter
- does this need to be filtered?public Element addElementToRegistry(java.lang.String hashcode, Element element, boolean filter)
element
- element to be added to the registry.filter
- should we filter this element?public Element addElementToRegistry(java.lang.String value, boolean filter)
element
- element to be added to the registry.filter
- does this need to be filtered?public Element addElementToRegistry(java.lang.String hashcode, java.lang.String value, boolean filter)
element
- element to be added to the registry.filter
- does this need to be filtered?public Element addElementToRegistry(java.lang.String value)
addElementToRegistry
in interface ElementRegistry
element
- element to be added to the registry.public Element addElementToRegistry(java.lang.String hashcode, java.lang.String value)
element
- element to be added to the registry.public Element removeElementFromRegistry(Element element)
removeElementFromRegistry
in interface ElementRegistry
element
- element to be added to the registry.public Element removeElementFromRegistry(java.lang.String hashcode)
removeElementFromRegistry
in interface ElementRegistry
hashcode
- element to be added to the registry.public boolean registryHasElement(Element element)
registryHasElement
in interface ElementRegistry
element
- find out if this element is in the registrypublic java.util.Enumeration keys()
public java.util.Enumeration elements()
public boolean registryHasElement(java.lang.String hashcode)
registryHasElement
in interface ElementRegistry
element
- find out if this element is in the registrypublic static void output(java.io.OutputStream out, ConcreteElement ce)
output
- OutputStream to write to.ConcreteElement
- Instance of ConcreteElementpublic void output(java.io.OutputStream out)
output
in interface Element
output
in class GenericElement
output
- OutputStream to write to.public void output(java.io.Writer out)
output
in class GenericElement
public void output(java.io.PrintWriter out)
output
in interface Element
output
in class GenericElement
output
- OutputStream to write to.public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |