Return-Path:
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:
+ *
+ *
+ *
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