org.apache.fop.render.mif

Class MIFElement

Known Direct Subclasses:
MIFFile, RefElement

public class MIFElement
extends java.lang.Object

The is the basis for MIF document elements. This enables the creation of the element and to write it to an output stream including sub-elements or a single value.

Field Summary

protected boolean
finish
protected boolean
finished
protected String
name
protected boolean
started
protected List
valueElements
protected String
valueStr

Constructor Summary

MIFElement(String n)

Method Summary

void
addElement(MIFElement el)
void
finish(boolean deep)
boolean
output(OutputStream os, int indent)
Output this element to an output stream.
void
setValue(String str)

Field Details

finish

protected boolean finish

finished

protected boolean finished

name

protected String name

started

protected boolean started

valueElements

protected List valueElements

valueStr

protected String valueStr

Constructor Details

MIFElement

public MIFElement(String n)

Method Details

addElement

public void addElement(MIFElement el)

finish

public void finish(boolean deep)

output

public boolean output(OutputStream os,
                      int indent)
            throws IOException
Output this element to an output stream. This will output only so far as the fisrt unfinished child element. This method can be called again to continue from the previous point. An element that contains child elements will only be finished when the finish method is called.

setValue

public void setValue(String str)

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.