org.apache.ecs
Class StringElement

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.StringElement

public class StringElement
extends Element

This class is used to create a String element in ECS. A StringElement has no tags wrapped around it, it is an Element without tags.

Version:
$Id: StringElement.java,v 1.1 1999/04/30 23:45:47 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
private  java.lang.StringBuffer sb
          internal use only
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
StringElement()
          Basic constructor
StringElement(Element string)
          Basic constructor
StringElement(java.lang.String string)
          Basic constructor
 
Method Summary
(package private)  void ()
           
 StringElement addElement(Element element)
          Adds an Element to the element.
 StringElement addElement(java.lang.String element)
          Adds an Element to the element.
private  StringElement append(java.lang.String string)
          Appends to the internal StringBuffer
 void output(java.io.OutputStream out)
          Implements the output method in Element
 void output(java.io.PrintWriter out)
          Implements the output method in Element
 StringElement reset()
          Resets the interal string to be empty.
 
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
 

Field Detail

sb

private java.lang.StringBuffer sb
internal use only
Constructor Detail

StringElement

public StringElement()
Basic constructor

StringElement

public StringElement(java.lang.String string)
Basic constructor

StringElement

public StringElement(Element string)
Basic constructor
Method Detail

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

append

private StringElement append(java.lang.String string)
Appends to the internal StringBuffer

reset

public StringElement reset()
Resets the interal string to be empty.

addElement

public StringElement addElement(java.lang.String element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

addElement

public StringElement 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