com.armatiek.infofuze.result
Class AbstractStreamResult

java.lang.Object
  extended by javax.xml.transform.stream.StreamResult
      extended by com.armatiek.infofuze.result.AbstractStreamResult
All Implemented Interfaces:
DataResultIf, javax.xml.transform.Result
Direct Known Subclasses:
FileResult, NullResult

public abstract class AbstractStreamResult
extends javax.xml.transform.stream.StreamResult
implements DataResultIf

An abstract base class for all Infofuze SAXResults

Author:
Maarten Kroon

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamResult
FEATURE
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
AbstractStreamResult(org.w3c.dom.Element configElem)
           
AbstractStreamResult(java.lang.String name)
           
 
Method Summary
 void close()
          Closes the result.
 java.lang.String getName()
          Returns the name of this result.
 java.lang.String getTransformId()
          Returns the transformation identifier of the transformation this result is currently part of.
 Definitions.TransformMode getTransformMode()
          Returns the transformation mode of the transformation this result is currently part of.
 boolean isOpen()
          Tests whether this result is open or not.
 void open()
          Opens this result.
 void reset()
          Resets this result (i.e. resets the transformation mode and identifier).
 void setParameters(java.util.List<Parameter> params)
          Sets the parameters.
 void setTransformId(java.lang.String id)
          Sets the transformation identifier.
 void setTransformMode(Definitions.TransformMode transformMode)
          Sets the transformation mode.
 
Methods inherited from class javax.xml.transform.stream.StreamResult
getOutputStream, getSystemId, getWriter, setOutputStream, setSystemId, setSystemId, setWriter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStreamResult

public AbstractStreamResult(org.w3c.dom.Element configElem)

AbstractStreamResult

public AbstractStreamResult(java.lang.String name)
Method Detail

close

public void close()
Description copied from interface: DataResultIf
Closes the result.

Specified by:
close in interface DataResultIf

getName

public java.lang.String getName()
Description copied from interface: DataResultIf
Returns the name of this result.

Specified by:
getName in interface DataResultIf
Returns:
A String specifying the name of this result

getTransformId

public java.lang.String getTransformId()
Description copied from interface: DataResultIf
Returns the transformation identifier of the transformation this result is currently part of.

Specified by:
getTransformId in interface DataResultIf
Returns:
A String specifying the transformation identifier

getTransformMode

public Definitions.TransformMode getTransformMode()
Description copied from interface: DataResultIf
Returns the transformation mode of the transformation this result is currently part of.

Specified by:
getTransformMode in interface DataResultIf
Returns:
The transformation mode

isOpen

public boolean isOpen()
Description copied from interface: DataResultIf
Tests whether this result is open or not.

Specified by:
isOpen in interface DataResultIf

open

public void open()
Description copied from interface: DataResultIf
Opens this result.

Specified by:
open in interface DataResultIf

reset

public void reset()
Description copied from interface: DataResultIf
Resets this result (i.e. resets the transformation mode and identifier).

Specified by:
reset in interface DataResultIf

setTransformId

public void setTransformId(java.lang.String id)
Description copied from interface: DataResultIf
Sets the transformation identifier.

Specified by:
setTransformId in interface DataResultIf
Parameters:
id - A String specifying the transformation identifier

setTransformMode

public void setTransformMode(Definitions.TransformMode transformMode)
Description copied from interface: DataResultIf
Sets the transformation mode.

Specified by:
setTransformMode in interface DataResultIf
Parameters:
transformMode - The transformation mode

setParameters

public void setParameters(java.util.List<Parameter> params)
Description copied from interface: DataResultIf
Sets the parameters.

Specified by:
setParameters in interface DataResultIf
Parameters:
params - A list containing the parameters