jaroslav@490: /** jaroslav@490: * Back 2 Browser Bytecode Translator jaroslav@490: * Copyright (C) 2012 Jaroslav Tulach jaroslav@490: * jaroslav@490: * This program is free software: you can redistribute it and/or modify jaroslav@490: * it under the terms of the GNU General Public License as published by jaroslav@490: * the Free Software Foundation, version 2 of the License. jaroslav@490: * jaroslav@490: * This program is distributed in the hope that it will be useful, jaroslav@490: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@490: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@490: * GNU General Public License for more details. jaroslav@490: * jaroslav@490: * You should have received a copy of the GNU General Public License jaroslav@490: * along with this program. Look for COPYING file in the top folder. jaroslav@490: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@490: */ jaroslav@490: package org.apidesign.bck2brwsr.htmlpage.api; jaroslav@490: jaroslav@490: import java.lang.annotation.Retention; jaroslav@490: import java.lang.annotation.RetentionPolicy; jaroslav@490: import java.lang.annotation.Target; jaroslav@770: import java.util.List; jaroslav@490: jaroslav@1023: /** jaroslav@1023: * @deprecated Replaced by new {@link net.java.html.json.Property net.java.html.json} API. jaroslav@490: * @author Jaroslav Tulach jaroslav@490: */ jaroslav@490: @Retention(RetentionPolicy.SOURCE) jaroslav@490: @Target({}) jaroslav@1023: @Deprecated jaroslav@490: public @interface Property { jaroslav@770: /** Name of the property. Will be used to define proper getter and setter jaroslav@770: * in the associated class. jaroslav@770: * jaroslav@770: * @return valid java identifier jaroslav@770: */ jaroslav@490: String name(); jaroslav@770: jaroslav@770: /** Type of the property. Can either be primitive type (like int.class, jaroslav@770: * double.class, etc.), {@link String} or complex model jaroslav@770: * class (defined by {@link Model} property). jaroslav@770: * jaroslav@770: * @return the class of the property jaroslav@770: */ jaroslav@490: Class type(); jaroslav@770: jaroslav@770: /** Is this property an array of the {@link #type()} or a single value? jaroslav@770: * If the property is an array, only its getter (returning mutable {@link List} of jaroslav@770: * the boxed {@link #type()}). jaroslav@770: * jaroslav@770: * @return true, if this is supposed to be an array of values. jaroslav@770: */ jaroslav@760: boolean array() default false; jaroslav@490: }