Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.tag
Class CompositeTagDecorator  view CompositeTagDecorator download CompositeTagDecorator.java

java.lang.Object
  extended bycom.sun.facelets.tag.CompositeTagDecorator
All Implemented Interfaces:
TagDecorator

public final class CompositeTagDecorator
extends java.lang.Object
implements TagDecorator

A TagDecorator that is composed of 1 or more TagDecorator instances. It uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.

Version:
$Id: CompositeTagDecorator.java,v 1.4 2005/08/24 04:38:46 jhook Exp $

Field Summary
private  TagDecorator[] decorators
           
 
Constructor Summary
CompositeTagDecorator(TagDecorator[] decorators)
           
 
Method Summary
 Tag decorate(Tag tag)
          Uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decorators

private final TagDecorator[] decorators
Constructor Detail

CompositeTagDecorator

public CompositeTagDecorator(TagDecorator[] decorators)
Method Detail

decorate

public Tag decorate(Tag tag)
Uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.

Specified by:
decorate in interface TagDecorator