001 // =========================================================================== 002 // Copyright (c) 1996 Mort Bay Consulting Pty. Ltd. All rights reserved. 003 // $Id: Tag.java,v 1.1 2004/03/23 13:59:49 laurent Exp $ 004 // --------------------------------------------------------------------------- 005 006 package org.objectweb.jac.aspects.gui.web.html; 007 008 import java.io.IOException; 009 import java.io.Writer; 010 011 /* -------------------------------------------------------------------- */ 012 /** HTML Tag Element. 013 * A Tag element is of the generic form <TAG attributes... > 014 * @see org.mortbay.html.Element 015 */ 016 public class Tag extends Element 017 { 018 /* ---------------------------------------------------------------- */ 019 protected String tag; 020 021 /* ---------------------------------------------------------------- */ 022 public Tag(String tag) 023 { 024 this.tag=tag; 025 } 026 027 /* ---------------------------------------------------------------- */ 028 public void write(Writer out) 029 throws IOException 030 { 031 out.write('<'+tag+attributes()+'>'); 032 } 033 } 034