01: // FrameArrayAttribute.java
02: // $Id: FrameArrayAttribute.java,v 1.6 2002/06/09 10:14:29 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.tools.resources;
07:
08: public class FrameArrayAttribute extends Attribute {
09:
10: public boolean checkValue(Object value) {
11: return value instanceof ResourceFrame[];
12: }
13:
14: public String stringify(Object value) {
15: throw new RuntimeException(
16: "Can't stringify FrameArrayAttribute");
17: }
18:
19: public FrameArrayAttribute(String name, ResourceFrame def[],
20: int flags) {
21: super (name, def, flags);
22: this .type = "[Lorg.w3c.tools.resources.ResourceFrame;".intern();
23: }
24:
25: public FrameArrayAttribute() {
26: super ();
27: this .type = "[Lorg.w3c.tools.resources.ResourceFrame;".intern();
28: }
29:
30: }
|