This project has retired. For details please refer to its Attic page.
AttributeRenderer xref
View Javadoc

1   /*
2    * $Id: AttributeRenderer.java 736275 2009-01-21 09:58:20Z apetrelli $
3    *
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  package org.apache.tiles.renderer;
22  
23  import java.io.IOException;
24  
25  import org.apache.tiles.Attribute;
26  import org.apache.tiles.context.TilesRequestContext;
27  
28  /***
29   * An object that can render an attribute. For each attribute, if it needs to be
30   * rendered, has an associated renderer.
31   *
32   * @version $Rev: 736275 $ $Date: 2009-01-21 10:58:20 +0100 (mer, 21 gen 2009) $
33   * @since 2.1.0
34   */
35  public interface AttributeRenderer {
36  
37      /***
38       * Renders an attribute.
39       *
40       * @param attribute The attribute to render.
41       * @param request The Tiles request context.
42       * @throws IOException If something goes wrong during rendition.
43       * @throws RendererException If something goes wrong during rendition.
44       * @since 2.1.2
45       */
46      void render(Attribute attribute, TilesRequestContext request)
47              throws IOException;
48  }