01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ParsedBlockData.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.template;
09:
10: import java.util.ArrayList;
11:
12: class ParsedBlockData extends ArrayList<ParsedBlockPart> {
13: private static final long serialVersionUID = -6957434329992948164L;
14:
15: ParsedBlockData() {
16: super ();
17: }
18:
19: void addPart(ParsedBlockPart part) {
20: assert part != null;
21:
22: add(part);
23: }
24:
25: int countParts() {
26: return size();
27: }
28:
29: ParsedBlockPart getPart(int index) {
30: assert index >= 0;
31:
32: return get(index);
33: }
34: }
|