Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 27466 invoked from network); 14 Sep 2005 19:04:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 19:04:54 -0000 Received: (qmail 99242 invoked by uid 500); 14 Sep 2005 19:03:37 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 99126 invoked by uid 500); 14 Sep 2005 19:03:36 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 98871 invoked by uid 99); 14 Sep 2005 19:03:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 12:03:33 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Sep 2005 12:03:04 -0700 Received: (qmail 24370 invoked by uid 65534); 14 Sep 2005 19:02:41 -0000 Message-ID: <20050914190241.24369.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r280909 [33/52] - in /geronimo/devtools/trunk/modules/eclipse-plugin: ./ features/ features/org.apache.geronimo.feature/ org.apache.geronimo.core/ org.apache.geronimo.deployment.model/ org.apache.geronimo.feature/ org.apache.geronimo.runtim... Date: Wed, 14 Sep 2005 19:01:03 -0000 To: scm@geronimo.apache.org From: sppatel@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityPackageImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityPackageImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityPackageImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityPackageImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,1139 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.xml.ns.security.impl; + +import org.apache.geronimo.xml.ns.deployment.DeploymentPackage; + +import org.apache.geronimo.xml.ns.deployment.impl.DeploymentPackageImpl; + +import org.apache.geronimo.xml.ns.naming.NamingPackage; + +import org.apache.geronimo.xml.ns.naming.impl.NamingPackageImpl; + +import org.apache.geronimo.xml.ns.security.DefaultPrincipalType; +import org.apache.geronimo.xml.ns.security.DescriptionType; +import org.apache.geronimo.xml.ns.security.DistinguishedNameType; +import org.apache.geronimo.xml.ns.security.DocumentRoot; +import org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType; +import org.apache.geronimo.xml.ns.security.PrincipalType; +import org.apache.geronimo.xml.ns.security.RealmType; +import org.apache.geronimo.xml.ns.security.RoleMappingsType; +import org.apache.geronimo.xml.ns.security.RoleType; +import org.apache.geronimo.xml.ns.security.SecurityFactory; +import org.apache.geronimo.xml.ns.security.SecurityPackage; +import org.apache.geronimo.xml.ns.security.SecurityType; + +import org.apache.geronimo.xml.ns.web.WebPackage; + +import org.apache.geronimo.xml.ns.web.impl.WebPackageImpl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.emf.ecore.xml.type.XMLTypePackage; + +import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class SecurityPackageImpl extends EPackageImpl implements SecurityPackage { + /** + * + * + * @generated + */ + private EClass defaultPrincipalTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass descriptionTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass distinguishedNameTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass documentRootEClass = null; + + /** + * + * + * @generated + */ + private EClass namedUsernamePasswordCredentialTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass principalTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass realmTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass roleMappingsTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass roleTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass securityTypeEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#eNS_URI + * @see #init() + * @generated + */ + private SecurityPackageImpl() { + super(eNS_URI, SecurityFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + *

Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + *

Invocation of this method will not affect any packages that have + * already been initialized. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static SecurityPackage init() { + if (isInited) return (SecurityPackage)EPackage.Registry.INSTANCE.getEPackage(SecurityPackage.eNS_URI); + + // Obtain or create and register package + SecurityPackageImpl theSecurityPackage = (SecurityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SecurityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SecurityPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + XMLTypePackageImpl.init(); + + // Obtain or create and register interdependencies + NamingPackageImpl theNamingPackage = (NamingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NamingPackage.eNS_URI) instanceof NamingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NamingPackage.eNS_URI) : NamingPackage.eINSTANCE); + DeploymentPackageImpl theDeploymentPackage = (DeploymentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI) instanceof DeploymentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI) : DeploymentPackage.eINSTANCE); + WebPackageImpl theWebPackage = (WebPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) instanceof WebPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) : WebPackage.eINSTANCE); + + // Create package meta-data objects + theSecurityPackage.createPackageContents(); + theNamingPackage.createPackageContents(); + theDeploymentPackage.createPackageContents(); + theWebPackage.createPackageContents(); + + // Initialize created meta-data + theSecurityPackage.initializePackageContents(); + theNamingPackage.initializePackageContents(); + theDeploymentPackage.initializePackageContents(); + theWebPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSecurityPackage.freeze(); + + return theSecurityPackage; + } + + /** + * + * + * @generated + */ + public EClass getDefaultPrincipalType() { + return defaultPrincipalTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getDefaultPrincipalType_Description() { + return (EReference)defaultPrincipalTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDefaultPrincipalType_Principal() { + return (EReference)defaultPrincipalTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDefaultPrincipalType_NamedUsernamePasswordCredential() { + return (EReference)defaultPrincipalTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDefaultPrincipalType_RealmName() { + return (EAttribute)defaultPrincipalTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getDescriptionType() { + return descriptionTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDescriptionType_Value() { + return (EAttribute)descriptionTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDescriptionType_Lang() { + return (EAttribute)descriptionTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getDistinguishedNameType() { + return distinguishedNameTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getDistinguishedNameType_Description() { + return (EReference)distinguishedNameTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDistinguishedNameType_DesignatedRunAs() { + return (EAttribute)distinguishedNameTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDistinguishedNameType_Name() { + return (EAttribute)distinguishedNameTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDocumentRoot() { + return documentRootEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDocumentRoot_Mixed() { + return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDocumentRoot_XMLNSPrefixMap() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDocumentRoot_XSISchemaLocation() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getDocumentRoot_DefaultPrincipal() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getDocumentRoot_Security() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getNamedUsernamePasswordCredentialType() { + return namedUsernamePasswordCredentialTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNamedUsernamePasswordCredentialType_Name() { + return (EAttribute)namedUsernamePasswordCredentialTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNamedUsernamePasswordCredentialType_Username() { + return (EAttribute)namedUsernamePasswordCredentialTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNamedUsernamePasswordCredentialType_Password() { + return (EAttribute)namedUsernamePasswordCredentialTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPrincipalType() { + return principalTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getPrincipalType_Description() { + return (EReference)principalTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPrincipalType_Class() { + return (EAttribute)principalTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getPrincipalType_DesignatedRunAs() { + return (EAttribute)principalTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getPrincipalType_Name() { + return (EAttribute)principalTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getRealmType() { + return realmTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getRealmType_Description() { + return (EReference)realmTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getRealmType_Principal() { + return (EReference)realmTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRealmType_RealmName() { + return (EAttribute)realmTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getRoleMappingsType() { + return roleMappingsTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getRoleMappingsType_Role() { + return (EReference)roleMappingsTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getRoleType() { + return roleTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getRoleType_Description() { + return (EReference)roleTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getRoleType_Realm() { + return (EReference)roleTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getRoleType_DistinguishedName() { + return (EReference)roleTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRoleType_RoleName() { + return (EAttribute)roleTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSecurityType() { + return securityTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getSecurityType_Description() { + return (EReference)securityTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSecurityType_DefaultPrincipal() { + return (EReference)securityTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSecurityType_RoleMappings() { + return (EReference)securityTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityType_DefaultRole() { + return (EAttribute)securityTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityType_DoasCurrentCaller() { + return (EAttribute)securityTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityType_UseContextHandler() { + return (EAttribute)securityTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public SecurityFactory getSecurityFactory() { + return (SecurityFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + defaultPrincipalTypeEClass = createEClass(DEFAULT_PRINCIPAL_TYPE); + createEReference(defaultPrincipalTypeEClass, DEFAULT_PRINCIPAL_TYPE__DESCRIPTION); + createEReference(defaultPrincipalTypeEClass, DEFAULT_PRINCIPAL_TYPE__PRINCIPAL); + createEReference(defaultPrincipalTypeEClass, DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL); + createEAttribute(defaultPrincipalTypeEClass, DEFAULT_PRINCIPAL_TYPE__REALM_NAME); + + descriptionTypeEClass = createEClass(DESCRIPTION_TYPE); + createEAttribute(descriptionTypeEClass, DESCRIPTION_TYPE__VALUE); + createEAttribute(descriptionTypeEClass, DESCRIPTION_TYPE__LANG); + + distinguishedNameTypeEClass = createEClass(DISTINGUISHED_NAME_TYPE); + createEReference(distinguishedNameTypeEClass, DISTINGUISHED_NAME_TYPE__DESCRIPTION); + createEAttribute(distinguishedNameTypeEClass, DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS); + createEAttribute(distinguishedNameTypeEClass, DISTINGUISHED_NAME_TYPE__NAME); + + documentRootEClass = createEClass(DOCUMENT_ROOT); + createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); + createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); + createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); + createEReference(documentRootEClass, DOCUMENT_ROOT__DEFAULT_PRINCIPAL); + createEReference(documentRootEClass, DOCUMENT_ROOT__SECURITY); + + namedUsernamePasswordCredentialTypeEClass = createEClass(NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE); + createEAttribute(namedUsernamePasswordCredentialTypeEClass, NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME); + createEAttribute(namedUsernamePasswordCredentialTypeEClass, NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME); + createEAttribute(namedUsernamePasswordCredentialTypeEClass, NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD); + + principalTypeEClass = createEClass(PRINCIPAL_TYPE); + createEReference(principalTypeEClass, PRINCIPAL_TYPE__DESCRIPTION); + createEAttribute(principalTypeEClass, PRINCIPAL_TYPE__CLASS); + createEAttribute(principalTypeEClass, PRINCIPAL_TYPE__DESIGNATED_RUN_AS); + createEAttribute(principalTypeEClass, PRINCIPAL_TYPE__NAME); + + realmTypeEClass = createEClass(REALM_TYPE); + createEReference(realmTypeEClass, REALM_TYPE__DESCRIPTION); + createEReference(realmTypeEClass, REALM_TYPE__PRINCIPAL); + createEAttribute(realmTypeEClass, REALM_TYPE__REALM_NAME); + + roleMappingsTypeEClass = createEClass(ROLE_MAPPINGS_TYPE); + createEReference(roleMappingsTypeEClass, ROLE_MAPPINGS_TYPE__ROLE); + + roleTypeEClass = createEClass(ROLE_TYPE); + createEReference(roleTypeEClass, ROLE_TYPE__DESCRIPTION); + createEReference(roleTypeEClass, ROLE_TYPE__REALM); + createEReference(roleTypeEClass, ROLE_TYPE__DISTINGUISHED_NAME); + createEAttribute(roleTypeEClass, ROLE_TYPE__ROLE_NAME); + + securityTypeEClass = createEClass(SECURITY_TYPE); + createEReference(securityTypeEClass, SECURITY_TYPE__DESCRIPTION); + createEReference(securityTypeEClass, SECURITY_TYPE__DEFAULT_PRINCIPAL); + createEReference(securityTypeEClass, SECURITY_TYPE__ROLE_MAPPINGS); + createEAttribute(securityTypeEClass, SECURITY_TYPE__DEFAULT_ROLE); + createEAttribute(securityTypeEClass, SECURITY_TYPE__DOAS_CURRENT_CALLER); + createEAttribute(securityTypeEClass, SECURITY_TYPE__USE_CONTEXT_HANDLER); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(defaultPrincipalTypeEClass, DefaultPrincipalType.class, "DefaultPrincipalType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDefaultPrincipalType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, DefaultPrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDefaultPrincipalType_Principal(), this.getPrincipalType(), null, "principal", null, 1, 1, DefaultPrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDefaultPrincipalType_NamedUsernamePasswordCredential(), this.getNamedUsernamePasswordCredentialType(), null, "namedUsernamePasswordCredential", null, 0, -1, DefaultPrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDefaultPrincipalType_RealmName(), theXMLTypePackage.getString(), "realmName", null, 1, 1, DefaultPrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(descriptionTypeEClass, DescriptionType.class, "DescriptionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDescriptionType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, DescriptionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDescriptionType_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, DescriptionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(distinguishedNameTypeEClass, DistinguishedNameType.class, "DistinguishedNameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDistinguishedNameType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, DistinguishedNameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDistinguishedNameType_DesignatedRunAs(), theXMLTypePackage.getBoolean(), "designatedRunAs", "false", 0, 1, DistinguishedNameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDistinguishedNameType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, DistinguishedNameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_DefaultPrincipal(), this.getDefaultPrincipalType(), null, "defaultPrincipal", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_Security(), this.getSecurityType(), null, "security", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); + + initEClass(namedUsernamePasswordCredentialTypeEClass, NamedUsernamePasswordCredentialType.class, "NamedUsernamePasswordCredentialType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamedUsernamePasswordCredentialType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, NamedUsernamePasswordCredentialType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedUsernamePasswordCredentialType_Username(), theXMLTypePackage.getString(), "username", null, 1, 1, NamedUsernamePasswordCredentialType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedUsernamePasswordCredentialType_Password(), theXMLTypePackage.getString(), "password", null, 1, 1, NamedUsernamePasswordCredentialType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(principalTypeEClass, PrincipalType.class, "PrincipalType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPrincipalType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, PrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPrincipalType_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, PrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPrincipalType_DesignatedRunAs(), theXMLTypePackage.getBoolean(), "designatedRunAs", "false", 0, 1, PrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPrincipalType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, PrincipalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(realmTypeEClass, RealmType.class, "RealmType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRealmType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, RealmType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRealmType_Principal(), this.getPrincipalType(), null, "principal", null, 1, -1, RealmType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRealmType_RealmName(), theXMLTypePackage.getString(), "realmName", null, 1, 1, RealmType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(roleMappingsTypeEClass, RoleMappingsType.class, "RoleMappingsType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoleMappingsType_Role(), this.getRoleType(), null, "role", null, 1, -1, RoleMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(roleTypeEClass, RoleType.class, "RoleType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoleType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, RoleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRoleType_Realm(), this.getRealmType(), null, "realm", null, 0, -1, RoleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRoleType_DistinguishedName(), this.getDistinguishedNameType(), null, "distinguishedName", null, 0, -1, RoleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRoleType_RoleName(), theXMLTypePackage.getString(), "roleName", null, 1, 1, RoleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityTypeEClass, SecurityType.class, "SecurityType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecurityType_Description(), this.getDescriptionType(), null, "description", null, 0, -1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityType_DefaultPrincipal(), this.getDefaultPrincipalType(), null, "defaultPrincipal", null, 1, 1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityType_RoleMappings(), this.getRoleMappingsType(), null, "roleMappings", null, 0, 1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityType_DefaultRole(), theXMLTypePackage.getString(), "defaultRole", null, 0, 1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityType_DoasCurrentCaller(), theXMLTypePackage.getBoolean(), "doasCurrentCaller", "false", 0, 1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityType_UseContextHandler(), theXMLTypePackage.getBoolean(), "useContextHandler", "false", 0, 1, SecurityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http:///org/eclipse/emf/ecore/util/ExtendedMetaData + createExtendedMetaDataAnnotations(); + } + + /** + * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. + * + * + * @generated + */ + protected void createExtendedMetaDataAnnotations() { + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; + addAnnotation + (defaultPrincipalTypeEClass, + source, + new String[] { + "name", "default-principalType", + "kind", "elementOnly" + }); + addAnnotation + (getDefaultPrincipalType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getDefaultPrincipalType_Principal(), + source, + new String[] { + "kind", "element", + "name", "principal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getDefaultPrincipalType_NamedUsernamePasswordCredential(), + source, + new String[] { + "kind", "element", + "name", "named-username-password-credential", + "namespace", "##targetNamespace" + }); + addAnnotation + (getDefaultPrincipalType_RealmName(), + source, + new String[] { + "kind", "attribute", + "name", "realm-name" + }); + addAnnotation + (descriptionTypeEClass, + source, + new String[] { + "name", "descriptionType", + "kind", "simple" + }); + addAnnotation + (getDescriptionType_Value(), + source, + new String[] { + "name", ":0", + "kind", "simple" + }); + addAnnotation + (getDescriptionType_Lang(), + source, + new String[] { + "kind", "attribute", + "name", "lang", + "namespace", "http://www.w3.org/XML/1998/namespace" + }); + addAnnotation + (distinguishedNameTypeEClass, + source, + new String[] { + "name", "distinguishedNameType", + "kind", "elementOnly" + }); + addAnnotation + (getDistinguishedNameType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getDistinguishedNameType_DesignatedRunAs(), + source, + new String[] { + "kind", "attribute", + "name", "designated-run-as" + }); + addAnnotation + (getDistinguishedNameType_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (documentRootEClass, + source, + new String[] { + "name", "", + "kind", "mixed" + }); + addAnnotation + (getDocumentRoot_Mixed(), + source, + new String[] { + "kind", "elementWildcard", + "name", ":mixed" + }); + addAnnotation + (getDocumentRoot_XMLNSPrefixMap(), + source, + new String[] { + "kind", "attribute", + "name", "xmlns:prefix" + }); + addAnnotation + (getDocumentRoot_XSISchemaLocation(), + source, + new String[] { + "kind", "attribute", + "name", "xsi:schemaLocation" + }); + addAnnotation + (getDocumentRoot_DefaultPrincipal(), + source, + new String[] { + "kind", "element", + "name", "default-principal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getDocumentRoot_Security(), + source, + new String[] { + "kind", "element", + "name", "security", + "namespace", "##targetNamespace" + }); + addAnnotation + (namedUsernamePasswordCredentialTypeEClass, + source, + new String[] { + "name", "named-username-password-credentialType", + "kind", "elementOnly" + }); + addAnnotation + (getNamedUsernamePasswordCredentialType_Name(), + source, + new String[] { + "kind", "element", + "name", "name", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedUsernamePasswordCredentialType_Username(), + source, + new String[] { + "kind", "element", + "name", "username", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedUsernamePasswordCredentialType_Password(), + source, + new String[] { + "kind", "element", + "name", "password", + "namespace", "##targetNamespace" + }); + addAnnotation + (principalTypeEClass, + source, + new String[] { + "name", "principalType", + "kind", "elementOnly" + }); + addAnnotation + (getPrincipalType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPrincipalType_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (getPrincipalType_DesignatedRunAs(), + source, + new String[] { + "kind", "attribute", + "name", "designated-run-as" + }); + addAnnotation + (getPrincipalType_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (realmTypeEClass, + source, + new String[] { + "name", "realmType", + "kind", "elementOnly" + }); + addAnnotation + (getRealmType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getRealmType_Principal(), + source, + new String[] { + "kind", "element", + "name", "principal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getRealmType_RealmName(), + source, + new String[] { + "kind", "attribute", + "name", "realm-name" + }); + addAnnotation + (roleMappingsTypeEClass, + source, + new String[] { + "name", "role-mappingsType", + "kind", "elementOnly" + }); + addAnnotation + (getRoleMappingsType_Role(), + source, + new String[] { + "kind", "element", + "name", "role", + "namespace", "##targetNamespace" + }); + addAnnotation + (roleTypeEClass, + source, + new String[] { + "name", "roleType", + "kind", "elementOnly" + }); + addAnnotation + (getRoleType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getRoleType_Realm(), + source, + new String[] { + "kind", "element", + "name", "realm", + "namespace", "##targetNamespace" + }); + addAnnotation + (getRoleType_DistinguishedName(), + source, + new String[] { + "kind", "element", + "name", "distinguished-name", + "namespace", "##targetNamespace" + }); + addAnnotation + (getRoleType_RoleName(), + source, + new String[] { + "kind", "attribute", + "name", "role-name" + }); + addAnnotation + (securityTypeEClass, + source, + new String[] { + "name", "securityType", + "kind", "elementOnly" + }); + addAnnotation + (getSecurityType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSecurityType_DefaultPrincipal(), + source, + new String[] { + "kind", "element", + "name", "default-principal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSecurityType_RoleMappings(), + source, + new String[] { + "kind", "element", + "name", "role-mappings", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSecurityType_DefaultRole(), + source, + new String[] { + "kind", "attribute", + "name", "default-role" + }); + addAnnotation + (getSecurityType_DoasCurrentCaller(), + source, + new String[] { + "kind", "attribute", + "name", "doas-current-caller" + }); + addAnnotation + (getSecurityType_UseContextHandler(), + source, + new String[] { + "kind", "attribute", + "name", "use-context-handler" + }); + } + +} //SecurityPackageImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityTypeImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityTypeImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityTypeImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityTypeImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,542 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.xml.ns.security.impl; + +import java.util.Collection; + +import org.apache.geronimo.xml.ns.security.DefaultPrincipalType; +import org.apache.geronimo.xml.ns.security.DescriptionType; +import org.apache.geronimo.xml.ns.security.RoleMappingsType; +import org.apache.geronimo.xml.ns.security.SecurityPackage; +import org.apache.geronimo.xml.ns.security.SecurityType; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#getDescription Description}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#getDefaultPrincipal Default Principal}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#getRoleMappings Role Mappings}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#getDefaultRole Default Role}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#isDoasCurrentCaller Doas Current Caller}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl#isUseContextHandler Use Context Handler}
  • + *
+ *

+ * + * @generated + */ +public class SecurityTypeImpl extends EObjectImpl implements SecurityType { + /** + * The cached value of the '{@link #getDescription() Description}' containment reference list. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected EList description = null; + + /** + * The cached value of the '{@link #getDefaultPrincipal() Default Principal}' containment reference. + * + * + * @see #getDefaultPrincipal() + * @generated + * @ordered + */ + protected DefaultPrincipalType defaultPrincipal = null; + + /** + * The cached value of the '{@link #getRoleMappings() Role Mappings}' containment reference. + * + * + * @see #getRoleMappings() + * @generated + * @ordered + */ + protected RoleMappingsType roleMappings = null; + + /** + * The default value of the '{@link #getDefaultRole() Default Role}' attribute. + * + * + * @see #getDefaultRole() + * @generated + * @ordered + */ + protected static final String DEFAULT_ROLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDefaultRole() Default Role}' attribute. + * + * + * @see #getDefaultRole() + * @generated + * @ordered + */ + protected String defaultRole = DEFAULT_ROLE_EDEFAULT; + + /** + * The default value of the '{@link #isDoasCurrentCaller() Doas Current Caller}' attribute. + * + * + * @see #isDoasCurrentCaller() + * @generated + * @ordered + */ + protected static final boolean DOAS_CURRENT_CALLER_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDoasCurrentCaller() Doas Current Caller}' attribute. + * + * + * @see #isDoasCurrentCaller() + * @generated + * @ordered + */ + protected boolean doasCurrentCaller = DOAS_CURRENT_CALLER_EDEFAULT; + + /** + * This is true if the Doas Current Caller attribute has been set. + * + * + * @generated + * @ordered + */ + protected boolean doasCurrentCallerESet = false; + + /** + * The default value of the '{@link #isUseContextHandler() Use Context Handler}' attribute. + * + * + * @see #isUseContextHandler() + * @generated + * @ordered + */ + protected static final boolean USE_CONTEXT_HANDLER_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUseContextHandler() Use Context Handler}' attribute. + * + * + * @see #isUseContextHandler() + * @generated + * @ordered + */ + protected boolean useContextHandler = USE_CONTEXT_HANDLER_EDEFAULT; + + /** + * This is true if the Use Context Handler attribute has been set. + * + * + * @generated + * @ordered + */ + protected boolean useContextHandlerESet = false; + + /** + * + * + * @generated + */ + protected SecurityTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + protected EClass eStaticClass() { + return SecurityPackage.eINSTANCE.getSecurityType(); + } + + /** + * + * + * @generated + */ + public EList getDescription() { + if (description == null) { + description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.SECURITY_TYPE__DESCRIPTION); + } + return description; + } + + /** + * + * + * @generated + */ + public DefaultPrincipalType getDefaultPrincipal() { + return defaultPrincipal; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal, NotificationChain msgs) { + DefaultPrincipalType oldDefaultPrincipal = defaultPrincipal; + defaultPrincipal = newDefaultPrincipal; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL, oldDefaultPrincipal, newDefaultPrincipal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal) { + if (newDefaultPrincipal != defaultPrincipal) { + NotificationChain msgs = null; + if (defaultPrincipal != null) + msgs = ((InternalEObject)defaultPrincipal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL, null, msgs); + if (newDefaultPrincipal != null) + msgs = ((InternalEObject)newDefaultPrincipal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL, null, msgs); + msgs = basicSetDefaultPrincipal(newDefaultPrincipal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL, newDefaultPrincipal, newDefaultPrincipal)); + } + + /** + * + * + * @generated + */ + public RoleMappingsType getRoleMappings() { + return roleMappings; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRoleMappings(RoleMappingsType newRoleMappings, NotificationChain msgs) { + RoleMappingsType oldRoleMappings = roleMappings; + roleMappings = newRoleMappings; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS, oldRoleMappings, newRoleMappings); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRoleMappings(RoleMappingsType newRoleMappings) { + if (newRoleMappings != roleMappings) { + NotificationChain msgs = null; + if (roleMappings != null) + msgs = ((InternalEObject)roleMappings).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS, null, msgs); + if (newRoleMappings != null) + msgs = ((InternalEObject)newRoleMappings).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS, null, msgs); + msgs = basicSetRoleMappings(newRoleMappings, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS, newRoleMappings, newRoleMappings)); + } + + /** + * + * + * @generated + */ + public String getDefaultRole() { + return defaultRole; + } + + /** + * + * + * @generated + */ + public void setDefaultRole(String newDefaultRole) { + String oldDefaultRole = defaultRole; + defaultRole = newDefaultRole; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__DEFAULT_ROLE, oldDefaultRole, defaultRole)); + } + + /** + * + * + * @generated + */ + public boolean isDoasCurrentCaller() { + return doasCurrentCaller; + } + + /** + * + * + * @generated + */ + public void setDoasCurrentCaller(boolean newDoasCurrentCaller) { + boolean oldDoasCurrentCaller = doasCurrentCaller; + doasCurrentCaller = newDoasCurrentCaller; + boolean oldDoasCurrentCallerESet = doasCurrentCallerESet; + doasCurrentCallerESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER, oldDoasCurrentCaller, doasCurrentCaller, !oldDoasCurrentCallerESet)); + } + + /** + * + * + * @generated + */ + public void unsetDoasCurrentCaller() { + boolean oldDoasCurrentCaller = doasCurrentCaller; + boolean oldDoasCurrentCallerESet = doasCurrentCallerESet; + doasCurrentCaller = DOAS_CURRENT_CALLER_EDEFAULT; + doasCurrentCallerESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER, oldDoasCurrentCaller, DOAS_CURRENT_CALLER_EDEFAULT, oldDoasCurrentCallerESet)); + } + + /** + * + * + * @generated + */ + public boolean isSetDoasCurrentCaller() { + return doasCurrentCallerESet; + } + + /** + * + * + * @generated + */ + public boolean isUseContextHandler() { + return useContextHandler; + } + + /** + * + * + * @generated + */ + public void setUseContextHandler(boolean newUseContextHandler) { + boolean oldUseContextHandler = useContextHandler; + useContextHandler = newUseContextHandler; + boolean oldUseContextHandlerESet = useContextHandlerESet; + useContextHandlerESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER, oldUseContextHandler, useContextHandler, !oldUseContextHandlerESet)); + } + + /** + * + * + * @generated + */ + public void unsetUseContextHandler() { + boolean oldUseContextHandler = useContextHandler; + boolean oldUseContextHandlerESet = useContextHandlerESet; + useContextHandler = USE_CONTEXT_HANDLER_EDEFAULT; + useContextHandlerESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER, oldUseContextHandler, USE_CONTEXT_HANDLER_EDEFAULT, oldUseContextHandlerESet)); + } + + /** + * + * + * @generated + */ + public boolean isSetUseContextHandler() { + return useContextHandlerESet; + } + + /** + * + * + * @generated + */ + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { + if (featureID >= 0) { + switch (eDerivedStructuralFeatureID(featureID, baseClass)) { + case SecurityPackage.SECURITY_TYPE__DESCRIPTION: + return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs); + case SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL: + return basicSetDefaultPrincipal(null, msgs); + case SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS: + return basicSetRoleMappings(null, msgs); + default: + return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); + } + } + return eBasicSetContainer(null, featureID, msgs); + } + + /** + * + * + * @generated + */ + public Object eGet(EStructuralFeature eFeature, boolean resolve) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.SECURITY_TYPE__DESCRIPTION: + return getDescription(); + case SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL: + return getDefaultPrincipal(); + case SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS: + return getRoleMappings(); + case SecurityPackage.SECURITY_TYPE__DEFAULT_ROLE: + return getDefaultRole(); + case SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER: + return isDoasCurrentCaller() ? Boolean.TRUE : Boolean.FALSE; + case SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER: + return isUseContextHandler() ? Boolean.TRUE : Boolean.FALSE; + } + return eDynamicGet(eFeature, resolve); + } + + /** + * + * + * @generated + */ + public void eSet(EStructuralFeature eFeature, Object newValue) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.SECURITY_TYPE__DESCRIPTION: + getDescription().clear(); + getDescription().addAll((Collection)newValue); + return; + case SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL: + setDefaultPrincipal((DefaultPrincipalType)newValue); + return; + case SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS: + setRoleMappings((RoleMappingsType)newValue); + return; + case SecurityPackage.SECURITY_TYPE__DEFAULT_ROLE: + setDefaultRole((String)newValue); + return; + case SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER: + setDoasCurrentCaller(((Boolean)newValue).booleanValue()); + return; + case SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER: + setUseContextHandler(((Boolean)newValue).booleanValue()); + return; + } + eDynamicSet(eFeature, newValue); + } + + /** + * + * + * @generated + */ + public void eUnset(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.SECURITY_TYPE__DESCRIPTION: + getDescription().clear(); + return; + case SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL: + setDefaultPrincipal((DefaultPrincipalType)null); + return; + case SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS: + setRoleMappings((RoleMappingsType)null); + return; + case SecurityPackage.SECURITY_TYPE__DEFAULT_ROLE: + setDefaultRole(DEFAULT_ROLE_EDEFAULT); + return; + case SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER: + unsetDoasCurrentCaller(); + return; + case SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER: + unsetUseContextHandler(); + return; + } + eDynamicUnset(eFeature); + } + + /** + * + * + * @generated + */ + public boolean eIsSet(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.SECURITY_TYPE__DESCRIPTION: + return description != null && !description.isEmpty(); + case SecurityPackage.SECURITY_TYPE__DEFAULT_PRINCIPAL: + return defaultPrincipal != null; + case SecurityPackage.SECURITY_TYPE__ROLE_MAPPINGS: + return roleMappings != null; + case SecurityPackage.SECURITY_TYPE__DEFAULT_ROLE: + return DEFAULT_ROLE_EDEFAULT == null ? defaultRole != null : !DEFAULT_ROLE_EDEFAULT.equals(defaultRole); + case SecurityPackage.SECURITY_TYPE__DOAS_CURRENT_CALLER: + return isSetDoasCurrentCaller(); + case SecurityPackage.SECURITY_TYPE__USE_CONTEXT_HANDLER: + return isSetUseContextHandler(); + } + return eDynamicIsSet(eFeature); + } + + /** + * + * + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (defaultRole: "); + result.append(defaultRole); + result.append(", doasCurrentCaller: "); + if (doasCurrentCallerESet) result.append(doasCurrentCaller); else result.append(""); + result.append(", useContextHandler: "); + if (useContextHandlerESet) result.append(useContextHandler); else result.append(""); + result.append(')'); + return result.toString(); + } + +} //SecurityTypeImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityAdapterFactory.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityAdapterFactory.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityAdapterFactory.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityAdapterFactory.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,282 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.xml.ns.security.util; + +import org.apache.geronimo.xml.ns.security.*; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.apache.geronimo.xml.ns.security.SecurityPackage + * @generated + */ +public class SecurityAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SecurityPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SecurityAdapterFactory() { + if (modelPackage == null) { + modelPackage = SecurityPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch the delegates to the createXXX methods. + * + * + * @generated + */ + protected SecuritySwitch modelSwitch = + new SecuritySwitch() { + public Object caseDefaultPrincipalType(DefaultPrincipalType object) { + return createDefaultPrincipalTypeAdapter(); + } + public Object caseDescriptionType(DescriptionType object) { + return createDescriptionTypeAdapter(); + } + public Object caseDistinguishedNameType(DistinguishedNameType object) { + return createDistinguishedNameTypeAdapter(); + } + public Object caseDocumentRoot(DocumentRoot object) { + return createDocumentRootAdapter(); + } + public Object caseNamedUsernamePasswordCredentialType(NamedUsernamePasswordCredentialType object) { + return createNamedUsernamePasswordCredentialTypeAdapter(); + } + public Object casePrincipalType(PrincipalType object) { + return createPrincipalTypeAdapter(); + } + public Object caseRealmType(RealmType object) { + return createRealmTypeAdapter(); + } + public Object caseRoleMappingsType(RoleMappingsType object) { + return createRoleMappingsTypeAdapter(); + } + public Object caseRoleType(RoleType object) { + return createRoleTypeAdapter(); + } + public Object caseSecurityType(SecurityType object) { + return createSecurityTypeAdapter(); + } + public Object defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + public Adapter createAdapter(Notifier target) { + return (Adapter)modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType Default Principal Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType + * @generated + */ + public Adapter createDefaultPrincipalTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.DescriptionType Description Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.DescriptionType + * @generated + */ + public Adapter createDescriptionTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.DistinguishedNameType Distinguished Name Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.DistinguishedNameType + * @generated + */ + public Adapter createDistinguishedNameTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.DocumentRoot Document Root}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot + * @generated + */ + public Adapter createDocumentRootAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType Named Username Password Credential Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType + * @generated + */ + public Adapter createNamedUsernamePasswordCredentialTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.PrincipalType Principal Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.PrincipalType + * @generated + */ + public Adapter createPrincipalTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.RealmType Realm Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.RealmType + * @generated + */ + public Adapter createRealmTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.RoleMappingsType Role Mappings Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.RoleMappingsType + * @generated + */ + public Adapter createRoleMappingsTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.RoleType Role Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.RoleType + * @generated + */ + public Adapter createRoleTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.security.SecurityType Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.apache.geronimo.xml.ns.security.SecurityType + * @generated + */ + public Adapter createSecurityTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //SecurityAdapterFactory Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceFactoryImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceFactoryImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceFactoryImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceFactoryImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,62 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.xml.ns.security.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.apache.geronimo.xml.ns.security.util.SecurityResourceImpl + * @generated + */ +public class SecurityResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SecurityResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + public Resource createResource(URI uri) { + XMLResource result = new SecurityResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SecurityResourceFactoryImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/util/SecurityResourceImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,41 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.xml.ns.security.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.apache.geronimo.xml.ns.security.util.SecurityResourceFactoryImpl + * @generated + */ +public class SecurityResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SecurityResourceImpl(URI uri) { + super(uri); + } + +} //SecurityResourceImpl