Milyn-Smooks Version 0.4

org.milyn.delivery.trans
Class TransSet

java.lang.Object
  extended byorg.milyn.delivery.trans.TransSet

public class TransSet
extends java.lang.Object

Transformation set.

The set of TransUnit to be applied to an Element. The set maintains 2 lists, one for the TransUnits whose ElementVisitor.visitBefore() method returns true and one for those that returned false.

This class is really just a convienient placeholder for the list of TransUnit instances to be applied to an element, pre-broken-out into "before" and "after" lists.

Author:
tfennelly

Constructor Summary
TransSet()
           
 
Method Summary
 void addTransUnit(TransUnit transUnit)
          Add to the TransSet.
 java.util.List getVisitAfterTransUnits()
          Get the list of TransUnit instances to be applied after.
 java.util.List getVisitBeforeTransUnits()
          Get the list of TransUnit instances to be applied before.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransSet

public TransSet()
Method Detail

addTransUnit

public void addTransUnit(TransUnit transUnit)
Add to the TransSet.

Adds to the "before" list if ElementVisitor.visitBefore() returns true, otherwise it adds to the "after" list.

Parameters:
transUnit - The TransUnit to be added.

getVisitBeforeTransUnits

public java.util.List getVisitBeforeTransUnits()
Get the list of TransUnit instances to be applied before.

See ElementVisitor.visitBefore().

Returns:
List of TransUnit instances.

getVisitAfterTransUnits

public java.util.List getVisitAfterTransUnits()
Get the list of TransUnit instances to be applied after.

See ElementVisitor.visitBefore().

Returns:
List of TransUnit instances.

Milyn-Smooks Version 0.4