org.sovt.impl
Class GroupTransformer

java.lang.Object
  extended byorg.sovt.impl.GroupTransformer
All Implemented Interfaces:
java.lang.Cloneable, Transformer

public class GroupTransformer
extends java.lang.Object
implements Transformer, java.lang.Cloneable

This Transformer is used to collect other transformers into group.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Constructor Summary
GroupTransformer()
          Creates instance of GroupTransformer.
 
Method Summary
 void addTransformer(Transformer transformer)
          Adds transformer to the group.
 java.lang.Object clone()
          Performs a partly deep-cloning.
 java.lang.Object transform(java.lang.Object object)
          Transforms object by invoking all transformers on it.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTransformer

public GroupTransformer()
Creates instance of GroupTransformer.

Method Detail

addTransformer

public void addTransformer(Transformer transformer)
Adds transformer to the group.

Parameters:
transformer - Transformer to add.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Performs a partly deep-cloning. New list of contained transformers is created but transformers themselfs are not cloned.

Specified by:
clone in interface Transformer
Returns:
clone of itself.
Throws:
java.lang.CloneNotSupportedException - never.

transform

public java.lang.Object transform(java.lang.Object object)
Transforms object by invoking all transformers on it.

Specified by:
transform in interface Transformer
Parameters:
object - Object to transform.
Returns:
Transformed object as described in Transformer.


Copyright © 2003-2005 . All Rights Reserved.