org.apache.ecs
Class ConcreteElement

java.lang.Object
  |
  +--org.apache.ecs.GenericElement
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.ConcreteElement
Direct Known Subclasses:
ElementContainer, MultiPartElement, PI, SinglePartElement, StringElement

public class ConcreteElement
extends ElementAttributes
implements java.lang.Cloneable

This class is to be subclassed by those elements that are made up of other elements. i.e. BODY,HEAD,etc.

Version:
$Id: ConcreteElement.java,v 1.5 1999/06/22 22:46:20 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens
See Also:
Serialized Form

Field Summary
private  java.util.Hashtable h_element
           
private  java.util.Vector v_element
           
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_equality_sign, attribute_filter, attribute_quote, attribute_quote_char, filter_attribute_state
 
Fields inherited from class org.apache.ecs.GenericElement
__text, begin_end_modifier, begin_end_modifier_defined, begin_start_modifier, begin_start_modifier_defined, case_type, codeset, element, element_type, end_element, end_end_modifier, end_end_modifier_defined, end_modifier_defined, end_start_modifier, end_start_modifier_defined, end_tag, filter, filter_state, position, pretty_print, start_modifier_defined, start_tag, tabLevel, VERSION
 
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.
 void output(java.io.OutputStream out)
          Override output(OutputStream) incase any elements are in the registry.
 void output(java.io.PrintWriter out)
          Override output(BufferedWriter) incase any elements are in the registry.
 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 org.apache.ecs.ElementAttributes
addAttribute, createStartTag, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.GenericElement
alterCase, createEndTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginEndModifierDefined, setBeginModifier, setBeginModifier, setBeginStartModifier, setBeginStartModifierDefined, setCase, setCodeSet, setElementType, setEndEndModifier, setEndEndModifierDefined, setEndModifier, setEndModifier, setEndStartModifier, setEndStartModifierDefined, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

h_element

private java.util.Hashtable h_element

v_element

private java.util.Vector v_element
Constructor Detail

ConcreteElement

public ConcreteElement()
Method Detail

addElementToRegistry

public Element addElementToRegistry(Element element)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.

addElementToRegistry

public Element addElementToRegistry(java.lang.String hashcode,
                                    Element element)
Registers an element in the head element list
Parameters:
hashcode - internal name of element
element - element to be added to the registry.

addElementToRegistry

public Element addElementToRegistry(Element element,
                                    boolean filter)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.
filter - does this need to be filtered?

addElementToRegistry

public Element addElementToRegistry(java.lang.String hashcode,
                                    Element element,
                                    boolean filter)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.
filter - should we filter this element?

addElementToRegistry

public Element addElementToRegistry(java.lang.String value,
                                    boolean filter)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.
filter - does this need to be filtered?

addElementToRegistry

public Element addElementToRegistry(java.lang.String hashcode,
                                    java.lang.String value,
                                    boolean filter)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.
filter - does this need to be filtered?

addElementToRegistry

public Element addElementToRegistry(java.lang.String value)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.

addElementToRegistry

public Element addElementToRegistry(java.lang.String hashcode,
                                    java.lang.String value)
Registers an element in the head element list
Parameters:
element - element to be added to the registry.

removeElementFromRegistry

public Element removeElementFromRegistry(Element element)
Removes an element from the element registry
Parameters:
element - element to be added to the registry.

removeElementFromRegistry

public Element removeElementFromRegistry(java.lang.String hashcode)
Removes an element from the head element registry
Parameters:
hashcode - element to be added to the registry.

registryHasElement

public boolean registryHasElement(Element element)
Find out if this element is in the element registry.
Parameters:
element - find out if this element is in the registry

registryHasElement

public boolean registryHasElement(java.lang.String hashcode)
Find out if this element is in the element registry.
Parameters:
element - find out if this element is in the registry

output

public void output(java.io.OutputStream out)
Override output(OutputStream) incase any elements are in the registry.
Parameters:
output - OutputStream to write to.
Overrides:
output in class GenericElement

output

public void output(java.io.PrintWriter out)
Override output(BufferedWriter) incase any elements are in the registry.
Parameters:
output - OutputStream to write to.
Overrides:
output in class GenericElement

clone

public java.lang.Object clone()
Allows all Elements the ability to be cloned.
Overrides:
clone in class java.lang.Object