01: /*
02: * TagAttribute.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db.report;
13:
14: /**
15: *
16: * @author support@sql-workbench.net
17: */
18: public class TagAttribute {
19: private final CharSequence tagText;
20:
21: public TagAttribute(String name, String value) {
22: StringBuilder b = new StringBuilder(name.length()
23: + value.length() + 1);
24: b.append(name);
25: b.append("=\"");
26: b.append(value);
27: b.append('"');
28: tagText = b;
29: }
30:
31: public CharSequence getTagText() {
32: return tagText;
33: }
34:
35: }
|