1 /*2 * The contents of this file are subject to the terms of the Common Development3 * and Distribution License (the License). You may not use this file except in4 * compliance with the License.5 *6 * You can obtain a copy of the License at http://www.netbeans.org/cddl.html7 * or http://www.netbeans.org/cddl.txt.8 *9 * When distributing Covered Code, include this CDDL Header Notice in each file10 * and include the License file at http://www.netbeans.org/cddl.txt.11 * If applicable, add the following below the CDDL Header, with the fields12 * enclosed by brackets [] replaced by your own identifying information:13 * "Portions Copyrighted [year] [name of copyright owner]"14 *15 * The Original Software is NetBeans. The Initial Developer of the Original16 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun17 * Microsystems, Inc. All Rights Reserved.18 */19 20 /**21 * This interface has all of the bean info accessor methods.22 * 23 * @Generated24 */25 package org.netbeans.modules.j2ee.dd.api.client;26 27 import org.netbeans.modules.j2ee.dd.api.common.RootInterface;28 import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;29 30 /**31 *32 * @author jungi33 */34 public interface AppClient extends RootInterface {35 36 public static final String PROPERTY_VERSION="dd_version"; //NOI18N37 public static final String VERSION_1_3="1.3"; //NOI18N38 public static final String VERSION_1_4="1.4"; //NOI18N39 public static final String VERSION_5_0="5"; //NOI18N40 public static final int STATE_VALID=0;41 public static final int STATE_INVALID_PARSABLE=1;42 public static final int STATE_INVALID_UNPARSABLE=2;43 public static final String PROPERTY_STATUS="dd_status"; //NOI18N44 45 int addEjbRef(org.netbeans.modules.j2ee.dd.api.common.EjbRef valueInterface);46 47 int addEnvEntry(org.netbeans.modules.j2ee.dd.api.common.EnvEntry valueInterface);48 49 int addIcon(org.netbeans.modules.j2ee.dd.api.common.Icon valueInterface) throws VersionNotSupportedException;50 51 int addMessageDestination(org.netbeans.modules.j2ee.dd.api.common.MessageDestination valueInterface) throws VersionNotSupportedException;52 53 int addMessageDestinationRef(org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef valueInterface) throws VersionNotSupportedException;54 55 int addResourceEnvRef(org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef valueInterface);56 57 int addResourceRef(org.netbeans.modules.j2ee.dd.api.common.ResourceRef valueInterface);58 59 int addServiceRef(org.netbeans.modules.j2ee.dd.api.common.ServiceRef valueInterface) throws VersionNotSupportedException;60 61 java.lang.String getCallbackHandler();62 63 org.netbeans.modules.j2ee.dd.api.common.EjbRef[] getEjbRef();64 65 org.netbeans.modules.j2ee.dd.api.common.EjbRef getEjbRef(int index);66 67 org.netbeans.modules.j2ee.dd.api.common.EnvEntry[] getEnvEntry();68 69 org.netbeans.modules.j2ee.dd.api.common.EnvEntry getEnvEntry(int index);70 71 org.xml.sax.SAXParseException getError();72 73 org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(int index) throws VersionNotSupportedException;74 75 org.netbeans.modules.j2ee.dd.api.common.MessageDestination[] getMessageDestination() throws VersionNotSupportedException;76 77 org.netbeans.modules.j2ee.dd.api.common.MessageDestination getMessageDestination(int index) throws VersionNotSupportedException;78 79 org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef[] getMessageDestinationRef() throws VersionNotSupportedException;80 81 org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef getMessageDestinationRef(int index) throws VersionNotSupportedException;82 83 org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef[] getResourceEnvRef();84 85 org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef getResourceEnvRef(int index);86 87 org.netbeans.modules.j2ee.dd.api.common.ResourceRef[] getResourceRef();88 89 org.netbeans.modules.j2ee.dd.api.common.ResourceRef getResourceRef(int index);90 91 org.netbeans.modules.j2ee.dd.api.common.ServiceRef[] getServiceRef() throws VersionNotSupportedException;92 93 org.netbeans.modules.j2ee.dd.api.common.ServiceRef getServiceRef(int index) throws VersionNotSupportedException;94 95 int getStatus();96 97 int removeEjbRef(org.netbeans.modules.j2ee.dd.api.common.EjbRef valueInterface);98 99 int removeEnvEntry(org.netbeans.modules.j2ee.dd.api.common.EnvEntry valueInterface);100 101 int removeIcon(org.netbeans.modules.j2ee.dd.api.common.Icon valueInterface) throws VersionNotSupportedException;102 103 int removeMessageDestination(org.netbeans.modules.j2ee.dd.api.common.MessageDestination valueInterface) throws VersionNotSupportedException;104 105 int removeMessageDestinationRef(org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef valueInterface) throws VersionNotSupportedException;106 107 int removeResourceEnvRef(org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef valueInterface);108 109 int removeResourceRef(org.netbeans.modules.j2ee.dd.api.common.ResourceRef valueInterface);110 111 int removeServiceRef(org.netbeans.modules.j2ee.dd.api.common.ServiceRef valueInterface) throws VersionNotSupportedException;112 113 void setCallbackHandler(java.lang.String value);114 115 void setEjbRef(int index, org.netbeans.modules.j2ee.dd.api.common.EjbRef valueInterface);116 117 void setEjbRef(org.netbeans.modules.j2ee.dd.api.common.EjbRef[] value);118 119 void setEnvEntry(int index, org.netbeans.modules.j2ee.dd.api.common.EnvEntry valueInterface);120 121 void setEnvEntry(org.netbeans.modules.j2ee.dd.api.common.EnvEntry[] value);122 123 void setIcon(int index, org.netbeans.modules.j2ee.dd.api.common.Icon valueInterface) throws VersionNotSupportedException;124 125 void setIcon(org.netbeans.modules.j2ee.dd.api.common.Icon[] value) throws VersionNotSupportedException;126 127 void setMessageDestination(int index, org.netbeans.modules.j2ee.dd.api.common.MessageDestination valueInterface) throws VersionNotSupportedException;128 129 void setMessageDestination(org.netbeans.modules.j2ee.dd.api.common.MessageDestination[] value) throws VersionNotSupportedException;130 131 void setMessageDestinationRef(int index, org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef valueInterface) throws VersionNotSupportedException;132 133 void setMessageDestinationRef(org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef[] value) throws VersionNotSupportedException;134 135 void setResourceEnvRef(int index, org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef valueInterface);136 137 void setResourceEnvRef(org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef[] value);138 139 void setResourceRef(int index, org.netbeans.modules.j2ee.dd.api.common.ResourceRef valueInterface);140 141 void setResourceRef(org.netbeans.modules.j2ee.dd.api.common.ResourceRef[] value);142 143 void setServiceRef(int index, org.netbeans.modules.j2ee.dd.api.common.ServiceRef valueInterface) throws VersionNotSupportedException;144 145 void setServiceRef(org.netbeans.modules.j2ee.dd.api.common.ServiceRef[] value) throws VersionNotSupportedException;146 147 int sizeEjbRef();148 149 int sizeEnvEntry();150 151 int sizeIcon() throws VersionNotSupportedException;152 153 int sizeMessageDestination() throws VersionNotSupportedException;154 155 int sizeMessageDestinationRef() throws VersionNotSupportedException;156 157 int sizeResourceEnvRef();158 159 int sizeResourceRef();160 161 int sizeServiceRef() throws VersionNotSupportedException;162 163 org.netbeans.modules.j2ee.dd.api.common.EjbRef newEjbRef();164 165 org.netbeans.modules.j2ee.dd.api.common.EnvEntry newEnvEntry();166 167 org.netbeans.modules.j2ee.dd.api.common.Icon newIcon() throws VersionNotSupportedException;168 169 org.netbeans.modules.j2ee.dd.api.common.MessageDestination newMessageDestination() throws VersionNotSupportedException;170 171 org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef newMessageDestinationRef() throws VersionNotSupportedException;172 173 org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef newResourceEnvRef();174 175 org.netbeans.modules.j2ee.dd.api.common.ResourceRef newResourceRef();176 177 org.netbeans.modules.j2ee.dd.api.common.ServiceRef newServiceRef() throws VersionNotSupportedException;178 179 java.math.BigDecimal getVersion();180 void setVersion(java.math.BigDecimal version);181 }182