1/*2 * $Id: AttributeRenderer.java 736275 2009-01-21 09:58:20Z apetrelli $3 *4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */21package org.apache.tiles.renderer;
2223import java.io.IOException;
2425import org.apache.tiles.Attribute;
26import org.apache.tiles.context.TilesRequestContext;
2728/***29 * An object that can render an attribute. For each attribute, if it needs to be30 * 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.034 */35publicinterfaceAttributeRenderer {
3637/***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.245 */46void render(Attribute attribute, TilesRequestContext request)
47 throws IOException;
48 }