Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 26553 invoked from network); 14 Sep 2005 19:04:14 -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:14 -0000 Received: (qmail 97816 invoked by uid 500); 14 Sep 2005 19:03:22 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 97761 invoked by uid 500); 14 Sep 2005 19:03:22 -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 97675 invoked by uid 99); 14 Sep 2005 19:03:20 -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:20 -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:02 -0700 Received: (qmail 24364 invoked by uid 65534); 14 Sep 2005 19:02:40 -0000 Message-ID: <20050914190240.24362.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r280909 [31/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/SecurityPackage.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/SecurityPackage.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/SecurityPackage.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/SecurityPackage.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,1154 @@ +/** + * 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; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * + * See http://www.w3.org/XML/1998/namespace.html and + * http://www.w3.org/TR/REC-xml for information about this namespace. + * + * This schema document describes the XML namespace, in a form + * suitable for import by other schema documents. + * + * Note that local names in this namespace are intended to be defined + * only by the World Wide Web Consortium or its subgroups. The + * following names are currently defined in this namespace and should + * not be used with conflicting semantics by any Working Group, + * specification, or document instance: + * + * base (as an attribute name): denotes an attribute whose value + * provides a URI to be used as the base for interpreting any + * relative URIs in the scope of the element on which it + * appears; its value is inherited. This name is reserved + * by virtue of its definition in the XML Base specification. + * + * id (as an attribute name): denotes an attribute whose value + * should be interpreted as if declared to be of type ID. + * The xml:id specification is not yet a W3C Recommendation, + * but this attribute is included here to facilitate experimentation + * with the mechanisms it proposes. Note that it is _not_ included + * in the specialAttrs attribute group. + * + * lang (as an attribute name): denotes an attribute whose value + * is a language code for the natural language of the content of + * any element; its value is inherited. This name is reserved + * by virtue of its definition in the XML specification. + * + * space (as an attribute name): denotes an attribute whose + * value is a keyword indicating what whitespace processing + * discipline is intended for the content of the element; its + * value is inherited. This name is reserved by virtue of its + * definition in the XML specification. + * + * Father (in any context at all): denotes Jon Bosak, the chair of + * the original XML Working Group. This name is reserved by + * the following decision of the W3C XML Plenary and + * XML Coordination groups: + * + * In appreciation for his vision, leadership and dedication + * the W3C XML Plenary on this 10th day of February, 2000 + * reserves for Jon Bosak in perpetuity the XML name + * xml:Father + * + * This schema defines attributes and an attribute group + * suitable for use by + * schemas wishing to allow xml:base, xml:lang or xml:space attributes + * on elements they define. + * + * To enable this, such a schema must import this schema + * for the XML namespace, e.g. as follows: + * <schema . . .> + * . . . + * <import namespace="http://www.w3.org/XML/1998/namespace" + * schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> + * + * Subsequently, qualified reference to any of the attributes + * or the group defined below will have the desired effect, e.g. + * + * <type . . .> + * . . . + * <attributeGroup ref="xml:specialAttrs"/> + * + * will define a type which will schema-validate an instance + * element with any of those attributes + * In keeping with the XML Schema WG's standard versioning + * policy, this schema document will persist at + * http://www.w3.org/2004/10/xml.xsd. + * At the date of issue it can also be found at + * http://www.w3.org/2001/xml.xsd. + * The schema document at that URI may however change in the future, + * in order to remain compatible with the latest version of XML Schema + * itself, or with the XML namespace itself. In other words, if the XML + * Schema or XML namespaces change, the version of this document at + * http://www.w3.org/2001/xml.xsd will change + * accordingly; the version at + * http://www.w3.org/2004/10/xml.xsd will not change. + * + * + * @see org.apache.geronimo.xml.ns.security.SecurityFactory + * @model kind="package" + * @generated + */ +public interface SecurityPackage extends EPackage{ + /** + * The package name. + * + * + * @generated + */ + String eNAME = "security"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://geronimo.apache.org/xml/ns/security"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "security"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SecurityPackage eINSTANCE = org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl.init(); + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl Default Principal Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getDefaultPrincipalType() + * @generated + */ + int DEFAULT_PRINCIPAL_TYPE = 0; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int DEFAULT_PRINCIPAL_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Principal' containment reference. + * + * + * @generated + * @ordered + */ + int DEFAULT_PRINCIPAL_TYPE__PRINCIPAL = 1; + + /** + * The feature id for the 'Named Username Password Credential' containment reference list. + * + * + * @generated + * @ordered + */ + int DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL = 2; + + /** + * The feature id for the 'Realm Name' attribute. + * + * + * @generated + * @ordered + */ + int DEFAULT_PRINCIPAL_TYPE__REALM_NAME = 3; + + /** + * The number of structural features of the the 'Default Principal Type' class. + * + * + * @generated + * @ordered + */ + int DEFAULT_PRINCIPAL_TYPE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.DescriptionTypeImpl Description Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.DescriptionTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getDescriptionType() + * @generated + */ + int DESCRIPTION_TYPE = 1; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + int DESCRIPTION_TYPE__VALUE = 0; + + /** + * The feature id for the 'Lang' attribute. + * + * + * @generated + * @ordered + */ + int DESCRIPTION_TYPE__LANG = 1; + + /** + * The number of structural features of the the 'Description Type' class. + * + * + * @generated + * @ordered + */ + int DESCRIPTION_TYPE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.DistinguishedNameTypeImpl Distinguished Name Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.DistinguishedNameTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getDistinguishedNameType() + * @generated + */ + int DISTINGUISHED_NAME_TYPE = 2; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int DISTINGUISHED_NAME_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Designated Run As' attribute. + * + * + * @generated + * @ordered + */ + int DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int DISTINGUISHED_NAME_TYPE__NAME = 2; + + /** + * The number of structural features of the the 'Distinguished Name Type' class. + * + * + * @generated + * @ordered + */ + int DISTINGUISHED_NAME_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl Document Root}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getDocumentRoot() + * @generated + */ + int DOCUMENT_ROOT = 3; + + /** + * The feature id for the 'Mixed' attribute list. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT__MIXED = 0; + + /** + * The feature id for the 'XMLNS Prefix Map' map. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; + + /** + * The feature id for the 'XSI Schema Location' map. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; + + /** + * The feature id for the 'Default Principal' containment reference. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT__DEFAULT_PRINCIPAL = 3; + + /** + * The feature id for the 'Security' containment reference. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT__SECURITY = 4; + + /** + * The number of structural features of the the 'Document Root' class. + * + * + * @generated + * @ordered + */ + int DOCUMENT_ROOT_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl Named Username Password Credential Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getNamedUsernamePasswordCredentialType() + * @generated + */ + int NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE = 4; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME = 0; + + /** + * The feature id for the 'Username' attribute. + * + * + * @generated + * @ordered + */ + int NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME = 1; + + /** + * The feature id for the 'Password' attribute. + * + * + * @generated + * @ordered + */ + int NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD = 2; + + /** + * The number of structural features of the the 'Named Username Password Credential Type' class. + * + * + * @generated + * @ordered + */ + int NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl Principal Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getPrincipalType() + * @generated + */ + int PRINCIPAL_TYPE = 5; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int PRINCIPAL_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Class' attribute. + * + * + * @generated + * @ordered + */ + int PRINCIPAL_TYPE__CLASS = 1; + + /** + * The feature id for the 'Designated Run As' attribute. + * + * + * @generated + * @ordered + */ + int PRINCIPAL_TYPE__DESIGNATED_RUN_AS = 2; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PRINCIPAL_TYPE__NAME = 3; + + /** + * The number of structural features of the the 'Principal Type' class. + * + * + * @generated + * @ordered + */ + int PRINCIPAL_TYPE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl Realm Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getRealmType() + * @generated + */ + int REALM_TYPE = 6; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int REALM_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Principal' containment reference list. + * + * + * @generated + * @ordered + */ + int REALM_TYPE__PRINCIPAL = 1; + + /** + * The feature id for the 'Realm Name' attribute. + * + * + * @generated + * @ordered + */ + int REALM_TYPE__REALM_NAME = 2; + + /** + * The number of structural features of the the 'Realm Type' class. + * + * + * @generated + * @ordered + */ + int REALM_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.RoleMappingsTypeImpl Role Mappings Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.RoleMappingsTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getRoleMappingsType() + * @generated + */ + int ROLE_MAPPINGS_TYPE = 7; + + /** + * The feature id for the 'Role' containment reference list. + * + * + * @generated + * @ordered + */ + int ROLE_MAPPINGS_TYPE__ROLE = 0; + + /** + * The number of structural features of the the 'Role Mappings Type' class. + * + * + * @generated + * @ordered + */ + int ROLE_MAPPINGS_TYPE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl Role Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getRoleType() + * @generated + */ + int ROLE_TYPE = 8; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int ROLE_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Realm' containment reference list. + * + * + * @generated + * @ordered + */ + int ROLE_TYPE__REALM = 1; + + /** + * The feature id for the 'Distinguished Name' containment reference list. + * + * + * @generated + * @ordered + */ + int ROLE_TYPE__DISTINGUISHED_NAME = 2; + + /** + * The feature id for the 'Role Name' attribute. + * + * + * @generated + * @ordered + */ + int ROLE_TYPE__ROLE_NAME = 3; + + /** + * The number of structural features of the the 'Role Type' class. + * + * + * @generated + * @ordered + */ + int ROLE_TYPE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl Type}' class. + * + * + * @see org.apache.geronimo.xml.ns.security.impl.SecurityTypeImpl + * @see org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl#getSecurityType() + * @generated + */ + int SECURITY_TYPE = 9; + + /** + * The feature id for the 'Description' containment reference list. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the 'Default Principal' containment reference. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__DEFAULT_PRINCIPAL = 1; + + /** + * The feature id for the 'Role Mappings' containment reference. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__ROLE_MAPPINGS = 2; + + /** + * The feature id for the 'Default Role' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__DEFAULT_ROLE = 3; + + /** + * The feature id for the 'Doas Current Caller' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__DOAS_CURRENT_CALLER = 4; + + /** + * The feature id for the 'Use Context Handler' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE__USE_CONTEXT_HANDLER = 5; + + /** + * The number of structural features of the the 'Type' class. + * + * + * @generated + * @ordered + */ + int SECURITY_TYPE_FEATURE_COUNT = 6; + + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType Default Principal Type}'. + * + * + * @return the meta object for class 'Default Principal Type'. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType + * @generated + */ + EClass getDefaultPrincipalType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getDescription() + * @see #getDefaultPrincipalType() + * @generated + */ + EReference getDefaultPrincipalType_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getPrincipal Principal}'. + * + * + * @return the meta object for the containment reference 'Principal'. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getPrincipal() + * @see #getDefaultPrincipalType() + * @generated + */ + EReference getDefaultPrincipalType_Principal(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getNamedUsernamePasswordCredential Named Username Password Credential}'. + * + * + * @return the meta object for the containment reference list 'Named Username Password Credential'. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getNamedUsernamePasswordCredential() + * @see #getDefaultPrincipalType() + * @generated + */ + EReference getDefaultPrincipalType_NamedUsernamePasswordCredential(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getRealmName Realm Name}'. + * + * + * @return the meta object for the attribute 'Realm Name'. + * @see org.apache.geronimo.xml.ns.security.DefaultPrincipalType#getRealmName() + * @see #getDefaultPrincipalType() + * @generated + */ + EAttribute getDefaultPrincipalType_RealmName(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.DescriptionType Description Type}'. + * + * + * @return the meta object for class 'Description Type'. + * @see org.apache.geronimo.xml.ns.security.DescriptionType + * @generated + */ + EClass getDescriptionType(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.DescriptionType#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.apache.geronimo.xml.ns.security.DescriptionType#getValue() + * @see #getDescriptionType() + * @generated + */ + EAttribute getDescriptionType_Value(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.DescriptionType#getLang Lang}'. + * + * + * @return the meta object for the attribute 'Lang'. + * @see org.apache.geronimo.xml.ns.security.DescriptionType#getLang() + * @see #getDescriptionType() + * @generated + */ + EAttribute getDescriptionType_Lang(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.DistinguishedNameType Distinguished Name Type}'. + * + * + * @return the meta object for class 'Distinguished Name Type'. + * @see org.apache.geronimo.xml.ns.security.DistinguishedNameType + * @generated + */ + EClass getDistinguishedNameType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.DistinguishedNameType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.DistinguishedNameType#getDescription() + * @see #getDistinguishedNameType() + * @generated + */ + EReference getDistinguishedNameType_Description(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.DistinguishedNameType#isDesignatedRunAs Designated Run As}'. + * + * + * @return the meta object for the attribute 'Designated Run As'. + * @see org.apache.geronimo.xml.ns.security.DistinguishedNameType#isDesignatedRunAs() + * @see #getDistinguishedNameType() + * @generated + */ + EAttribute getDistinguishedNameType_DesignatedRunAs(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.DistinguishedNameType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.apache.geronimo.xml.ns.security.DistinguishedNameType#getName() + * @see #getDistinguishedNameType() + * @generated + */ + EAttribute getDistinguishedNameType_Name(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.DocumentRoot Document Root}'. + * + * + * @return the meta object for class 'Document Root'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot + * @generated + */ + EClass getDocumentRoot(); + + /** + * Returns the meta object for the attribute list '{@link org.apache.geronimo.xml.ns.security.DocumentRoot#getMixed Mixed}'. + * + * + * @return the meta object for the attribute list 'Mixed'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot#getMixed() + * @see #getDocumentRoot() + * @generated + */ + EAttribute getDocumentRoot_Mixed(); + + /** + * Returns the meta object for the map '{@link org.apache.geronimo.xml.ns.security.DocumentRoot#getXMLNSPrefixMap XMLNS Prefix Map}'. + * + * + * @return the meta object for the map 'XMLNS Prefix Map'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot#getXMLNSPrefixMap() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_XMLNSPrefixMap(); + + /** + * Returns the meta object for the map '{@link org.apache.geronimo.xml.ns.security.DocumentRoot#getXSISchemaLocation XSI Schema Location}'. + * + * + * @return the meta object for the map 'XSI Schema Location'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot#getXSISchemaLocation() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_XSISchemaLocation(); + + /** + * Returns the meta object for the containment reference '{@link org.apache.geronimo.xml.ns.security.DocumentRoot#getDefaultPrincipal Default Principal}'. + * + * + * @return the meta object for the containment reference 'Default Principal'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot#getDefaultPrincipal() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_DefaultPrincipal(); + + /** + * Returns the meta object for the containment reference '{@link org.apache.geronimo.xml.ns.security.DocumentRoot#getSecurity Security}'. + * + * + * @return the meta object for the containment reference 'Security'. + * @see org.apache.geronimo.xml.ns.security.DocumentRoot#getSecurity() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_Security(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType Named Username Password Credential Type}'. + * + * + * @return the meta object for class 'Named Username Password Credential Type'. + * @see org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType + * @generated + */ + EClass getNamedUsernamePasswordCredentialType(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getName() + * @see #getNamedUsernamePasswordCredentialType() + * @generated + */ + EAttribute getNamedUsernamePasswordCredentialType_Name(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getUsername Username}'. + * + * + * @return the meta object for the attribute 'Username'. + * @see org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getUsername() + * @see #getNamedUsernamePasswordCredentialType() + * @generated + */ + EAttribute getNamedUsernamePasswordCredentialType_Username(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getPassword Password}'. + * + * + * @return the meta object for the attribute 'Password'. + * @see org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType#getPassword() + * @see #getNamedUsernamePasswordCredentialType() + * @generated + */ + EAttribute getNamedUsernamePasswordCredentialType_Password(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.PrincipalType Principal Type}'. + * + * + * @return the meta object for class 'Principal Type'. + * @see org.apache.geronimo.xml.ns.security.PrincipalType + * @generated + */ + EClass getPrincipalType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.PrincipalType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.PrincipalType#getDescription() + * @see #getPrincipalType() + * @generated + */ + EReference getPrincipalType_Description(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.PrincipalType#getClass_ Class}'. + * + * + * @return the meta object for the attribute 'Class'. + * @see org.apache.geronimo.xml.ns.security.PrincipalType#getClass_() + * @see #getPrincipalType() + * @generated + */ + EAttribute getPrincipalType_Class(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.PrincipalType#isDesignatedRunAs Designated Run As}'. + * + * + * @return the meta object for the attribute 'Designated Run As'. + * @see org.apache.geronimo.xml.ns.security.PrincipalType#isDesignatedRunAs() + * @see #getPrincipalType() + * @generated + */ + EAttribute getPrincipalType_DesignatedRunAs(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.PrincipalType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.apache.geronimo.xml.ns.security.PrincipalType#getName() + * @see #getPrincipalType() + * @generated + */ + EAttribute getPrincipalType_Name(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.RealmType Realm Type}'. + * + * + * @return the meta object for class 'Realm Type'. + * @see org.apache.geronimo.xml.ns.security.RealmType + * @generated + */ + EClass getRealmType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RealmType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.RealmType#getDescription() + * @see #getRealmType() + * @generated + */ + EReference getRealmType_Description(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RealmType#getPrincipal Principal}'. + * + * + * @return the meta object for the containment reference list 'Principal'. + * @see org.apache.geronimo.xml.ns.security.RealmType#getPrincipal() + * @see #getRealmType() + * @generated + */ + EReference getRealmType_Principal(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.RealmType#getRealmName Realm Name}'. + * + * + * @return the meta object for the attribute 'Realm Name'. + * @see org.apache.geronimo.xml.ns.security.RealmType#getRealmName() + * @see #getRealmType() + * @generated + */ + EAttribute getRealmType_RealmName(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.RoleMappingsType Role Mappings Type}'. + * + * + * @return the meta object for class 'Role Mappings Type'. + * @see org.apache.geronimo.xml.ns.security.RoleMappingsType + * @generated + */ + EClass getRoleMappingsType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RoleMappingsType#getRole Role}'. + * + * + * @return the meta object for the containment reference list 'Role'. + * @see org.apache.geronimo.xml.ns.security.RoleMappingsType#getRole() + * @see #getRoleMappingsType() + * @generated + */ + EReference getRoleMappingsType_Role(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.RoleType Role Type}'. + * + * + * @return the meta object for class 'Role Type'. + * @see org.apache.geronimo.xml.ns.security.RoleType + * @generated + */ + EClass getRoleType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RoleType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.RoleType#getDescription() + * @see #getRoleType() + * @generated + */ + EReference getRoleType_Description(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RoleType#getRealm Realm}'. + * + * + * @return the meta object for the containment reference list 'Realm'. + * @see org.apache.geronimo.xml.ns.security.RoleType#getRealm() + * @see #getRoleType() + * @generated + */ + EReference getRoleType_Realm(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.RoleType#getDistinguishedName Distinguished Name}'. + * + * + * @return the meta object for the containment reference list 'Distinguished Name'. + * @see org.apache.geronimo.xml.ns.security.RoleType#getDistinguishedName() + * @see #getRoleType() + * @generated + */ + EReference getRoleType_DistinguishedName(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.RoleType#getRoleName Role Name}'. + * + * + * @return the meta object for the attribute 'Role Name'. + * @see org.apache.geronimo.xml.ns.security.RoleType#getRoleName() + * @see #getRoleType() + * @generated + */ + EAttribute getRoleType_RoleName(); + + /** + * Returns the meta object for class '{@link org.apache.geronimo.xml.ns.security.SecurityType Type}'. + * + * + * @return the meta object for class 'Type'. + * @see org.apache.geronimo.xml.ns.security.SecurityType + * @generated + */ + EClass getSecurityType(); + + /** + * Returns the meta object for the containment reference list '{@link org.apache.geronimo.xml.ns.security.SecurityType#getDescription Description}'. + * + * + * @return the meta object for the containment reference list 'Description'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#getDescription() + * @see #getSecurityType() + * @generated + */ + EReference getSecurityType_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.apache.geronimo.xml.ns.security.SecurityType#getDefaultPrincipal Default Principal}'. + * + * + * @return the meta object for the containment reference 'Default Principal'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#getDefaultPrincipal() + * @see #getSecurityType() + * @generated + */ + EReference getSecurityType_DefaultPrincipal(); + + /** + * Returns the meta object for the containment reference '{@link org.apache.geronimo.xml.ns.security.SecurityType#getRoleMappings Role Mappings}'. + * + * + * @return the meta object for the containment reference 'Role Mappings'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#getRoleMappings() + * @see #getSecurityType() + * @generated + */ + EReference getSecurityType_RoleMappings(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.SecurityType#getDefaultRole Default Role}'. + * + * + * @return the meta object for the attribute 'Default Role'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#getDefaultRole() + * @see #getSecurityType() + * @generated + */ + EAttribute getSecurityType_DefaultRole(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.SecurityType#isDoasCurrentCaller Doas Current Caller}'. + * + * + * @return the meta object for the attribute 'Doas Current Caller'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#isDoasCurrentCaller() + * @see #getSecurityType() + * @generated + */ + EAttribute getSecurityType_DoasCurrentCaller(); + + /** + * Returns the meta object for the attribute '{@link org.apache.geronimo.xml.ns.security.SecurityType#isUseContextHandler Use Context Handler}'. + * + * + * @return the meta object for the attribute 'Use Context Handler'. + * @see org.apache.geronimo.xml.ns.security.SecurityType#isUseContextHandler() + * @see #getSecurityType() + * @generated + */ + EAttribute getSecurityType_UseContextHandler(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SecurityFactory getSecurityFactory(); + +} //SecurityPackage Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/SecurityType.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/SecurityType.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/SecurityType.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/SecurityType.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,270 @@ +/** + * 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; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Type'. + * + * + * + * + * Security entries + * + * If this element is present, all web and EJB modules MUST make the + * appropriate access checks as outlined in the JACC spec. + * + * + * + *

+ * The following features are supported: + *

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

+ * + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType() + * @model extendedMetaData="name='securityType' kind='elementOnly'" + * @generated + */ +public interface SecurityType extends EObject{ + /** + * Returns the value of the 'Description' containment reference list. + * The list contents are of type {@link org.apache.geronimo.xml.ns.security.DescriptionType}. + * + *

+ * If the meaning of the 'Description' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' containment reference list. + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_Description() + * @model type="org.apache.geronimo.xml.ns.security.DescriptionType" containment="true" resolveProxies="false" + * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" + * @generated + */ + EList getDescription(); + + /** + * Returns the value of the 'Default Principal' containment reference. + * + *

+ * If the meaning of the 'Default Principal' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Default Principal' containment reference. + * @see #setDefaultPrincipal(DefaultPrincipalType) + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_DefaultPrincipal() + * @model containment="true" resolveProxies="false" required="true" + * extendedMetaData="kind='element' name='default-principal' namespace='##targetNamespace'" + * @generated + */ + DefaultPrincipalType getDefaultPrincipal(); + + /** + * Sets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#getDefaultPrincipal Default Principal}' containment reference. + * + * + * @param value the new value of the 'Default Principal' containment reference. + * @see #getDefaultPrincipal() + * @generated + */ + void setDefaultPrincipal(DefaultPrincipalType value); + + /** + * Returns the value of the 'Role Mappings' containment reference. + * + *

+ * If the meaning of the 'Role Mappings' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Role Mappings' containment reference. + * @see #setRoleMappings(RoleMappingsType) + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_RoleMappings() + * @model containment="true" resolveProxies="false" + * extendedMetaData="kind='element' name='role-mappings' namespace='##targetNamespace'" + * @generated + */ + RoleMappingsType getRoleMappings(); + + /** + * Sets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#getRoleMappings Role Mappings}' containment reference. + * + * + * @param value the new value of the 'Role Mappings' containment reference. + * @see #getRoleMappings() + * @generated + */ + void setRoleMappings(RoleMappingsType value); + + /** + * Returns the value of the 'Default Role' attribute. + * + * + * + * + * Used by the the Deployer to assign method permissions for + * all of the unspecified methods, either by assigning them + * to security roles, or by marking them as unchecked. If + * the value of default-role is empty, then the unspecified + * methods are marked unchecked + * + * + * @return the value of the 'Default Role' attribute. + * @see #setDefaultRole(String) + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_DefaultRole() + * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='default-role'" + * @generated + */ + String getDefaultRole(); + + /** + * Sets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#getDefaultRole Default Role}' attribute. + * + * + * @param value the new value of the 'Default Role' attribute. + * @see #getDefaultRole() + * @generated + */ + void setDefaultRole(String value); + + /** + * Returns the value of the 'Doas Current Caller' attribute. + * The default value is "false". + * + * + * + * + * Set this attribute to "true" if the work is to be performed + * as the calling Subject. + * + * + * @return the value of the 'Doas Current Caller' attribute. + * @see #isSetDoasCurrentCaller() + * @see #unsetDoasCurrentCaller() + * @see #setDoasCurrentCaller(boolean) + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_DoasCurrentCaller() + * @model default="false" unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='doas-current-caller'" + * @generated + */ + boolean isDoasCurrentCaller(); + + /** + * Sets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isDoasCurrentCaller Doas Current Caller}' attribute. + * + * + * @param value the new value of the 'Doas Current Caller' attribute. + * @see #isSetDoasCurrentCaller() + * @see #unsetDoasCurrentCaller() + * @see #isDoasCurrentCaller() + * @generated + */ + void setDoasCurrentCaller(boolean value); + + /** + * Unsets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isDoasCurrentCaller Doas Current Caller}' attribute. + * + * + * @see #isSetDoasCurrentCaller() + * @see #isDoasCurrentCaller() + * @see #setDoasCurrentCaller(boolean) + * @generated + */ + void unsetDoasCurrentCaller(); + + /** + * Returns whether the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isDoasCurrentCaller Doas Current Caller}' attribute is set. + * + * + * @return whether the value of the 'Doas Current Caller' attribute is set. + * @see #unsetDoasCurrentCaller() + * @see #isDoasCurrentCaller() + * @see #setDoasCurrentCaller(boolean) + * @generated + */ + boolean isSetDoasCurrentCaller(); + + /** + * Returns the value of the 'Use Context Handler' attribute. + * The default value is "false". + * + * + * + * + * Set this attribute to "true" if the installed JACC policy + * contexts will use PolicyContextHandlers. + * + * + * @return the value of the 'Use Context Handler' attribute. + * @see #isSetUseContextHandler() + * @see #unsetUseContextHandler() + * @see #setUseContextHandler(boolean) + * @see org.apache.geronimo.xml.ns.security.SecurityPackage#getSecurityType_UseContextHandler() + * @model default="false" unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='use-context-handler'" + * @generated + */ + boolean isUseContextHandler(); + + /** + * Sets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isUseContextHandler Use Context Handler}' attribute. + * + * + * @param value the new value of the 'Use Context Handler' attribute. + * @see #isSetUseContextHandler() + * @see #unsetUseContextHandler() + * @see #isUseContextHandler() + * @generated + */ + void setUseContextHandler(boolean value); + + /** + * Unsets the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isUseContextHandler Use Context Handler}' attribute. + * + * + * @see #isSetUseContextHandler() + * @see #isUseContextHandler() + * @see #setUseContextHandler(boolean) + * @generated + */ + void unsetUseContextHandler(); + + /** + * Returns whether the value of the '{@link org.apache.geronimo.xml.ns.security.SecurityType#isUseContextHandler Use Context Handler}' attribute is set. + * + * + * @return whether the value of the 'Use Context Handler' attribute is set. + * @see #unsetUseContextHandler() + * @see #isUseContextHandler() + * @see #setUseContextHandler(boolean) + * @generated + */ + boolean isSetUseContextHandler(); + +} // SecurityType Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DefaultPrincipalTypeImpl.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/DefaultPrincipalTypeImpl.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/DefaultPrincipalTypeImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DefaultPrincipalTypeImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,336 @@ +/** + * 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.NamedUsernamePasswordCredentialType; +import org.apache.geronimo.xml.ns.security.PrincipalType; +import org.apache.geronimo.xml.ns.security.SecurityPackage; + +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 'Default Principal Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl#getDescription Description}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl#getPrincipal Principal}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl#getNamedUsernamePasswordCredential Named Username Password Credential}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DefaultPrincipalTypeImpl#getRealmName Realm Name}
  • + *
+ *

+ * + * @generated + */ +public class DefaultPrincipalTypeImpl extends EObjectImpl implements DefaultPrincipalType { + /** + * 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 #getPrincipal() Principal}' containment reference. + * + * + * @see #getPrincipal() + * @generated + * @ordered + */ + protected PrincipalType principal = null; + + /** + * The cached value of the '{@link #getNamedUsernamePasswordCredential() Named Username Password Credential}' containment reference list. + * + * + * @see #getNamedUsernamePasswordCredential() + * @generated + * @ordered + */ + protected EList namedUsernamePasswordCredential = null; + + /** + * The default value of the '{@link #getRealmName() Realm Name}' attribute. + * + * + * @see #getRealmName() + * @generated + * @ordered + */ + protected static final String REALM_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRealmName() Realm Name}' attribute. + * + * + * @see #getRealmName() + * @generated + * @ordered + */ + protected String realmName = REALM_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected DefaultPrincipalTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + protected EClass eStaticClass() { + return SecurityPackage.eINSTANCE.getDefaultPrincipalType(); + } + + /** + * + * + * @generated + */ + public EList getDescription() { + if (description == null) { + description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION); + } + return description; + } + + /** + * + * + * @generated + */ + public PrincipalType getPrincipal() { + return principal; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPrincipal(PrincipalType newPrincipal, NotificationChain msgs) { + PrincipalType oldPrincipal = principal; + principal = newPrincipal; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL, oldPrincipal, newPrincipal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setPrincipal(PrincipalType newPrincipal) { + if (newPrincipal != principal) { + NotificationChain msgs = null; + if (principal != null) + msgs = ((InternalEObject)principal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL, null, msgs); + if (newPrincipal != null) + msgs = ((InternalEObject)newPrincipal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL, null, msgs); + msgs = basicSetPrincipal(newPrincipal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL, newPrincipal, newPrincipal)); + } + + /** + * + * + * @generated + */ + public EList getNamedUsernamePasswordCredential() { + if (namedUsernamePasswordCredential == null) { + namedUsernamePasswordCredential = new EObjectContainmentEList(NamedUsernamePasswordCredentialType.class, this, SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL); + } + return namedUsernamePasswordCredential; + } + + /** + * + * + * @generated + */ + public String getRealmName() { + return realmName; + } + + /** + * + * + * @generated + */ + public void setRealmName(String newRealmName) { + String oldRealmName = realmName; + realmName = newRealmName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.DEFAULT_PRINCIPAL_TYPE__REALM_NAME, oldRealmName, realmName)); + } + + /** + * + * + * @generated + */ + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { + if (featureID >= 0) { + switch (eDerivedStructuralFeatureID(featureID, baseClass)) { + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION: + return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL: + return basicSetPrincipal(null, msgs); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL: + return ((InternalEList)getNamedUsernamePasswordCredential()).basicRemove(otherEnd, 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.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION: + return getDescription(); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL: + return getPrincipal(); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL: + return getNamedUsernamePasswordCredential(); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__REALM_NAME: + return getRealmName(); + } + return eDynamicGet(eFeature, resolve); + } + + /** + * + * + * @generated + */ + public void eSet(EStructuralFeature eFeature, Object newValue) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION: + getDescription().clear(); + getDescription().addAll((Collection)newValue); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL: + setPrincipal((PrincipalType)newValue); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL: + getNamedUsernamePasswordCredential().clear(); + getNamedUsernamePasswordCredential().addAll((Collection)newValue); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__REALM_NAME: + setRealmName((String)newValue); + return; + } + eDynamicSet(eFeature, newValue); + } + + /** + * + * + * @generated + */ + public void eUnset(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION: + getDescription().clear(); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL: + setPrincipal((PrincipalType)null); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL: + getNamedUsernamePasswordCredential().clear(); + return; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__REALM_NAME: + setRealmName(REALM_NAME_EDEFAULT); + return; + } + eDynamicUnset(eFeature); + } + + /** + * + * + * @generated + */ + public boolean eIsSet(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__DESCRIPTION: + return description != null && !description.isEmpty(); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__PRINCIPAL: + return principal != null; + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__NAMED_USERNAME_PASSWORD_CREDENTIAL: + return namedUsernamePasswordCredential != null && !namedUsernamePasswordCredential.isEmpty(); + case SecurityPackage.DEFAULT_PRINCIPAL_TYPE__REALM_NAME: + return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName); + } + return eDynamicIsSet(eFeature); + } + + /** + * + * + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (realmName: "); + result.append(realmName); + result.append(')'); + return result.toString(); + } + +} //DefaultPrincipalTypeImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DescriptionTypeImpl.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/DescriptionTypeImpl.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/DescriptionTypeImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DescriptionTypeImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,225 @@ +/** + * 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.security.DescriptionType; +import org.apache.geronimo.xml.ns.security.SecurityPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * + * An implementation of the model object 'Description Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DescriptionTypeImpl#getValue Value}
  • + *
  • {@link org.apache.geronimo.xml.ns.security.impl.DescriptionTypeImpl#getLang Lang}
  • + *
+ *

+ * + * @generated + */ +public class DescriptionTypeImpl extends EObjectImpl implements DescriptionType { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getLang() Lang}' attribute. + * + * + * @see #getLang() + * @generated + * @ordered + */ + protected static final String LANG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLang() Lang}' attribute. + * + * + * @see #getLang() + * @generated + * @ordered + */ + protected String lang = LANG_EDEFAULT; + + /** + * + * + * @generated + */ + protected DescriptionTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + protected EClass eStaticClass() { + return SecurityPackage.eINSTANCE.getDescriptionType(); + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.DESCRIPTION_TYPE__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + public String getLang() { + return lang; + } + + /** + * + * + * @generated + */ + public void setLang(String newLang) { + String oldLang = lang; + lang = newLang; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.DESCRIPTION_TYPE__LANG, oldLang, lang)); + } + + /** + * + * + * @generated + */ + public Object eGet(EStructuralFeature eFeature, boolean resolve) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DESCRIPTION_TYPE__VALUE: + return getValue(); + case SecurityPackage.DESCRIPTION_TYPE__LANG: + return getLang(); + } + return eDynamicGet(eFeature, resolve); + } + + /** + * + * + * @generated + */ + public void eSet(EStructuralFeature eFeature, Object newValue) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DESCRIPTION_TYPE__VALUE: + setValue((String)newValue); + return; + case SecurityPackage.DESCRIPTION_TYPE__LANG: + setLang((String)newValue); + return; + } + eDynamicSet(eFeature, newValue); + } + + /** + * + * + * @generated + */ + public void eUnset(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DESCRIPTION_TYPE__VALUE: + setValue(VALUE_EDEFAULT); + return; + case SecurityPackage.DESCRIPTION_TYPE__LANG: + setLang(LANG_EDEFAULT); + return; + } + eDynamicUnset(eFeature); + } + + /** + * + * + * @generated + */ + public boolean eIsSet(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case SecurityPackage.DESCRIPTION_TYPE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case SecurityPackage.DESCRIPTION_TYPE__LANG: + return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); + } + return eDynamicIsSet(eFeature); + } + + /** + * + * + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(", lang: "); + result.append(lang); + result.append(')'); + return result.toString(); + } + +} //DescriptionTypeImpl