File:  [Public] / java / classes / org / w3c / tools / resources / FrameArrayAttribute.java
Revision 1.7: download - view: text, annotated - select for diffs
Fri Oct 18 13:42:26 2013 UTC (12 years, 2 months ago) by ylafon
Branches: MAIN
CVS tags: HEAD
generics + raw types + serializer

// FrameArrayAttribute.java
// $Id: FrameArrayAttribute.java,v 1.7 2013/10/18 13:42:26 ylafon Exp $
// (c) COPYRIGHT MIT and INRIA, 1996.
// Please first read the full copyright statement in file COPYRIGHT.html

package org.w3c.tools.resources;

public class FrameArrayAttribute extends Attribute {

    private static final long serialVersionUID = -6850793984117982255L;

    public FrameArrayAttribute(String name, ResourceFrame def[], int flags) {
        super(name, def, flags);
        this.type = "[Lorg.w3c.tools.resources.ResourceFrame;".intern();
    }

    public FrameArrayAttribute() {
        super();
        this.type = "[Lorg.w3c.tools.resources.ResourceFrame;".intern();
    }

    public boolean checkValue(Object value) {
        return value instanceof ResourceFrame[];
    }

    public String stringify(Object value) {
        throw new RuntimeException("Can't stringify FrameArrayAttribute");
    }

}

Webmaster