Source code: com/sun/facelets/tag/TagDecorator.java
1 /**
2 * Licensed under the Common Development and Distribution License,
3 * you may not use this file except in compliance with the License.
4 * You may obtain a copy of the License at
5 *
6 * http://www.sun.com/cddl/
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11 * implied. See the License for the specific language governing
12 * permissions and limitations under the License.
13 */
14
15 package com.sun.facelets.tag;
16
17 /**
18 * Provides the ability to completely change the Tag before it's processed for
19 * compiling with the associated TagHandler.
20 * <p />
21 * You could take <input type="text" /> and convert it to <h:inputText />
22 * before compiling.
23 *
24 * @author Jacob Hookom
25 * @version $Id: TagDecorator.java,v 1.2 2005/08/24 04:38:48 jhook Exp $
26 */
27 public interface TagDecorator {
28
29 /**
30 * If handled, return a new Tag instance, otherwise return null
31 *
32 * @param tag
33 * tag to be decorated
34 * @return a decorated tag, otherwise null
35 */
36 public Tag decorate(Tag tag);
37 }