org.apache.ecs
Class MultiPartElement

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.MultiPartElement
Direct Known Subclasses:
A, Abbr, Acronym, Address, Applet, B, Bdo, Big, Blink, BlockQuote, Body, Button, Caption, Center, Cite, Code, ColGroup, Comment, DD, Del, Dfn, Div, DL, DT, Em, FieldSet, Font, Form, Frame, FrameSet, H1, H2, H3, H4, H5, H6, Head, Html, I, IFrame, Ins, Kbd, Label, Legend, LI, Map, NOBR, NoFrames, NoScript, ObjectElement, OL, OptGroup, Option, P, PRE, Q, S, Samp, Script, Select, SinglePartElement, Small, Span, Strike, Strong, Style, Sub, Sup, Table, TBody, TD, TextArea, TFoot, TH, THead, Title, TR, TT, U, UL, Var, XML

public abstract class MultiPartElement
extends ElementAttributes
implements ElementRegistry

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

Version:
$Id: MultiPartElement.java,v 1.7 1999/04/29 20:23:06 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
protected  java.util.Vector v_element
           
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_filter, end_modifier, end_modifier_defined, filter_attribute_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
MultiPartElement()
           
 
Method Summary
(package private)  void ()
          Private Initializer
 void addElementToRegistry(Element element)
          Registers an element in the head element list
 void addElementToRegistry(Element element, boolean filter)
          Registers an element in the head element list
 void addElementToRegistry(java.lang.String value)
          Registers an element in the head element list
 void addElementToRegistry(java.lang.String value, boolean filter)
          Registers an element in the head element list
 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 element)
          Find out if this element is in the element registry.
 void removeElementFromRegistry(Element element)
          Removes an element from the head element registry
 void removeElementFromRegistry(java.lang.String element)
          Removes an element from the head element registry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, clone, getAttributeFilter, getAttributeFilterState, getEndModifier, getEndModifierDefined, getStartModifier, getStartModifierDefined, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setClass, setDir, setEndModifier, setEndModifierDefined, setID, setLang, setModifier, setModifier, setStartModifier, setStartModifierDefined, setStyle, setTitle
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

v_element

protected java.util.Vector v_element
Constructor Detail

MultiPartElement

public MultiPartElement()
Method Detail

void ()
Private Initializer
Overrides:
in class java.lang.Object

addElementToRegistry

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

addElementToRegistry

public void addElementToRegistry(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 void 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 void addElementToRegistry(java.lang.String value)
Registers an element in the head element list
Specified by:
addElementToRegistry in interface ElementRegistry
Parameters:
element - element to be added to the registry.
filter - does this need to be filtered?

removeElementFromRegistry

public void removeElementFromRegistry(Element element)
Removes an element from the head element registry
Specified by:
removeElementFromRegistry in interface ElementRegistry
Parameters:
element - element to be added to the registry.

removeElementFromRegistry

public void removeElementFromRegistry(java.lang.String element)
Removes an element from the head element registry
Specified by:
removeElementFromRegistry in interface ElementRegistry
Parameters:
element - element to be added to the registry.

registryHasElement

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

registryHasElement

public boolean registryHasElement(java.lang.String element)
Find out if this element is in the element registry.
Specified by:
registryHasElement in interface ElementRegistry
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 ElementAttributes

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 ElementAttributes