Path: blob/master/src/java.desktop/share/classes/com/sun/beans/decoder/VoidElementHandler.java
41171 views
/*1* Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/24package com.sun.beans.decoder;2526/**27* This class is intended to handle <void> element.28* This element looks like <object> element,29* but its value is not used as an argument for element30* that contains this one.31* <p>The following attributes are supported:32* <dl>33* <dt>class34* <dd>the type is used for static methods and fields35* <dt>method36* <dd>the method name37* <dt>property38* <dd>the property name39* <dt>index40* <dd>the property index41* <dt>field42* <dd>the field name43* <dt>idref44* <dd>the identifier to refer to the variable45* <dt>id46* <dd>the identifier of the variable that is intended to store the result47* </dl>48*49* @since 1.750*51* @author Sergey A. Malenkov52*/53final class VoidElementHandler extends ObjectElementHandler {5455/**56* Tests whether the value of this element can be used57* as an argument of the element that contained in this one.58*59* @return {@code true} if the value of this element should be used60* as an argument of the element that contained in this one,61* {@code false} otherwise62*/63@Override64protected boolean isArgument() {65return false; // hack for compatibility66}67}686970