diff options
Diffstat (limited to 'plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl')
20 files changed, 0 insertions, 10584 deletions
diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/AuthConstraintImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/AuthConstraintImpl.java deleted file mode 100644 index e51e883da..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/AuthConstraintImpl.java +++ /dev/null @@ -1,258 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: AuthConstraintImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.EDataTypeEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.core.Description; - -import org.eclipse.jst.javaee.web.AuthConstraint; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Auth Constraint</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.AuthConstraintImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.AuthConstraintImpl#getRoleNames <em>Role Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.AuthConstraintImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class AuthConstraintImpl extends EObjectImpl implements AuthConstraint { - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getRoleNames() <em>Role Names</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRoleNames() - * @generated - * @ordered - */ - protected EList roleNames = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AuthConstraintImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.AUTH_CONSTRAINT; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getRoleNames() { - if (roleNames == null) { - roleNames = new EDataTypeEList(String.class, this, WebPackage.AUTH_CONSTRAINT__ROLE_NAMES); - } - return roleNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.AUTH_CONSTRAINT__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.AUTH_CONSTRAINT__ROLE_NAMES: - return getRoleNames(); - case WebPackage.AUTH_CONSTRAINT__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.AUTH_CONSTRAINT__ROLE_NAMES: - getRoleNames().clear(); - getRoleNames().addAll((Collection)newValue); - return; - case WebPackage.AUTH_CONSTRAINT__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.AUTH_CONSTRAINT__ROLE_NAMES: - getRoleNames().clear(); - return; - case WebPackage.AUTH_CONSTRAINT__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.AUTH_CONSTRAINT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebPackage.AUTH_CONSTRAINT__ROLE_NAMES: - return roleNames != null && !roleNames.isEmpty(); - case WebPackage.AUTH_CONSTRAINT__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (roleNames: "); //$NON-NLS-1$ - result.append(roleNames); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //AuthConstraintImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ErrorPageImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ErrorPageImpl.java deleted file mode 100644 index 0ded8d2b2..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ErrorPageImpl.java +++ /dev/null @@ -1,326 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ErrorPageImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.math.BigInteger; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.ErrorPage; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Error Page</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ErrorPageImpl#getErrorCode <em>Error Code</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ErrorPageImpl#getExceptionType <em>Exception Type</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ErrorPageImpl#getLocation <em>Location</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ErrorPageImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ErrorPageImpl extends EObjectImpl implements ErrorPage { - /** - * The default value of the '{@link #getErrorCode() <em>Error Code</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getErrorCode() - * @generated - * @ordered - */ - protected static final BigInteger ERROR_CODE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getErrorCode() <em>Error Code</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getErrorCode() - * @generated - * @ordered - */ - protected BigInteger errorCode = ERROR_CODE_EDEFAULT; - - /** - * The default value of the '{@link #getExceptionType() <em>Exception Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExceptionType() - * @generated - * @ordered - */ - protected static final String EXCEPTION_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExceptionType() <em>Exception Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExceptionType() - * @generated - * @ordered - */ - protected String exceptionType = EXCEPTION_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getLocation() <em>Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocation() - * @generated - * @ordered - */ - protected static final String LOCATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocation() - * @generated - * @ordered - */ - protected String location = LOCATION_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ErrorPageImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.ERROR_PAGE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BigInteger getErrorCode() { - return errorCode; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setErrorCode(BigInteger newErrorCode) { - BigInteger oldErrorCode = errorCode; - errorCode = newErrorCode; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.ERROR_PAGE__ERROR_CODE, oldErrorCode, errorCode)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getExceptionType() { - return exceptionType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setExceptionType(String newExceptionType) { - String oldExceptionType = exceptionType; - exceptionType = newExceptionType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.ERROR_PAGE__EXCEPTION_TYPE, oldExceptionType, exceptionType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocation() { - return location; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocation(String newLocation) { - String oldLocation = location; - location = newLocation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.ERROR_PAGE__LOCATION, oldLocation, location)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.ERROR_PAGE__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.ERROR_PAGE__ERROR_CODE: - return getErrorCode(); - case WebPackage.ERROR_PAGE__EXCEPTION_TYPE: - return getExceptionType(); - case WebPackage.ERROR_PAGE__LOCATION: - return getLocation(); - case WebPackage.ERROR_PAGE__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.ERROR_PAGE__ERROR_CODE: - setErrorCode((BigInteger)newValue); - return; - case WebPackage.ERROR_PAGE__EXCEPTION_TYPE: - setExceptionType((String)newValue); - return; - case WebPackage.ERROR_PAGE__LOCATION: - setLocation((String)newValue); - return; - case WebPackage.ERROR_PAGE__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.ERROR_PAGE__ERROR_CODE: - setErrorCode(ERROR_CODE_EDEFAULT); - return; - case WebPackage.ERROR_PAGE__EXCEPTION_TYPE: - setExceptionType(EXCEPTION_TYPE_EDEFAULT); - return; - case WebPackage.ERROR_PAGE__LOCATION: - setLocation(LOCATION_EDEFAULT); - return; - case WebPackage.ERROR_PAGE__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.ERROR_PAGE__ERROR_CODE: - return ERROR_CODE_EDEFAULT == null ? errorCode != null : !ERROR_CODE_EDEFAULT.equals(errorCode); - case WebPackage.ERROR_PAGE__EXCEPTION_TYPE: - return EXCEPTION_TYPE_EDEFAULT == null ? exceptionType != null : !EXCEPTION_TYPE_EDEFAULT.equals(exceptionType); - case WebPackage.ERROR_PAGE__LOCATION: - return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); - case WebPackage.ERROR_PAGE__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (errorCode: "); //$NON-NLS-1$ - result.append(errorCode); - result.append(", exceptionType: "); //$NON-NLS-1$ - result.append(exceptionType); - result.append(", location: "); //$NON-NLS-1$ - result.append(location); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //ErrorPageImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterImpl.java deleted file mode 100644 index 6146eb57c..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterImpl.java +++ /dev/null @@ -1,440 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: FilterImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.core.Description; -import org.eclipse.jst.javaee.core.DisplayName; -import org.eclipse.jst.javaee.core.Icon; -import org.eclipse.jst.javaee.core.ParamValue; - -import org.eclipse.jst.javaee.web.Filter; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Filter</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getFilterName <em>Filter Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getFilterClass <em>Filter Class</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class FilterImpl extends EObjectImpl implements Filter { - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNames() - * @generated - * @ordered - */ - protected EList displayNames = null; - - /** - * The cached value of the '{@link #getIcons() <em>Icons</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIcons() - * @generated - * @ordered - */ - protected EList icons = null; - - /** - * The default value of the '{@link #getFilterName() <em>Filter Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterName() - * @generated - * @ordered - */ - protected static final String FILTER_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFilterName() <em>Filter Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterName() - * @generated - * @ordered - */ - protected String filterName = FILTER_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getFilterClass() <em>Filter Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterClass() - * @generated - * @ordered - */ - protected static final String FILTER_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFilterClass() <em>Filter Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterClass() - * @generated - * @ordered - */ - protected String filterClass = FILTER_CLASS_EDEFAULT; - - /** - * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParams() - * @generated - * @ordered - */ - protected EList initParams = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected FilterImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.FILTER; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebPackage.FILTER__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, WebPackage.FILTER__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getIcons() { - if (icons == null) { - icons = new EObjectContainmentEList(Icon.class, this, WebPackage.FILTER__ICONS); - } - return icons; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFilterName() { - return filterName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFilterName(String newFilterName) { - String oldFilterName = filterName; - filterName = newFilterName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FILTER__FILTER_NAME, oldFilterName, filterName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFilterClass() { - return filterClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFilterClass(String newFilterClass) { - String oldFilterClass = filterClass; - filterClass = newFilterClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FILTER__FILTER_CLASS, oldFilterClass, filterClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(ParamValue.class, this, WebPackage.FILTER__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FILTER__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.FILTER__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebPackage.FILTER__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebPackage.FILTER__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebPackage.FILTER__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.FILTER__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.FILTER__DISPLAY_NAMES: - return getDisplayNames(); - case WebPackage.FILTER__ICONS: - return getIcons(); - case WebPackage.FILTER__FILTER_NAME: - return getFilterName(); - case WebPackage.FILTER__FILTER_CLASS: - return getFilterClass(); - case WebPackage.FILTER__INIT_PARAMS: - return getInitParams(); - case WebPackage.FILTER__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.FILTER__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.FILTER__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebPackage.FILTER__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebPackage.FILTER__FILTER_NAME: - setFilterName((String)newValue); - return; - case WebPackage.FILTER__FILTER_CLASS: - setFilterClass((String)newValue); - return; - case WebPackage.FILTER__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case WebPackage.FILTER__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.FILTER__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.FILTER__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebPackage.FILTER__ICONS: - getIcons().clear(); - return; - case WebPackage.FILTER__FILTER_NAME: - setFilterName(FILTER_NAME_EDEFAULT); - return; - case WebPackage.FILTER__FILTER_CLASS: - setFilterClass(FILTER_CLASS_EDEFAULT); - return; - case WebPackage.FILTER__INIT_PARAMS: - getInitParams().clear(); - return; - case WebPackage.FILTER__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.FILTER__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebPackage.FILTER__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebPackage.FILTER__ICONS: - return icons != null && !icons.isEmpty(); - case WebPackage.FILTER__FILTER_NAME: - return FILTER_NAME_EDEFAULT == null ? filterName != null : !FILTER_NAME_EDEFAULT.equals(filterName); - case WebPackage.FILTER__FILTER_CLASS: - return FILTER_CLASS_EDEFAULT == null ? filterClass != null : !FILTER_CLASS_EDEFAULT.equals(filterClass); - case WebPackage.FILTER__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case WebPackage.FILTER__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (filterName: "); //$NON-NLS-1$ - result.append(filterName); - result.append(", filterClass: "); //$NON-NLS-1$ - result.append(filterClass); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //FilterImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterMappingImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterMappingImpl.java deleted file mode 100644 index 257ff027d..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FilterMappingImpl.java +++ /dev/null @@ -1,358 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: FilterMappingImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EDataTypeEList; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.web.DispatcherType; -import org.eclipse.jst.javaee.web.FilterMapping; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Filter Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getFilterName <em>Filter Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getGroup <em>Group</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getUrlPatterns <em>Url Patterns</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getServletNames <em>Servlet Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getDispatchers <em>Dispatchers</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FilterMappingImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class FilterMappingImpl extends EObjectImpl implements FilterMapping { - /** - * The default value of the '{@link #getFilterName() <em>Filter Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterName() - * @generated - * @ordered - */ - protected static final String FILTER_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFilterName() <em>Filter Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFilterName() - * @generated - * @ordered - */ - protected String filterName = FILTER_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getGroup() - * @generated - * @ordered - */ - protected FeatureMap group = null; - - /** - * The cached value of the '{@link #getDispatchers() <em>Dispatchers</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDispatchers() - * @generated - * @ordered - */ - protected EList dispatchers = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected FilterMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.FILTER_MAPPING; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFilterName() { - return filterName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFilterName(String newFilterName) { - String oldFilterName = filterName; - filterName = newFilterName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FILTER_MAPPING__FILTER_NAME, oldFilterName, filterName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getGroup() { - if (group == null) { - group = new BasicFeatureMap(this, WebPackage.FILTER_MAPPING__GROUP); - } - return group; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getUrlPatterns() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.FILTER_MAPPING__URL_PATTERNS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getServletNames() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.FILTER_MAPPING__SERVLET_NAMES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDispatchers() { - if (dispatchers == null) { - dispatchers = new EDataTypeEList(DispatcherType.class, this, WebPackage.FILTER_MAPPING__DISPATCHERS); - } - return dispatchers; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FILTER_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.FILTER_MAPPING__GROUP: - return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs); - case WebPackage.FILTER_MAPPING__URL_PATTERNS: - return ((InternalEList)getUrlPatterns()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.FILTER_MAPPING__FILTER_NAME: - return getFilterName(); - case WebPackage.FILTER_MAPPING__GROUP: - if (coreType) return getGroup(); - return ((FeatureMap.Internal)getGroup()).getWrapper(); - case WebPackage.FILTER_MAPPING__URL_PATTERNS: - return getUrlPatterns(); - case WebPackage.FILTER_MAPPING__SERVLET_NAMES: - return getServletNames(); - case WebPackage.FILTER_MAPPING__DISPATCHERS: - return getDispatchers(); - case WebPackage.FILTER_MAPPING__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.FILTER_MAPPING__FILTER_NAME: - setFilterName((String)newValue); - return; - case WebPackage.FILTER_MAPPING__GROUP: - ((FeatureMap.Internal)getGroup()).set(newValue); - return; - case WebPackage.FILTER_MAPPING__URL_PATTERNS: - getUrlPatterns().clear(); - getUrlPatterns().addAll((Collection)newValue); - return; - case WebPackage.FILTER_MAPPING__SERVLET_NAMES: - getServletNames().clear(); - getServletNames().addAll((Collection)newValue); - return; - case WebPackage.FILTER_MAPPING__DISPATCHERS: - getDispatchers().clear(); - getDispatchers().addAll((Collection)newValue); - return; - case WebPackage.FILTER_MAPPING__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.FILTER_MAPPING__FILTER_NAME: - setFilterName(FILTER_NAME_EDEFAULT); - return; - case WebPackage.FILTER_MAPPING__GROUP: - getGroup().clear(); - return; - case WebPackage.FILTER_MAPPING__URL_PATTERNS: - getUrlPatterns().clear(); - return; - case WebPackage.FILTER_MAPPING__SERVLET_NAMES: - getServletNames().clear(); - return; - case WebPackage.FILTER_MAPPING__DISPATCHERS: - getDispatchers().clear(); - return; - case WebPackage.FILTER_MAPPING__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.FILTER_MAPPING__FILTER_NAME: - return FILTER_NAME_EDEFAULT == null ? filterName != null : !FILTER_NAME_EDEFAULT.equals(filterName); - case WebPackage.FILTER_MAPPING__GROUP: - return group != null && !group.isEmpty(); - case WebPackage.FILTER_MAPPING__URL_PATTERNS: - return !getUrlPatterns().isEmpty(); - case WebPackage.FILTER_MAPPING__SERVLET_NAMES: - return !getServletNames().isEmpty(); - case WebPackage.FILTER_MAPPING__DISPATCHERS: - return dispatchers != null && !dispatchers.isEmpty(); - case WebPackage.FILTER_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (filterName: "); //$NON-NLS-1$ - result.append(filterName); - result.append(", group: "); //$NON-NLS-1$ - result.append(group); - result.append(", dispatchers: "); //$NON-NLS-1$ - result.append(dispatchers); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //FilterMappingImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FormLoginConfigImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FormLoginConfigImpl.java deleted file mode 100644 index b8aab7b59..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/FormLoginConfigImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: FormLoginConfigImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.FormLoginConfig; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Form Login Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FormLoginConfigImpl#getFormLoginPage <em>Form Login Page</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FormLoginConfigImpl#getFormErrorPage <em>Form Error Page</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.FormLoginConfigImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class FormLoginConfigImpl extends EObjectImpl implements FormLoginConfig { - /** - * The default value of the '{@link #getFormLoginPage() <em>Form Login Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormLoginPage() - * @generated - * @ordered - */ - protected static final String FORM_LOGIN_PAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFormLoginPage() <em>Form Login Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormLoginPage() - * @generated - * @ordered - */ - protected String formLoginPage = FORM_LOGIN_PAGE_EDEFAULT; - - /** - * The default value of the '{@link #getFormErrorPage() <em>Form Error Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormErrorPage() - * @generated - * @ordered - */ - protected static final String FORM_ERROR_PAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFormErrorPage() <em>Form Error Page</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormErrorPage() - * @generated - * @ordered - */ - protected String formErrorPage = FORM_ERROR_PAGE_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected FormLoginConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.FORM_LOGIN_CONFIG; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFormLoginPage() { - return formLoginPage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFormLoginPage(String newFormLoginPage) { - String oldFormLoginPage = formLoginPage; - formLoginPage = newFormLoginPage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE, oldFormLoginPage, formLoginPage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFormErrorPage() { - return formErrorPage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFormErrorPage(String newFormErrorPage) { - String oldFormErrorPage = formErrorPage; - formErrorPage = newFormErrorPage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE, oldFormErrorPage, formErrorPage)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.FORM_LOGIN_CONFIG__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - return getFormLoginPage(); - case WebPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - return getFormErrorPage(); - case WebPackage.FORM_LOGIN_CONFIG__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - setFormLoginPage((String)newValue); - return; - case WebPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - setFormErrorPage((String)newValue); - return; - case WebPackage.FORM_LOGIN_CONFIG__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - setFormLoginPage(FORM_LOGIN_PAGE_EDEFAULT); - return; - case WebPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - setFormErrorPage(FORM_ERROR_PAGE_EDEFAULT); - return; - case WebPackage.FORM_LOGIN_CONFIG__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE: - return FORM_LOGIN_PAGE_EDEFAULT == null ? formLoginPage != null : !FORM_LOGIN_PAGE_EDEFAULT.equals(formLoginPage); - case WebPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE: - return FORM_ERROR_PAGE_EDEFAULT == null ? formErrorPage != null : !FORM_ERROR_PAGE_EDEFAULT.equals(formErrorPage); - case WebPackage.FORM_LOGIN_CONFIG__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (formLoginPage: "); //$NON-NLS-1$ - result.append(formLoginPage); - result.append(", formErrorPage: "); //$NON-NLS-1$ - result.append(formErrorPage); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //FormLoginConfigImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingImpl.java deleted file mode 100644 index b98f36fbd..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: LocaleEncodingMappingImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.LocaleEncodingMapping; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Locale Encoding Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LocaleEncodingMappingImpl#getLocale <em>Locale</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LocaleEncodingMappingImpl#getEncoding <em>Encoding</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LocaleEncodingMappingImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LocaleEncodingMappingImpl extends EObjectImpl implements LocaleEncodingMapping { - /** - * The default value of the '{@link #getLocale() <em>Locale</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocale() - * @generated - * @ordered - */ - protected static final String LOCALE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocale() <em>Locale</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocale() - * @generated - * @ordered - */ - protected String locale = LOCALE_EDEFAULT; - - /** - * The default value of the '{@link #getEncoding() <em>Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEncoding() - * @generated - * @ordered - */ - protected static final String ENCODING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEncoding() <em>Encoding</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEncoding() - * @generated - * @ordered - */ - protected String encoding = ENCODING_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LocaleEncodingMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.LOCALE_ENCODING_MAPPING; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocale() { - return locale; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocale(String newLocale) { - String oldLocale = locale; - locale = newLocale; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOCALE_ENCODING_MAPPING__LOCALE, oldLocale, locale)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getEncoding() { - return encoding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEncoding(String newEncoding) { - String oldEncoding = encoding; - encoding = newEncoding; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOCALE_ENCODING_MAPPING__ENCODING, oldEncoding, encoding)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOCALE_ENCODING_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING__LOCALE: - return getLocale(); - case WebPackage.LOCALE_ENCODING_MAPPING__ENCODING: - return getEncoding(); - case WebPackage.LOCALE_ENCODING_MAPPING__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING__LOCALE: - setLocale((String)newValue); - return; - case WebPackage.LOCALE_ENCODING_MAPPING__ENCODING: - setEncoding((String)newValue); - return; - case WebPackage.LOCALE_ENCODING_MAPPING__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING__LOCALE: - setLocale(LOCALE_EDEFAULT); - return; - case WebPackage.LOCALE_ENCODING_MAPPING__ENCODING: - setEncoding(ENCODING_EDEFAULT); - return; - case WebPackage.LOCALE_ENCODING_MAPPING__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING__LOCALE: - return LOCALE_EDEFAULT == null ? locale != null : !LOCALE_EDEFAULT.equals(locale); - case WebPackage.LOCALE_ENCODING_MAPPING__ENCODING: - return ENCODING_EDEFAULT == null ? encoding != null : !ENCODING_EDEFAULT.equals(encoding); - case WebPackage.LOCALE_ENCODING_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (locale: "); //$NON-NLS-1$ - result.append(locale); - result.append(", encoding: "); //$NON-NLS-1$ - result.append(encoding); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //LocaleEncodingMappingImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingListImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingListImpl.java deleted file mode 100644 index 8612f441c..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LocaleEncodingMappingListImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: LocaleEncodingMappingListImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.web.LocaleEncodingMapping; -import org.eclipse.jst.javaee.web.LocaleEncodingMappingList; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Locale Encoding Mapping List</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LocaleEncodingMappingListImpl#getLocalEncodingMappings <em>Local Encoding Mappings</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LocaleEncodingMappingListImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LocaleEncodingMappingListImpl extends EObjectImpl implements LocaleEncodingMappingList { - /** - * The cached value of the '{@link #getLocalEncodingMappings() <em>Local Encoding Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocalEncodingMappings() - * @generated - * @ordered - */ - protected EList localEncodingMappings = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LocaleEncodingMappingListImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.LOCALE_ENCODING_MAPPING_LIST; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getLocalEncodingMappings() { - if (localEncodingMappings == null) { - localEncodingMappings = new EObjectContainmentEList(LocaleEncodingMapping.class, this, WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS); - } - return localEncodingMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOCALE_ENCODING_MAPPING_LIST__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return ((InternalEList)getLocalEncodingMappings()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return getLocalEncodingMappings(); - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - getLocalEncodingMappings().clear(); - getLocalEncodingMappings().addAll((Collection)newValue); - return; - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - getLocalEncodingMappings().clear(); - return; - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS: - return localEncodingMappings != null && !localEncodingMappings.isEmpty(); - case WebPackage.LOCALE_ENCODING_MAPPING_LIST__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //LocaleEncodingMappingListImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LoginConfigImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LoginConfigImpl.java deleted file mode 100644 index 63b06e33e..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/LoginConfigImpl.java +++ /dev/null @@ -1,350 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: LoginConfigImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.FormLoginConfig; -import org.eclipse.jst.javaee.web.LoginConfig; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Login Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LoginConfigImpl#getAuthMethod <em>Auth Method</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LoginConfigImpl#getRealmName <em>Realm Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LoginConfigImpl#getFormLoginConfig <em>Form Login Config</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.LoginConfigImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class LoginConfigImpl extends EObjectImpl implements LoginConfig { - /** - * The default value of the '{@link #getAuthMethod() <em>Auth Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthMethod() - * @generated - * @ordered - */ - protected static final String AUTH_METHOD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAuthMethod() <em>Auth Method</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthMethod() - * @generated - * @ordered - */ - protected String authMethod = AUTH_METHOD_EDEFAULT; - - /** - * The default value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRealmName() - * @generated - * @ordered - */ - protected static final String REALM_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRealmName() - * @generated - * @ordered - */ - protected String realmName = REALM_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getFormLoginConfig() <em>Form Login Config</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFormLoginConfig() - * @generated - * @ordered - */ - protected FormLoginConfig formLoginConfig = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected LoginConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.LOGIN_CONFIG; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAuthMethod() { - return authMethod; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthMethod(String newAuthMethod) { - String oldAuthMethod = authMethod; - authMethod = newAuthMethod; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOGIN_CONFIG__AUTH_METHOD, oldAuthMethod, authMethod)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getRealmName() { - return realmName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRealmName(String newRealmName) { - String oldRealmName = realmName; - realmName = newRealmName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOGIN_CONFIG__REALM_NAME, oldRealmName, realmName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FormLoginConfig getFormLoginConfig() { - return formLoginConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetFormLoginConfig(FormLoginConfig newFormLoginConfig, NotificationChain msgs) { - FormLoginConfig oldFormLoginConfig = formLoginConfig; - formLoginConfig = newFormLoginConfig; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, oldFormLoginConfig, newFormLoginConfig); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFormLoginConfig(FormLoginConfig newFormLoginConfig) { - if (newFormLoginConfig != formLoginConfig) { - NotificationChain msgs = null; - if (formLoginConfig != null) - msgs = ((InternalEObject)formLoginConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, null, msgs); - if (newFormLoginConfig != null) - msgs = ((InternalEObject)newFormLoginConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, null, msgs); - msgs = basicSetFormLoginConfig(newFormLoginConfig, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, newFormLoginConfig, newFormLoginConfig)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.LOGIN_CONFIG__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return basicSetFormLoginConfig(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.LOGIN_CONFIG__AUTH_METHOD: - return getAuthMethod(); - case WebPackage.LOGIN_CONFIG__REALM_NAME: - return getRealmName(); - case WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return getFormLoginConfig(); - case WebPackage.LOGIN_CONFIG__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.LOGIN_CONFIG__AUTH_METHOD: - setAuthMethod((String)newValue); - return; - case WebPackage.LOGIN_CONFIG__REALM_NAME: - setRealmName((String)newValue); - return; - case WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - setFormLoginConfig((FormLoginConfig)newValue); - return; - case WebPackage.LOGIN_CONFIG__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.LOGIN_CONFIG__AUTH_METHOD: - setAuthMethod(AUTH_METHOD_EDEFAULT); - return; - case WebPackage.LOGIN_CONFIG__REALM_NAME: - setRealmName(REALM_NAME_EDEFAULT); - return; - case WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - setFormLoginConfig((FormLoginConfig)null); - return; - case WebPackage.LOGIN_CONFIG__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.LOGIN_CONFIG__AUTH_METHOD: - return AUTH_METHOD_EDEFAULT == null ? authMethod != null : !AUTH_METHOD_EDEFAULT.equals(authMethod); - case WebPackage.LOGIN_CONFIG__REALM_NAME: - return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName); - case WebPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG: - return formLoginConfig != null; - case WebPackage.LOGIN_CONFIG__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (authMethod: "); //$NON-NLS-1$ - result.append(authMethod); - result.append(", realmName: "); //$NON-NLS-1$ - result.append(realmName); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //LoginConfigImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/MimeMappingImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/MimeMappingImpl.java deleted file mode 100644 index 478e57cf7..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/MimeMappingImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: MimeMappingImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.MimeMapping; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Mime Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.MimeMappingImpl#getExtension <em>Extension</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.MimeMappingImpl#getMimeType <em>Mime Type</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.MimeMappingImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MimeMappingImpl extends EObjectImpl implements MimeMapping { - /** - * The default value of the '{@link #getExtension() <em>Extension</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExtension() - * @generated - * @ordered - */ - protected static final String EXTENSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getExtension() <em>Extension</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getExtension() - * @generated - * @ordered - */ - protected String extension = EXTENSION_EDEFAULT; - - /** - * The default value of the '{@link #getMimeType() <em>Mime Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMimeType() - * @generated - * @ordered - */ - protected static final String MIME_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMimeType() <em>Mime Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMimeType() - * @generated - * @ordered - */ - protected String mimeType = MIME_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MimeMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.MIME_MAPPING; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getExtension() { - return extension; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setExtension(String newExtension) { - String oldExtension = extension; - extension = newExtension; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.MIME_MAPPING__EXTENSION, oldExtension, extension)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getMimeType() { - return mimeType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMimeType(String newMimeType) { - String oldMimeType = mimeType; - mimeType = newMimeType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.MIME_MAPPING__MIME_TYPE, oldMimeType, mimeType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.MIME_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.MIME_MAPPING__EXTENSION: - return getExtension(); - case WebPackage.MIME_MAPPING__MIME_TYPE: - return getMimeType(); - case WebPackage.MIME_MAPPING__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.MIME_MAPPING__EXTENSION: - setExtension((String)newValue); - return; - case WebPackage.MIME_MAPPING__MIME_TYPE: - setMimeType((String)newValue); - return; - case WebPackage.MIME_MAPPING__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.MIME_MAPPING__EXTENSION: - setExtension(EXTENSION_EDEFAULT); - return; - case WebPackage.MIME_MAPPING__MIME_TYPE: - setMimeType(MIME_TYPE_EDEFAULT); - return; - case WebPackage.MIME_MAPPING__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.MIME_MAPPING__EXTENSION: - return EXTENSION_EDEFAULT == null ? extension != null : !EXTENSION_EDEFAULT.equals(extension); - case WebPackage.MIME_MAPPING__MIME_TYPE: - return MIME_TYPE_EDEFAULT == null ? mimeType != null : !MIME_TYPE_EDEFAULT.equals(mimeType); - case WebPackage.MIME_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (extension: "); //$NON-NLS-1$ - result.append(extension); - result.append(", mimeType: "); //$NON-NLS-1$ - result.append(mimeType); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //MimeMappingImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SecurityConstraintImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SecurityConstraintImpl.java deleted file mode 100644 index 83f6f6644..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SecurityConstraintImpl.java +++ /dev/null @@ -1,392 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: SecurityConstraintImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.core.DisplayName; - -import org.eclipse.jst.javaee.web.AuthConstraint; -import org.eclipse.jst.javaee.web.SecurityConstraint; -import org.eclipse.jst.javaee.web.UserDataConstraint; -import org.eclipse.jst.javaee.web.WebResourceCollection; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Security Constraint</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SecurityConstraintImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SecurityConstraintImpl#getWebResourceCollections <em>Web Resource Collections</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SecurityConstraintImpl#getAuthConstraint <em>Auth Constraint</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SecurityConstraintImpl#getUserDataConstraint <em>User Data Constraint</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SecurityConstraintImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SecurityConstraintImpl extends EObjectImpl implements SecurityConstraint { - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNames() - * @generated - * @ordered - */ - protected EList displayNames = null; - - /** - * The cached value of the '{@link #getWebResourceCollections() <em>Web Resource Collections</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebResourceCollections() - * @generated - * @ordered - */ - protected EList webResourceCollections = null; - - /** - * The cached value of the '{@link #getAuthConstraint() <em>Auth Constraint</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAuthConstraint() - * @generated - * @ordered - */ - protected AuthConstraint authConstraint = null; - - /** - * The cached value of the '{@link #getUserDataConstraint() <em>User Data Constraint</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUserDataConstraint() - * @generated - * @ordered - */ - protected UserDataConstraint userDataConstraint = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SecurityConstraintImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.SECURITY_CONSTRAINT; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getWebResourceCollections() { - if (webResourceCollections == null) { - webResourceCollections = new EObjectContainmentEList(WebResourceCollection.class, this, WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS); - } - return webResourceCollections; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AuthConstraint getAuthConstraint() { - return authConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetAuthConstraint(AuthConstraint newAuthConstraint, NotificationChain msgs) { - AuthConstraint oldAuthConstraint = authConstraint; - authConstraint = newAuthConstraint; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, oldAuthConstraint, newAuthConstraint); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAuthConstraint(AuthConstraint newAuthConstraint) { - if (newAuthConstraint != authConstraint) { - NotificationChain msgs = null; - if (authConstraint != null) - msgs = ((InternalEObject)authConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, null, msgs); - if (newAuthConstraint != null) - msgs = ((InternalEObject)newAuthConstraint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, null, msgs); - msgs = basicSetAuthConstraint(newAuthConstraint, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, newAuthConstraint, newAuthConstraint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UserDataConstraint getUserDataConstraint() { - return userDataConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetUserDataConstraint(UserDataConstraint newUserDataConstraint, NotificationChain msgs) { - UserDataConstraint oldUserDataConstraint = userDataConstraint; - userDataConstraint = newUserDataConstraint; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, oldUserDataConstraint, newUserDataConstraint); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setUserDataConstraint(UserDataConstraint newUserDataConstraint) { - if (newUserDataConstraint != userDataConstraint) { - NotificationChain msgs = null; - if (userDataConstraint != null) - msgs = ((InternalEObject)userDataConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, null, msgs); - if (newUserDataConstraint != null) - msgs = ((InternalEObject)newUserDataConstraint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, null, msgs); - msgs = basicSetUserDataConstraint(newUserDataConstraint, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, newUserDataConstraint, newUserDataConstraint)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SECURITY_CONSTRAINT__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return ((InternalEList)getWebResourceCollections()).basicRemove(otherEnd, msgs); - case WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return basicSetAuthConstraint(null, msgs); - case WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return basicSetUserDataConstraint(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return getDisplayNames(); - case WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return getWebResourceCollections(); - case WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return getAuthConstraint(); - case WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return getUserDataConstraint(); - case WebPackage.SECURITY_CONSTRAINT__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - getWebResourceCollections().clear(); - getWebResourceCollections().addAll((Collection)newValue); - return; - case WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - setAuthConstraint((AuthConstraint)newValue); - return; - case WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - setUserDataConstraint((UserDataConstraint)newValue); - return; - case WebPackage.SECURITY_CONSTRAINT__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - getWebResourceCollections().clear(); - return; - case WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - setAuthConstraint((AuthConstraint)null); - return; - case WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - setUserDataConstraint((UserDataConstraint)null); - return; - case WebPackage.SECURITY_CONSTRAINT__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS: - return webResourceCollections != null && !webResourceCollections.isEmpty(); - case WebPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT: - return authConstraint != null; - case WebPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT: - return userDataConstraint != null; - case WebPackage.SECURITY_CONSTRAINT__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //SecurityConstraintImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletImpl.java deleted file mode 100644 index 2940d38bd..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletImpl.java +++ /dev/null @@ -1,652 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ServletImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.core.Description; -import org.eclipse.jst.javaee.core.DisplayName; -import org.eclipse.jst.javaee.core.Icon; -import org.eclipse.jst.javaee.core.ParamValue; -import org.eclipse.jst.javaee.core.RunAs; -import org.eclipse.jst.javaee.core.SecurityRoleRef; - -import org.eclipse.jst.javaee.web.Servlet; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Servlet</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getServletName <em>Servlet Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getServletClass <em>Servlet Class</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getJspFile <em>Jsp File</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getInitParams <em>Init Params</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getLoadOnStartup <em>Load On Startup</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getRunAs <em>Run As</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getSecurityRoleRefs <em>Security Role Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServletImpl extends EObjectImpl implements Servlet { - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNames() - * @generated - * @ordered - */ - protected EList displayNames = null; - - /** - * The cached value of the '{@link #getIcons() <em>Icons</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIcons() - * @generated - * @ordered - */ - protected EList icons = null; - - /** - * The default value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletName() - * @generated - * @ordered - */ - protected static final String SERVLET_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletName() - * @generated - * @ordered - */ - protected String servletName = SERVLET_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getServletClass() <em>Servlet Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletClass() - * @generated - * @ordered - */ - protected static final String SERVLET_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServletClass() <em>Servlet Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletClass() - * @generated - * @ordered - */ - protected String servletClass = SERVLET_CLASS_EDEFAULT; - - /** - * The default value of the '{@link #getJspFile() <em>Jsp File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJspFile() - * @generated - * @ordered - */ - protected static final String JSP_FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJspFile() <em>Jsp File</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJspFile() - * @generated - * @ordered - */ - protected String jspFile = JSP_FILE_EDEFAULT; - - /** - * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInitParams() - * @generated - * @ordered - */ - protected EList initParams = null; - - /** - * The default value of the '{@link #getLoadOnStartup() <em>Load On Startup</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLoadOnStartup() - * @generated - * @ordered - */ - protected static final Object LOAD_ON_STARTUP_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLoadOnStartup() <em>Load On Startup</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLoadOnStartup() - * @generated - * @ordered - */ - protected Object loadOnStartup = LOAD_ON_STARTUP_EDEFAULT; - - /** - * The cached value of the '{@link #getRunAs() <em>Run As</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRunAs() - * @generated - * @ordered - */ - protected RunAs runAs = null; - - /** - * The cached value of the '{@link #getSecurityRoleRefs() <em>Security Role Refs</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSecurityRoleRefs() - * @generated - * @ordered - */ - protected EList securityRoleRefs = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServletImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.SERVLET; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebPackage.SERVLET__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, WebPackage.SERVLET__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getIcons() { - if (icons == null) { - icons = new EObjectContainmentEList(Icon.class, this, WebPackage.SERVLET__ICONS); - } - return icons; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServletName() { - return servletName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServletName(String newServletName) { - String oldServletName = servletName; - servletName = newServletName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__SERVLET_NAME, oldServletName, servletName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServletClass() { - return servletClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServletClass(String newServletClass) { - String oldServletClass = servletClass; - servletClass = newServletClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__SERVLET_CLASS, oldServletClass, servletClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJspFile() { - return jspFile; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJspFile(String newJspFile) { - String oldJspFile = jspFile; - jspFile = newJspFile; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__JSP_FILE, oldJspFile, jspFile)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getInitParams() { - if (initParams == null) { - initParams = new EObjectContainmentEList(ParamValue.class, this, WebPackage.SERVLET__INIT_PARAMS); - } - return initParams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object getLoadOnStartup() { - return loadOnStartup; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLoadOnStartup(Object newLoadOnStartup) { - Object oldLoadOnStartup = loadOnStartup; - loadOnStartup = newLoadOnStartup; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__LOAD_ON_STARTUP, oldLoadOnStartup, loadOnStartup)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RunAs getRunAs() { - return runAs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRunAs(RunAs newRunAs, NotificationChain msgs) { - RunAs oldRunAs = runAs; - runAs = newRunAs; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__RUN_AS, oldRunAs, newRunAs); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRunAs(RunAs newRunAs) { - if (newRunAs != runAs) { - NotificationChain msgs = null; - if (runAs != null) - msgs = ((InternalEObject)runAs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebPackage.SERVLET__RUN_AS, null, msgs); - if (newRunAs != null) - msgs = ((InternalEObject)newRunAs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebPackage.SERVLET__RUN_AS, null, msgs); - msgs = basicSetRunAs(newRunAs, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__RUN_AS, newRunAs, newRunAs)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getSecurityRoleRefs() { - if (securityRoleRefs == null) { - securityRoleRefs = new EObjectContainmentEList(SecurityRoleRef.class, this, WebPackage.SERVLET__SECURITY_ROLE_REFS); - } - return securityRoleRefs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.SERVLET__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebPackage.SERVLET__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebPackage.SERVLET__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebPackage.SERVLET__INIT_PARAMS: - return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs); - case WebPackage.SERVLET__RUN_AS: - return basicSetRunAs(null, msgs); - case WebPackage.SERVLET__SECURITY_ROLE_REFS: - return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.SERVLET__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.SERVLET__DISPLAY_NAMES: - return getDisplayNames(); - case WebPackage.SERVLET__ICONS: - return getIcons(); - case WebPackage.SERVLET__SERVLET_NAME: - return getServletName(); - case WebPackage.SERVLET__SERVLET_CLASS: - return getServletClass(); - case WebPackage.SERVLET__JSP_FILE: - return getJspFile(); - case WebPackage.SERVLET__INIT_PARAMS: - return getInitParams(); - case WebPackage.SERVLET__LOAD_ON_STARTUP: - return getLoadOnStartup(); - case WebPackage.SERVLET__RUN_AS: - return getRunAs(); - case WebPackage.SERVLET__SECURITY_ROLE_REFS: - return getSecurityRoleRefs(); - case WebPackage.SERVLET__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.SERVLET__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.SERVLET__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebPackage.SERVLET__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebPackage.SERVLET__SERVLET_NAME: - setServletName((String)newValue); - return; - case WebPackage.SERVLET__SERVLET_CLASS: - setServletClass((String)newValue); - return; - case WebPackage.SERVLET__JSP_FILE: - setJspFile((String)newValue); - return; - case WebPackage.SERVLET__INIT_PARAMS: - getInitParams().clear(); - getInitParams().addAll((Collection)newValue); - return; - case WebPackage.SERVLET__LOAD_ON_STARTUP: - setLoadOnStartup((Object)newValue); - return; - case WebPackage.SERVLET__RUN_AS: - setRunAs((RunAs)newValue); - return; - case WebPackage.SERVLET__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - getSecurityRoleRefs().addAll((Collection)newValue); - return; - case WebPackage.SERVLET__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.SERVLET__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.SERVLET__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebPackage.SERVLET__ICONS: - getIcons().clear(); - return; - case WebPackage.SERVLET__SERVLET_NAME: - setServletName(SERVLET_NAME_EDEFAULT); - return; - case WebPackage.SERVLET__SERVLET_CLASS: - setServletClass(SERVLET_CLASS_EDEFAULT); - return; - case WebPackage.SERVLET__JSP_FILE: - setJspFile(JSP_FILE_EDEFAULT); - return; - case WebPackage.SERVLET__INIT_PARAMS: - getInitParams().clear(); - return; - case WebPackage.SERVLET__LOAD_ON_STARTUP: - setLoadOnStartup(LOAD_ON_STARTUP_EDEFAULT); - return; - case WebPackage.SERVLET__RUN_AS: - setRunAs((RunAs)null); - return; - case WebPackage.SERVLET__SECURITY_ROLE_REFS: - getSecurityRoleRefs().clear(); - return; - case WebPackage.SERVLET__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.SERVLET__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebPackage.SERVLET__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case WebPackage.SERVLET__ICONS: - return icons != null && !icons.isEmpty(); - case WebPackage.SERVLET__SERVLET_NAME: - return SERVLET_NAME_EDEFAULT == null ? servletName != null : !SERVLET_NAME_EDEFAULT.equals(servletName); - case WebPackage.SERVLET__SERVLET_CLASS: - return SERVLET_CLASS_EDEFAULT == null ? servletClass != null : !SERVLET_CLASS_EDEFAULT.equals(servletClass); - case WebPackage.SERVLET__JSP_FILE: - return JSP_FILE_EDEFAULT == null ? jspFile != null : !JSP_FILE_EDEFAULT.equals(jspFile); - case WebPackage.SERVLET__INIT_PARAMS: - return initParams != null && !initParams.isEmpty(); - case WebPackage.SERVLET__LOAD_ON_STARTUP: - return LOAD_ON_STARTUP_EDEFAULT == null ? loadOnStartup != null : !LOAD_ON_STARTUP_EDEFAULT.equals(loadOnStartup); - case WebPackage.SERVLET__RUN_AS: - return runAs != null; - case WebPackage.SERVLET__SECURITY_ROLE_REFS: - return securityRoleRefs != null && !securityRoleRefs.isEmpty(); - case WebPackage.SERVLET__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (servletName: "); //$NON-NLS-1$ - result.append(servletName); - result.append(", servletClass: "); //$NON-NLS-1$ - result.append(servletClass); - result.append(", jspFile: "); //$NON-NLS-1$ - result.append(jspFile); - result.append(", loadOnStartup: "); //$NON-NLS-1$ - result.append(loadOnStartup); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //ServletImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletMappingImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletMappingImpl.java deleted file mode 100644 index 021c5f927..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/ServletMappingImpl.java +++ /dev/null @@ -1,275 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: ServletMappingImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.core.UrlPatternType; - -import org.eclipse.jst.javaee.web.ServletMapping; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Servlet Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletMappingImpl#getServletName <em>Servlet Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletMappingImpl#getUrlPatterns <em>Url Patterns</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.ServletMappingImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ServletMappingImpl extends EObjectImpl implements ServletMapping { - /** - * The default value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletName() - * @generated - * @ordered - */ - protected static final String SERVLET_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getServletName() - * @generated - * @ordered - */ - protected String servletName = SERVLET_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getUrlPatterns() <em>Url Patterns</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPatterns() - * @generated - * @ordered - */ - protected EList urlPatterns = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ServletMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.SERVLET_MAPPING; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getServletName() { - return servletName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setServletName(String newServletName) { - String oldServletName = servletName; - servletName = newServletName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET_MAPPING__SERVLET_NAME, oldServletName, servletName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getUrlPatterns() { - if (urlPatterns == null) { - urlPatterns = new EObjectContainmentEList(UrlPatternType.class, this, WebPackage.SERVLET_MAPPING__URL_PATTERNS); - } - return urlPatterns; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SERVLET_MAPPING__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.SERVLET_MAPPING__URL_PATTERNS: - return ((InternalEList)getUrlPatterns()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.SERVLET_MAPPING__SERVLET_NAME: - return getServletName(); - case WebPackage.SERVLET_MAPPING__URL_PATTERNS: - return getUrlPatterns(); - case WebPackage.SERVLET_MAPPING__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.SERVLET_MAPPING__SERVLET_NAME: - setServletName((String)newValue); - return; - case WebPackage.SERVLET_MAPPING__URL_PATTERNS: - getUrlPatterns().clear(); - getUrlPatterns().addAll((Collection)newValue); - return; - case WebPackage.SERVLET_MAPPING__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.SERVLET_MAPPING__SERVLET_NAME: - setServletName(SERVLET_NAME_EDEFAULT); - return; - case WebPackage.SERVLET_MAPPING__URL_PATTERNS: - getUrlPatterns().clear(); - return; - case WebPackage.SERVLET_MAPPING__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.SERVLET_MAPPING__SERVLET_NAME: - return SERVLET_NAME_EDEFAULT == null ? servletName != null : !SERVLET_NAME_EDEFAULT.equals(servletName); - case WebPackage.SERVLET_MAPPING__URL_PATTERNS: - return urlPatterns != null && !urlPatterns.isEmpty(); - case WebPackage.SERVLET_MAPPING__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (servletName: "); //$NON-NLS-1$ - result.append(servletName); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //ServletMappingImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SessionConfigImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SessionConfigImpl.java deleted file mode 100644 index cb52edc65..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/SessionConfigImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: SessionConfigImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.math.BigInteger; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.web.SessionConfig; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Session Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SessionConfigImpl#getSessionTimeout <em>Session Timeout</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.SessionConfigImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SessionConfigImpl extends EObjectImpl implements SessionConfig { - /** - * The default value of the '{@link #getSessionTimeout() <em>Session Timeout</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSessionTimeout() - * @generated - * @ordered - */ - protected static final BigInteger SESSION_TIMEOUT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSessionTimeout() <em>Session Timeout</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSessionTimeout() - * @generated - * @ordered - */ - protected BigInteger sessionTimeout = SESSION_TIMEOUT_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SessionConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.SESSION_CONFIG; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BigInteger getSessionTimeout() { - return sessionTimeout; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSessionTimeout(BigInteger newSessionTimeout) { - BigInteger oldSessionTimeout = sessionTimeout; - sessionTimeout = newSessionTimeout; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SESSION_CONFIG__SESSION_TIMEOUT, oldSessionTimeout, sessionTimeout)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.SESSION_CONFIG__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.SESSION_CONFIG__SESSION_TIMEOUT: - return getSessionTimeout(); - case WebPackage.SESSION_CONFIG__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.SESSION_CONFIG__SESSION_TIMEOUT: - setSessionTimeout((BigInteger)newValue); - return; - case WebPackage.SESSION_CONFIG__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.SESSION_CONFIG__SESSION_TIMEOUT: - setSessionTimeout(SESSION_TIMEOUT_EDEFAULT); - return; - case WebPackage.SESSION_CONFIG__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.SESSION_CONFIG__SESSION_TIMEOUT: - return SESSION_TIMEOUT_EDEFAULT == null ? sessionTimeout != null : !SESSION_TIMEOUT_EDEFAULT.equals(sessionTimeout); - case WebPackage.SESSION_CONFIG__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (sessionTimeout: "); //$NON-NLS-1$ - result.append(sessionTimeout); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //SessionConfigImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/UserDataConstraintImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/UserDataConstraintImpl.java deleted file mode 100644 index d5d6ac77f..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/UserDataConstraintImpl.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: UserDataConstraintImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.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; - -import org.eclipse.jst.javaee.core.Description; - -import org.eclipse.jst.javaee.web.TransportGuaranteeType; -import org.eclipse.jst.javaee.web.UserDataConstraint; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>User Data Constraint</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.UserDataConstraintImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.UserDataConstraintImpl#getTransportGuarantee <em>Transport Guarantee</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.UserDataConstraintImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class UserDataConstraintImpl extends EObjectImpl implements UserDataConstraint { - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The default value of the '{@link #getTransportGuarantee() <em>Transport Guarantee</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransportGuarantee() - * @generated - * @ordered - */ - protected static final TransportGuaranteeType TRANSPORT_GUARANTEE_EDEFAULT = TransportGuaranteeType.NONE_LITERAL; - - /** - * The cached value of the '{@link #getTransportGuarantee() <em>Transport Guarantee</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTransportGuarantee() - * @generated - * @ordered - */ - protected TransportGuaranteeType transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT; - - /** - * This is true if the Transport Guarantee attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean transportGuaranteeESet = false; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected UserDataConstraintImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.USER_DATA_CONSTRAINT; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TransportGuaranteeType getTransportGuarantee() { - return transportGuarantee; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTransportGuarantee(TransportGuaranteeType newTransportGuarantee) { - TransportGuaranteeType oldTransportGuarantee = transportGuarantee; - transportGuarantee = newTransportGuarantee == null ? TRANSPORT_GUARANTEE_EDEFAULT : newTransportGuarantee; - boolean oldTransportGuaranteeESet = transportGuaranteeESet; - transportGuaranteeESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, transportGuarantee, !oldTransportGuaranteeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetTransportGuarantee() { - TransportGuaranteeType oldTransportGuarantee = transportGuarantee; - boolean oldTransportGuaranteeESet = transportGuaranteeESet; - transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT; - transportGuaranteeESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, TRANSPORT_GUARANTEE_EDEFAULT, oldTransportGuaranteeESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetTransportGuarantee() { - return transportGuaranteeESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.USER_DATA_CONSTRAINT__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - return getTransportGuarantee(); - case WebPackage.USER_DATA_CONSTRAINT__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - setTransportGuarantee((TransportGuaranteeType)newValue); - return; - case WebPackage.USER_DATA_CONSTRAINT__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - unsetTransportGuarantee(); - return; - case WebPackage.USER_DATA_CONSTRAINT__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE: - return isSetTransportGuarantee(); - case WebPackage.USER_DATA_CONSTRAINT__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (transportGuarantee: "); //$NON-NLS-1$ - if (transportGuaranteeESet) result.append(transportGuarantee); else result.append("<unset>"); //$NON-NLS-1$ - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //UserDataConstraintImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppDeploymentDescriptorImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppDeploymentDescriptorImpl.java deleted file mode 100644 index 408fc1009..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppDeploymentDescriptorImpl.java +++ /dev/null @@ -1,282 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WebAppDeploymentDescriptorImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Map; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.web.WebApp; -import org.eclipse.jst.javaee.web.WebAppDeploymentDescriptor; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>App Deployment Descriptor</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppDeploymentDescriptorImpl#getMixed <em>Mixed</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppDeploymentDescriptorImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppDeploymentDescriptorImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppDeploymentDescriptorImpl#getWebApp <em>Web App</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebAppDeploymentDescriptorImpl extends EObjectImpl implements WebAppDeploymentDescriptor { - /** - * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed = null; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap = null; - - /** - * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebAppDeploymentDescriptorImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.WEB_APP_DEPLOYMENT_DESCRIPTOR; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED); - } - return mixed; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebApp getWebApp() { - return (WebApp)getMixed().get(WebPackage.Literals.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP, true); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWebApp(WebApp newWebApp, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(WebPackage.Literals.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP, newWebApp, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWebApp(WebApp newWebApp) { - ((FeatureMap.Internal)getMixed()).set(WebPackage.Literals.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP, newWebApp); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return ((InternalEList)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return ((InternalEList)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP: - return basicSetWebApp(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - if (coreType) return ((EMap.InternalMapView)getXMLNSPrefixMap()).eMap(); - else return getXMLNSPrefixMap(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - if (coreType) return ((EMap.InternalMapView)getXSISchemaLocation()).eMap(); - else return getXSISchemaLocation(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP: - return getWebApp(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).set(newValue); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).set(newValue); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP: - setWebApp((WebApp)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED: - getMixed().clear(); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP: - setWebApp((WebApp)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED: - return mixed != null && !mixed.isEmpty(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP: - return getWebApp() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //WebAppDeploymentDescriptorImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppImpl.java deleted file mode 100644 index e1374fd1b..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebAppImpl.java +++ /dev/null @@ -1,1110 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WebAppImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -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.BasicFeatureMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.web.WebApp; -import org.eclipse.jst.javaee.web.WebAppVersionType; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>App</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getGroup <em>Group</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDistributables <em>Distributables</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getContextParams <em>Context Params</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getFilters <em>Filters</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getFilterMappings <em>Filter Mappings</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getListeners <em>Listeners</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServlets <em>Servlets</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServletMappings <em>Servlet Mappings</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSessionConfigs <em>Session Configs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMimeMappings <em>Mime Mappings</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getWelcomeFileLists <em>Welcome File Lists</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getErrorPages <em>Error Pages</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getJspConfigs <em>Jsp Configs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSecurityConstraints <em>Security Constraints</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getLoginConfigs <em>Login Configs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSecurityRoles <em>Security Roles</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEnvEntries <em>Env Entries</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEjbRefs <em>Ejb Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEjbLocalRefs <em>Ejb Local Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServiceRefs <em>Service Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getResourceRefs <em>Resource Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getResourceEnvRefs <em>Resource Env Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMessageDestinationRefs <em>Message Destination Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPersistenceContextRefs <em>Persistence Context Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPersistenceUnitRefs <em>Persistence Unit Refs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPostConstructs <em>Post Constructs</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPreDestroys <em>Pre Destroys</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMessageDestinations <em>Message Destinations</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getLocalEncodingMappingsLists <em>Local Encoding Mappings Lists</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#isMetadataComplete <em>Metadata Complete</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getVersion <em>Version</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebAppImpl extends EObjectImpl implements WebApp { - /** - * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getGroup() - * @generated - * @ordered - */ - protected FeatureMap group = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isMetadataComplete() - * @generated - * @ordered - */ - protected static final boolean METADATA_COMPLETE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isMetadataComplete() - * @generated - * @ordered - */ - protected boolean metadataComplete = METADATA_COMPLETE_EDEFAULT; - - /** - * This is true if the Metadata Complete attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean metadataCompleteESet = false; - - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final WebAppVersionType VERSION_EDEFAULT = WebAppVersionType._25_LITERAL; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected WebAppVersionType version = VERSION_EDEFAULT; - - /** - * This is true if the Version attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean versionESet = false; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebAppImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.WEB_APP; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getGroup() { - if (group == null) { - group = new BasicFeatureMap(this, WebPackage.WEB_APP__GROUP); - } - return group; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DESCRIPTIONS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDisplayNames() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DISPLAY_NAMES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getIcons() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ICONS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDistributables() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DISTRIBUTABLES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getContextParams() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__CONTEXT_PARAMS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getFilters() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__FILTERS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getFilterMappings() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__FILTER_MAPPINGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getListeners() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LISTENERS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getServlets() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVLETS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getServletMappings() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVLET_MAPPINGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getSessionConfigs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SESSION_CONFIGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getMimeMappings() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MIME_MAPPINGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getWelcomeFileLists() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__WELCOME_FILE_LISTS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getErrorPages() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ERROR_PAGES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getJspConfigs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__JSP_CONFIGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getSecurityConstraints() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SECURITY_CONSTRAINTS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getLoginConfigs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LOGIN_CONFIGS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getSecurityRoles() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SECURITY_ROLES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getEnvEntries() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ENV_ENTRIES); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getEjbRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__EJB_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getEjbLocalRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__EJB_LOCAL_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getServiceRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVICE_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getResourceRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__RESOURCE_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getResourceEnvRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__RESOURCE_ENV_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getMessageDestinationRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MESSAGE_DESTINATION_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getPersistenceContextRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PERSISTENCE_CONTEXT_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getPersistenceUnitRefs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PERSISTENCE_UNIT_REFS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getPostConstructs() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__POST_CONSTRUCTS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getPreDestroys() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PRE_DESTROYS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getMessageDestinations() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MESSAGE_DESTINATIONS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getLocalEncodingMappingsLists() { - return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isMetadataComplete() { - return metadataComplete; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMetadataComplete(boolean newMetadataComplete) { - boolean oldMetadataComplete = metadataComplete; - metadataComplete = newMetadataComplete; - boolean oldMetadataCompleteESet = metadataCompleteESet; - metadataCompleteESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__METADATA_COMPLETE, oldMetadataComplete, metadataComplete, !oldMetadataCompleteESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetMetadataComplete() { - boolean oldMetadataComplete = metadataComplete; - boolean oldMetadataCompleteESet = metadataCompleteESet; - metadataComplete = METADATA_COMPLETE_EDEFAULT; - metadataCompleteESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.WEB_APP__METADATA_COMPLETE, oldMetadataComplete, METADATA_COMPLETE_EDEFAULT, oldMetadataCompleteESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetMetadataComplete() { - return metadataCompleteESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebAppVersionType getVersion() { - return version; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(WebAppVersionType newVersion) { - WebAppVersionType oldVersion = version; - version = newVersion == null ? VERSION_EDEFAULT : newVersion; - boolean oldVersionESet = versionESet; - versionESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__VERSION, oldVersion, version, !oldVersionESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetVersion() { - WebAppVersionType oldVersion = version; - boolean oldVersionESet = versionESet; - version = VERSION_EDEFAULT; - versionESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.WEB_APP__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetVersion() { - return versionESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.WEB_APP__GROUP: - return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__DISTRIBUTABLES: - return ((InternalEList)getDistributables()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__CONTEXT_PARAMS: - return ((InternalEList)getContextParams()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__FILTERS: - return ((InternalEList)getFilters()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__FILTER_MAPPINGS: - return ((InternalEList)getFilterMappings()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__LISTENERS: - return ((InternalEList)getListeners()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SERVLETS: - return ((InternalEList)getServlets()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SERVLET_MAPPINGS: - return ((InternalEList)getServletMappings()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SESSION_CONFIGS: - return ((InternalEList)getSessionConfigs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__MIME_MAPPINGS: - return ((InternalEList)getMimeMappings()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__WELCOME_FILE_LISTS: - return ((InternalEList)getWelcomeFileLists()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__ERROR_PAGES: - return ((InternalEList)getErrorPages()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__JSP_CONFIGS: - return ((InternalEList)getJspConfigs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SECURITY_CONSTRAINTS: - return ((InternalEList)getSecurityConstraints()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__LOGIN_CONFIGS: - return ((InternalEList)getLoginConfigs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SECURITY_ROLES: - return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__ENV_ENTRIES: - return ((InternalEList)getEnvEntries()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__EJB_REFS: - return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__EJB_LOCAL_REFS: - return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__SERVICE_REFS: - return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__RESOURCE_REFS: - return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__RESOURCE_ENV_REFS: - return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS: - return ((InternalEList)getPersistenceContextRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS: - return ((InternalEList)getPersistenceUnitRefs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__POST_CONSTRUCTS: - return ((InternalEList)getPostConstructs()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__PRE_DESTROYS: - return ((InternalEList)getPreDestroys()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__MESSAGE_DESTINATIONS: - return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS: - return ((InternalEList)getLocalEncodingMappingsLists()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.WEB_APP__GROUP: - if (coreType) return getGroup(); - return ((FeatureMap.Internal)getGroup()).getWrapper(); - case WebPackage.WEB_APP__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.WEB_APP__DISPLAY_NAMES: - return getDisplayNames(); - case WebPackage.WEB_APP__ICONS: - return getIcons(); - case WebPackage.WEB_APP__DISTRIBUTABLES: - return getDistributables(); - case WebPackage.WEB_APP__CONTEXT_PARAMS: - return getContextParams(); - case WebPackage.WEB_APP__FILTERS: - return getFilters(); - case WebPackage.WEB_APP__FILTER_MAPPINGS: - return getFilterMappings(); - case WebPackage.WEB_APP__LISTENERS: - return getListeners(); - case WebPackage.WEB_APP__SERVLETS: - return getServlets(); - case WebPackage.WEB_APP__SERVLET_MAPPINGS: - return getServletMappings(); - case WebPackage.WEB_APP__SESSION_CONFIGS: - return getSessionConfigs(); - case WebPackage.WEB_APP__MIME_MAPPINGS: - return getMimeMappings(); - case WebPackage.WEB_APP__WELCOME_FILE_LISTS: - return getWelcomeFileLists(); - case WebPackage.WEB_APP__ERROR_PAGES: - return getErrorPages(); - case WebPackage.WEB_APP__JSP_CONFIGS: - return getJspConfigs(); - case WebPackage.WEB_APP__SECURITY_CONSTRAINTS: - return getSecurityConstraints(); - case WebPackage.WEB_APP__LOGIN_CONFIGS: - return getLoginConfigs(); - case WebPackage.WEB_APP__SECURITY_ROLES: - return getSecurityRoles(); - case WebPackage.WEB_APP__ENV_ENTRIES: - return getEnvEntries(); - case WebPackage.WEB_APP__EJB_REFS: - return getEjbRefs(); - case WebPackage.WEB_APP__EJB_LOCAL_REFS: - return getEjbLocalRefs(); - case WebPackage.WEB_APP__SERVICE_REFS: - return getServiceRefs(); - case WebPackage.WEB_APP__RESOURCE_REFS: - return getResourceRefs(); - case WebPackage.WEB_APP__RESOURCE_ENV_REFS: - return getResourceEnvRefs(); - case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return getMessageDestinationRefs(); - case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS: - return getPersistenceContextRefs(); - case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS: - return getPersistenceUnitRefs(); - case WebPackage.WEB_APP__POST_CONSTRUCTS: - return getPostConstructs(); - case WebPackage.WEB_APP__PRE_DESTROYS: - return getPreDestroys(); - case WebPackage.WEB_APP__MESSAGE_DESTINATIONS: - return getMessageDestinations(); - case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS: - return getLocalEncodingMappingsLists(); - case WebPackage.WEB_APP__ID: - return getId(); - case WebPackage.WEB_APP__METADATA_COMPLETE: - return isMetadataComplete() ? Boolean.TRUE : Boolean.FALSE; - case WebPackage.WEB_APP__VERSION: - return getVersion(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.WEB_APP__GROUP: - ((FeatureMap.Internal)getGroup()).set(newValue); - return; - case WebPackage.WEB_APP__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__DISTRIBUTABLES: - getDistributables().clear(); - getDistributables().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__CONTEXT_PARAMS: - getContextParams().clear(); - getContextParams().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__FILTERS: - getFilters().clear(); - getFilters().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__FILTER_MAPPINGS: - getFilterMappings().clear(); - getFilterMappings().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__LISTENERS: - getListeners().clear(); - getListeners().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SERVLETS: - getServlets().clear(); - getServlets().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SERVLET_MAPPINGS: - getServletMappings().clear(); - getServletMappings().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SESSION_CONFIGS: - getSessionConfigs().clear(); - getSessionConfigs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__MIME_MAPPINGS: - getMimeMappings().clear(); - getMimeMappings().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__WELCOME_FILE_LISTS: - getWelcomeFileLists().clear(); - getWelcomeFileLists().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__ERROR_PAGES: - getErrorPages().clear(); - getErrorPages().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__JSP_CONFIGS: - getJspConfigs().clear(); - getJspConfigs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SECURITY_CONSTRAINTS: - getSecurityConstraints().clear(); - getSecurityConstraints().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__LOGIN_CONFIGS: - getLoginConfigs().clear(); - getLoginConfigs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SECURITY_ROLES: - getSecurityRoles().clear(); - getSecurityRoles().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__ENV_ENTRIES: - getEnvEntries().clear(); - getEnvEntries().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__EJB_REFS: - getEjbRefs().clear(); - getEjbRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - getEjbLocalRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__SERVICE_REFS: - getServiceRefs().clear(); - getServiceRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__RESOURCE_REFS: - getResourceRefs().clear(); - getResourceRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - getResourceEnvRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - getMessageDestinationRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS: - getPersistenceContextRefs().clear(); - getPersistenceContextRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS: - getPersistenceUnitRefs().clear(); - getPersistenceUnitRefs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__POST_CONSTRUCTS: - getPostConstructs().clear(); - getPostConstructs().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__PRE_DESTROYS: - getPreDestroys().clear(); - getPreDestroys().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - getMessageDestinations().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS: - getLocalEncodingMappingsLists().clear(); - getLocalEncodingMappingsLists().addAll((Collection)newValue); - return; - case WebPackage.WEB_APP__ID: - setId((String)newValue); - return; - case WebPackage.WEB_APP__METADATA_COMPLETE: - setMetadataComplete(((Boolean)newValue).booleanValue()); - return; - case WebPackage.WEB_APP__VERSION: - setVersion((WebAppVersionType)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.WEB_APP__GROUP: - getGroup().clear(); - return; - case WebPackage.WEB_APP__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.WEB_APP__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case WebPackage.WEB_APP__ICONS: - getIcons().clear(); - return; - case WebPackage.WEB_APP__DISTRIBUTABLES: - getDistributables().clear(); - return; - case WebPackage.WEB_APP__CONTEXT_PARAMS: - getContextParams().clear(); - return; - case WebPackage.WEB_APP__FILTERS: - getFilters().clear(); - return; - case WebPackage.WEB_APP__FILTER_MAPPINGS: - getFilterMappings().clear(); - return; - case WebPackage.WEB_APP__LISTENERS: - getListeners().clear(); - return; - case WebPackage.WEB_APP__SERVLETS: - getServlets().clear(); - return; - case WebPackage.WEB_APP__SERVLET_MAPPINGS: - getServletMappings().clear(); - return; - case WebPackage.WEB_APP__SESSION_CONFIGS: - getSessionConfigs().clear(); - return; - case WebPackage.WEB_APP__MIME_MAPPINGS: - getMimeMappings().clear(); - return; - case WebPackage.WEB_APP__WELCOME_FILE_LISTS: - getWelcomeFileLists().clear(); - return; - case WebPackage.WEB_APP__ERROR_PAGES: - getErrorPages().clear(); - return; - case WebPackage.WEB_APP__JSP_CONFIGS: - getJspConfigs().clear(); - return; - case WebPackage.WEB_APP__SECURITY_CONSTRAINTS: - getSecurityConstraints().clear(); - return; - case WebPackage.WEB_APP__LOGIN_CONFIGS: - getLoginConfigs().clear(); - return; - case WebPackage.WEB_APP__SECURITY_ROLES: - getSecurityRoles().clear(); - return; - case WebPackage.WEB_APP__ENV_ENTRIES: - getEnvEntries().clear(); - return; - case WebPackage.WEB_APP__EJB_REFS: - getEjbRefs().clear(); - return; - case WebPackage.WEB_APP__EJB_LOCAL_REFS: - getEjbLocalRefs().clear(); - return; - case WebPackage.WEB_APP__SERVICE_REFS: - getServiceRefs().clear(); - return; - case WebPackage.WEB_APP__RESOURCE_REFS: - getResourceRefs().clear(); - return; - case WebPackage.WEB_APP__RESOURCE_ENV_REFS: - getResourceEnvRefs().clear(); - return; - case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - getMessageDestinationRefs().clear(); - return; - case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS: - getPersistenceContextRefs().clear(); - return; - case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS: - getPersistenceUnitRefs().clear(); - return; - case WebPackage.WEB_APP__POST_CONSTRUCTS: - getPostConstructs().clear(); - return; - case WebPackage.WEB_APP__PRE_DESTROYS: - getPreDestroys().clear(); - return; - case WebPackage.WEB_APP__MESSAGE_DESTINATIONS: - getMessageDestinations().clear(); - return; - case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS: - getLocalEncodingMappingsLists().clear(); - return; - case WebPackage.WEB_APP__ID: - setId(ID_EDEFAULT); - return; - case WebPackage.WEB_APP__METADATA_COMPLETE: - unsetMetadataComplete(); - return; - case WebPackage.WEB_APP__VERSION: - unsetVersion(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.WEB_APP__GROUP: - return group != null && !group.isEmpty(); - case WebPackage.WEB_APP__DESCRIPTIONS: - return !getDescriptions().isEmpty(); - case WebPackage.WEB_APP__DISPLAY_NAMES: - return !getDisplayNames().isEmpty(); - case WebPackage.WEB_APP__ICONS: - return !getIcons().isEmpty(); - case WebPackage.WEB_APP__DISTRIBUTABLES: - return !getDistributables().isEmpty(); - case WebPackage.WEB_APP__CONTEXT_PARAMS: - return !getContextParams().isEmpty(); - case WebPackage.WEB_APP__FILTERS: - return !getFilters().isEmpty(); - case WebPackage.WEB_APP__FILTER_MAPPINGS: - return !getFilterMappings().isEmpty(); - case WebPackage.WEB_APP__LISTENERS: - return !getListeners().isEmpty(); - case WebPackage.WEB_APP__SERVLETS: - return !getServlets().isEmpty(); - case WebPackage.WEB_APP__SERVLET_MAPPINGS: - return !getServletMappings().isEmpty(); - case WebPackage.WEB_APP__SESSION_CONFIGS: - return !getSessionConfigs().isEmpty(); - case WebPackage.WEB_APP__MIME_MAPPINGS: - return !getMimeMappings().isEmpty(); - case WebPackage.WEB_APP__WELCOME_FILE_LISTS: - return !getWelcomeFileLists().isEmpty(); - case WebPackage.WEB_APP__ERROR_PAGES: - return !getErrorPages().isEmpty(); - case WebPackage.WEB_APP__JSP_CONFIGS: - return !getJspConfigs().isEmpty(); - case WebPackage.WEB_APP__SECURITY_CONSTRAINTS: - return !getSecurityConstraints().isEmpty(); - case WebPackage.WEB_APP__LOGIN_CONFIGS: - return !getLoginConfigs().isEmpty(); - case WebPackage.WEB_APP__SECURITY_ROLES: - return !getSecurityRoles().isEmpty(); - case WebPackage.WEB_APP__ENV_ENTRIES: - return !getEnvEntries().isEmpty(); - case WebPackage.WEB_APP__EJB_REFS: - return !getEjbRefs().isEmpty(); - case WebPackage.WEB_APP__EJB_LOCAL_REFS: - return !getEjbLocalRefs().isEmpty(); - case WebPackage.WEB_APP__SERVICE_REFS: - return !getServiceRefs().isEmpty(); - case WebPackage.WEB_APP__RESOURCE_REFS: - return !getResourceRefs().isEmpty(); - case WebPackage.WEB_APP__RESOURCE_ENV_REFS: - return !getResourceEnvRefs().isEmpty(); - case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS: - return !getMessageDestinationRefs().isEmpty(); - case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS: - return !getPersistenceContextRefs().isEmpty(); - case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS: - return !getPersistenceUnitRefs().isEmpty(); - case WebPackage.WEB_APP__POST_CONSTRUCTS: - return !getPostConstructs().isEmpty(); - case WebPackage.WEB_APP__PRE_DESTROYS: - return !getPreDestroys().isEmpty(); - case WebPackage.WEB_APP__MESSAGE_DESTINATIONS: - return !getMessageDestinations().isEmpty(); - case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS: - return !getLocalEncodingMappingsLists().isEmpty(); - case WebPackage.WEB_APP__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case WebPackage.WEB_APP__METADATA_COMPLETE: - return isSetMetadataComplete(); - case WebPackage.WEB_APP__VERSION: - return isSetVersion(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (group: "); //$NON-NLS-1$ - result.append(group); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(", metadataComplete: "); //$NON-NLS-1$ - if (metadataCompleteESet) result.append(metadataComplete); else result.append("<unset>"); //$NON-NLS-1$ - result.append(", version: "); //$NON-NLS-1$ - if (versionESet) result.append(version); else result.append("<unset>"); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - -} //WebAppImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebFactoryImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebFactoryImpl.java deleted file mode 100644 index 5daeb55c4..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebFactoryImpl.java +++ /dev/null @@ -1,785 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WebFactoryImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.math.BigInteger; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; - -import org.eclipse.jst.javaee.web.*; - -import org.eclipse.jst.javaee.web.internal.metadata.WebFactory; -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WebFactoryImpl extends EFactoryImpl implements WebFactory { - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static WebFactory init() { - try { - WebFactory theWebFactory = (WebFactory)EPackage.Registry.INSTANCE.getEFactory("http://java.sun.com/xml/ns/javaee/web"); //$NON-NLS-1$ - if (theWebFactory != null) { - return theWebFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new WebFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case WebPackage.AUTH_CONSTRAINT: return (EObject)createAuthConstraint(); - case WebPackage.ERROR_PAGE: return (EObject)createErrorPage(); - case WebPackage.FILTER: return (EObject)createFilter(); - case WebPackage.FILTER_MAPPING: return (EObject)createFilterMapping(); - case WebPackage.FORM_LOGIN_CONFIG: return (EObject)createFormLoginConfig(); - case WebPackage.LOCALE_ENCODING_MAPPING: return (EObject)createLocaleEncodingMapping(); - case WebPackage.LOCALE_ENCODING_MAPPING_LIST: return (EObject)createLocaleEncodingMappingList(); - case WebPackage.LOGIN_CONFIG: return (EObject)createLoginConfig(); - case WebPackage.MIME_MAPPING: return (EObject)createMimeMapping(); - case WebPackage.SECURITY_CONSTRAINT: return (EObject)createSecurityConstraint(); - case WebPackage.SERVLET: return (EObject)createServlet(); - case WebPackage.SERVLET_MAPPING: return (EObject)createServletMapping(); - case WebPackage.SESSION_CONFIG: return (EObject)createSessionConfig(); - case WebPackage.USER_DATA_CONSTRAINT: return (EObject)createUserDataConstraint(); - case WebPackage.WEB_APP: return (EObject)createWebApp(); - case WebPackage.WEB_APP_DEPLOYMENT_DESCRIPTOR: return (EObject)createWebAppDeploymentDescriptor(); - case WebPackage.WEB_RESOURCE_COLLECTION: return (EObject)createWebResourceCollection(); - case WebPackage.WELCOME_FILE_LIST: return (EObject)createWelcomeFileList(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case WebPackage.DISPATCHER_TYPE: - return createDispatcherTypeFromString(eDataType, initialValue); - case WebPackage.NULL_CHAR_TYPE: - return createNullCharTypeFromString(eDataType, initialValue); - case WebPackage.TRANSPORT_GUARANTEE_TYPE: - return createTransportGuaranteeTypeFromString(eDataType, initialValue); - case WebPackage.WEB_APP_VERSION_TYPE: - return createWebAppVersionTypeFromString(eDataType, initialValue); - case WebPackage.AUTH_METHOD_TYPE: - return createAuthMethodTypeFromString(eDataType, initialValue); - case WebPackage.DISPATCHER_TYPE_OBJECT: - return createDispatcherTypeObjectFromString(eDataType, initialValue); - case WebPackage.ENCODING_TYPE: - return createEncodingTypeFromString(eDataType, initialValue); - case WebPackage.ERROR_CODE_TYPE: - return createErrorCodeTypeFromString(eDataType, initialValue); - case WebPackage.FILTER_NAME_TYPE: - return createFilterNameTypeFromString(eDataType, initialValue); - case WebPackage.HTTP_METHOD_TYPE: - return createHttpMethodTypeFromString(eDataType, initialValue); - case WebPackage.LOAD_ON_STARTUP_TYPE: - return createLoadOnStartupTypeFromString(eDataType, initialValue); - case WebPackage.LOCALE_TYPE: - return createLocaleTypeFromString(eDataType, initialValue); - case WebPackage.MIME_TYPE_TYPE: - return createMimeTypeTypeFromString(eDataType, initialValue); - case WebPackage.NON_EMPTY_STRING_TYPE: - return createNonEmptyStringTypeFromString(eDataType, initialValue); - case WebPackage.NULL_CHAR_TYPE_OBJECT: - return createNullCharTypeObjectFromString(eDataType, initialValue); - case WebPackage.SERVLET_NAME_TYPE: - return createServletNameTypeFromString(eDataType, initialValue); - case WebPackage.TRANSPORT_GUARANTEE_TYPE_OBJECT: - return createTransportGuaranteeTypeObjectFromString(eDataType, initialValue); - case WebPackage.WAR_PATH_TYPE: - return createWarPathTypeFromString(eDataType, initialValue); - case WebPackage.WEB_APP_VERSION_TYPE_OBJECT: - return createWebAppVersionTypeObjectFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case WebPackage.DISPATCHER_TYPE: - return convertDispatcherTypeToString(eDataType, instanceValue); - case WebPackage.NULL_CHAR_TYPE: - return convertNullCharTypeToString(eDataType, instanceValue); - case WebPackage.TRANSPORT_GUARANTEE_TYPE: - return convertTransportGuaranteeTypeToString(eDataType, instanceValue); - case WebPackage.WEB_APP_VERSION_TYPE: - return convertWebAppVersionTypeToString(eDataType, instanceValue); - case WebPackage.AUTH_METHOD_TYPE: - return convertAuthMethodTypeToString(eDataType, instanceValue); - case WebPackage.DISPATCHER_TYPE_OBJECT: - return convertDispatcherTypeObjectToString(eDataType, instanceValue); - case WebPackage.ENCODING_TYPE: - return convertEncodingTypeToString(eDataType, instanceValue); - case WebPackage.ERROR_CODE_TYPE: - return convertErrorCodeTypeToString(eDataType, instanceValue); - case WebPackage.FILTER_NAME_TYPE: - return convertFilterNameTypeToString(eDataType, instanceValue); - case WebPackage.HTTP_METHOD_TYPE: - return convertHttpMethodTypeToString(eDataType, instanceValue); - case WebPackage.LOAD_ON_STARTUP_TYPE: - return convertLoadOnStartupTypeToString(eDataType, instanceValue); - case WebPackage.LOCALE_TYPE: - return convertLocaleTypeToString(eDataType, instanceValue); - case WebPackage.MIME_TYPE_TYPE: - return convertMimeTypeTypeToString(eDataType, instanceValue); - case WebPackage.NON_EMPTY_STRING_TYPE: - return convertNonEmptyStringTypeToString(eDataType, instanceValue); - case WebPackage.NULL_CHAR_TYPE_OBJECT: - return convertNullCharTypeObjectToString(eDataType, instanceValue); - case WebPackage.SERVLET_NAME_TYPE: - return convertServletNameTypeToString(eDataType, instanceValue); - case WebPackage.TRANSPORT_GUARANTEE_TYPE_OBJECT: - return convertTransportGuaranteeTypeObjectToString(eDataType, instanceValue); - case WebPackage.WAR_PATH_TYPE: - return convertWarPathTypeToString(eDataType, instanceValue); - case WebPackage.WEB_APP_VERSION_TYPE_OBJECT: - return convertWebAppVersionTypeObjectToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AuthConstraint createAuthConstraint() { - AuthConstraintImpl authConstraint = new AuthConstraintImpl(); - return authConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ErrorPage createErrorPage() { - ErrorPageImpl errorPage = new ErrorPageImpl(); - return errorPage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Filter createFilter() { - FilterImpl filter = new FilterImpl(); - return filter; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FilterMapping createFilterMapping() { - FilterMappingImpl filterMapping = new FilterMappingImpl(); - return filterMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FormLoginConfig createFormLoginConfig() { - FormLoginConfigImpl formLoginConfig = new FormLoginConfigImpl(); - return formLoginConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LocaleEncodingMapping createLocaleEncodingMapping() { - LocaleEncodingMappingImpl localeEncodingMapping = new LocaleEncodingMappingImpl(); - return localeEncodingMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LocaleEncodingMappingList createLocaleEncodingMappingList() { - LocaleEncodingMappingListImpl localeEncodingMappingList = new LocaleEncodingMappingListImpl(); - return localeEncodingMappingList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public LoginConfig createLoginConfig() { - LoginConfigImpl loginConfig = new LoginConfigImpl(); - return loginConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MimeMapping createMimeMapping() { - MimeMappingImpl mimeMapping = new MimeMappingImpl(); - return mimeMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SecurityConstraint createSecurityConstraint() { - SecurityConstraintImpl securityConstraint = new SecurityConstraintImpl(); - return securityConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Servlet createServlet() { - ServletImpl servlet = new ServletImpl(); - return servlet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ServletMapping createServletMapping() { - ServletMappingImpl servletMapping = new ServletMappingImpl(); - return servletMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SessionConfig createSessionConfig() { - SessionConfigImpl sessionConfig = new SessionConfigImpl(); - return sessionConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UserDataConstraint createUserDataConstraint() { - UserDataConstraintImpl userDataConstraint = new UserDataConstraintImpl(); - return userDataConstraint; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebApp createWebApp() { - WebAppImpl webApp = new WebAppImpl(); - return webApp; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebAppDeploymentDescriptor createWebAppDeploymentDescriptor() { - WebAppDeploymentDescriptorImpl webAppDeploymentDescriptor = new WebAppDeploymentDescriptorImpl(); - return webAppDeploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebResourceCollection createWebResourceCollection() { - WebResourceCollectionImpl webResourceCollection = new WebResourceCollectionImpl(); - return webResourceCollection; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WelcomeFileList createWelcomeFileList() { - WelcomeFileListImpl welcomeFileList = new WelcomeFileListImpl(); - return welcomeFileList; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DispatcherType createDispatcherTypeFromString(EDataType eDataType, String initialValue) { - DispatcherType result = DispatcherType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertDispatcherTypeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NullCharType createNullCharTypeFromString(EDataType eDataType, String initialValue) { - NullCharType result = NullCharType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertNullCharTypeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TransportGuaranteeType createTransportGuaranteeTypeFromString(EDataType eDataType, String initialValue) { - TransportGuaranteeType result = TransportGuaranteeType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertTransportGuaranteeTypeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebAppVersionType createWebAppVersionTypeFromString(EDataType eDataType, String initialValue) { - WebAppVersionType result = WebAppVersionType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertWebAppVersionTypeToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createAuthMethodTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertAuthMethodTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DispatcherType createDispatcherTypeObjectFromString(EDataType eDataType, String initialValue) { - return (DispatcherType)createDispatcherTypeFromString(WebPackage.Literals.DISPATCHER_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertDispatcherTypeObjectToString(EDataType eDataType, Object instanceValue) { - return convertDispatcherTypeToString(WebPackage.Literals.DISPATCHER_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createEncodingTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertEncodingTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BigInteger createErrorCodeTypeFromString(EDataType eDataType, String initialValue) { - return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.POSITIVE_INTEGER, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertErrorCodeTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.POSITIVE_INTEGER, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createFilterNameTypeFromString(EDataType eDataType, String initialValue) { - return (String)createNonEmptyStringTypeFromString(WebPackage.Literals.NON_EMPTY_STRING_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertFilterNameTypeToString(EDataType eDataType, Object instanceValue) { - return convertNonEmptyStringTypeToString(WebPackage.Literals.NON_EMPTY_STRING_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createHttpMethodTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertHttpMethodTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createLoadOnStartupTypeFromString(EDataType eDataType, String initialValue) { - if (initialValue == null) return null; - Object result = null; - RuntimeException exception = null; - try { - result = (Object)createNullCharTypeFromString(WebPackage.Literals.NULL_CHAR_TYPE, initialValue); - if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) { - return result; - } - } - catch (RuntimeException e) { - exception = e; - } - try { - result = (Object)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.INTEGER, initialValue); - if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) { - return result; - } - } - catch (RuntimeException e) { - exception = e; - } - if (result != null || exception == null) return result; - - throw exception; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertLoadOnStartupTypeToString(EDataType eDataType, Object instanceValue) { - if (instanceValue == null) return null; - if (WebPackage.Literals.NULL_CHAR_TYPE.isInstance(instanceValue)) { - try { - String value = convertNullCharTypeToString(WebPackage.Literals.NULL_CHAR_TYPE, instanceValue); - if (value != null) return value; - } - catch (Exception e) { - } - } - if (XMLTypePackage.Literals.INTEGER.isInstance(instanceValue)) { - try { - String value = XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.INTEGER, instanceValue); - if (value != null) return value; - } - catch (Exception e) { - } - } - throw new IllegalArgumentException("Invalid value: '"+instanceValue+"' for datatype :"+eDataType.getName()); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createLocaleTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertLocaleTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createMimeTypeTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertMimeTypeTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createNonEmptyStringTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertNonEmptyStringTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NullCharType createNullCharTypeObjectFromString(EDataType eDataType, String initialValue) { - return (NullCharType)createNullCharTypeFromString(WebPackage.Literals.NULL_CHAR_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertNullCharTypeObjectToString(EDataType eDataType, Object instanceValue) { - return convertNullCharTypeToString(WebPackage.Literals.NULL_CHAR_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createServletNameTypeFromString(EDataType eDataType, String initialValue) { - return (String)createNonEmptyStringTypeFromString(WebPackage.Literals.NON_EMPTY_STRING_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertServletNameTypeToString(EDataType eDataType, Object instanceValue) { - return convertNonEmptyStringTypeToString(WebPackage.Literals.NON_EMPTY_STRING_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TransportGuaranteeType createTransportGuaranteeTypeObjectFromString(EDataType eDataType, String initialValue) { - return (TransportGuaranteeType)createTransportGuaranteeTypeFromString(WebPackage.Literals.TRANSPORT_GUARANTEE_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertTransportGuaranteeTypeObjectToString(EDataType eDataType, Object instanceValue) { - return convertTransportGuaranteeTypeToString(WebPackage.Literals.TRANSPORT_GUARANTEE_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String createWarPathTypeFromString(EDataType eDataType, String initialValue) { - return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertWarPathTypeToString(EDataType eDataType, Object instanceValue) { - return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebAppVersionType createWebAppVersionTypeObjectFromString(EDataType eDataType, String initialValue) { - return (WebAppVersionType)createWebAppVersionTypeFromString(WebPackage.Literals.WEB_APP_VERSION_TYPE, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertWebAppVersionTypeObjectToString(EDataType eDataType, Object instanceValue) { - return convertWebAppVersionTypeToString(WebPackage.Literals.WEB_APP_VERSION_TYPE, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebPackage getWebPackage() { - return (WebPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static WebPackage getPackage() { - return WebPackage.eINSTANCE; - } - -} //WebFactoryImpl diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebPackageImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebPackageImpl.java deleted file mode 100644 index 240e197d2..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebPackageImpl.java +++ /dev/null @@ -1,3244 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WebPackageImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.math.BigInteger; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EValidator; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; - -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; - -import org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -import org.eclipse.jst.javaee.applicationclient.internal.impl.ApplicationclientPackageImpl; - -import org.eclipse.jst.javaee.applicationclient.internal.metadata.ApplicationclientPackage; - -import org.eclipse.jst.javaee.core.internal.impl.JavaeePackageImpl; - -import org.eclipse.jst.javaee.core.internal.metadata.JavaeePackage; - -import org.eclipse.jst.javaee.ejb.internal.impl.EjbPackageImpl; - -import org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage; - -import org.eclipse.jst.javaee.jsp.internal.impl.JspPackageImpl; - -import org.eclipse.jst.javaee.jsp.internal.metadata.JspPackage; - -import org.eclipse.jst.javaee.web.AuthConstraint; -import org.eclipse.jst.javaee.web.DispatcherType; -import org.eclipse.jst.javaee.web.ErrorPage; -import org.eclipse.jst.javaee.web.Filter; -import org.eclipse.jst.javaee.web.FilterMapping; -import org.eclipse.jst.javaee.web.FormLoginConfig; -import org.eclipse.jst.javaee.web.LocaleEncodingMapping; -import org.eclipse.jst.javaee.web.LocaleEncodingMappingList; -import org.eclipse.jst.javaee.web.LoginConfig; -import org.eclipse.jst.javaee.web.MimeMapping; -import org.eclipse.jst.javaee.web.NullCharType; -import org.eclipse.jst.javaee.web.SecurityConstraint; -import org.eclipse.jst.javaee.web.Servlet; -import org.eclipse.jst.javaee.web.ServletMapping; -import org.eclipse.jst.javaee.web.SessionConfig; -import org.eclipse.jst.javaee.web.TransportGuaranteeType; -import org.eclipse.jst.javaee.web.UserDataConstraint; -import org.eclipse.jst.javaee.web.WebApp; -import org.eclipse.jst.javaee.web.WebAppDeploymentDescriptor; -import org.eclipse.jst.javaee.web.WebAppVersionType; -import org.eclipse.jst.javaee.web.WebResourceCollection; -import org.eclipse.jst.javaee.web.WelcomeFileList; - -import org.eclipse.jst.javaee.web.internal.metadata.WebFactory; -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -import org.eclipse.jst.javaee.web.internal.util.WebValidator; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class WebPackageImpl extends EPackageImpl implements WebPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass authConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass errorPageEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass filterEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass filterMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass formLoginConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass localeEncodingMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass localeEncodingMappingListEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass loginConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimeMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass securityConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass servletMappingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass sessionConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass userDataConstraintEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webAppEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webAppDeploymentDescriptorEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webResourceCollectionEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass welcomeFileListEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum dispatcherTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum nullCharTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum transportGuaranteeTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum webAppVersionTypeEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType authMethodTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType dispatcherTypeObjectEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType encodingTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType errorCodeTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType filterNameTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType httpMethodTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType loadOnStartupTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType localeTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType mimeTypeTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType nonEmptyStringTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType nullCharTypeObjectEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType servletNameTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType transportGuaranteeTypeObjectEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType warPathTypeEDataType = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType webAppVersionTypeObjectEDataType = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>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. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.javaee.web.internal.metadata.WebPackage#eNS_URI - * @see #init() - * @generated - */ - private WebPackageImpl() { - super(eNS_URI, WebFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> 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. - * <p>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. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static WebPackage init() { - if (isInited) return (WebPackage)EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI); - - // Obtain or create and register package - WebPackageImpl theWebPackage = (WebPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WebPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WebPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLNamespacePackage.eINSTANCE.eClass(); - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE); - JavaeePackageImpl theJavaeePackage = (JavaeePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) instanceof JavaeePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) : JavaeePackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - ApplicationclientPackageImpl theApplicationclientPackage = (ApplicationclientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) instanceof ApplicationclientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) : ApplicationclientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - - // Create package meta-data objects - theWebPackage.createPackageContents(); - theApplicationPackage.createPackageContents(); - theJavaeePackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theApplicationclientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - - // Initialize created meta-data - theWebPackage.initializePackageContents(); - theApplicationPackage.initializePackageContents(); - theJavaeePackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theApplicationclientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - - // Register package validator - EValidator.Registry.INSTANCE.put - (theWebPackage, - new EValidator.Descriptor() { - public EValidator getEValidator() { - return WebValidator.INSTANCE; - } - }); - - // Mark meta-data to indicate it can't be changed - theWebPackage.freeze(); - - return theWebPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAuthConstraint() { - return authConstraintEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAuthConstraint_Descriptions() { - return (EReference)authConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAuthConstraint_RoleNames() { - return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAuthConstraint_Id() { - return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getErrorPage() { - return errorPageEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getErrorPage_ErrorCode() { - return (EAttribute)errorPageEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getErrorPage_ExceptionType() { - return (EAttribute)errorPageEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getErrorPage_Location() { - return (EAttribute)errorPageEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getErrorPage_Id() { - return (EAttribute)errorPageEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getFilter() { - return filterEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilter_Descriptions() { - return (EReference)filterEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilter_DisplayNames() { - return (EReference)filterEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilter_Icons() { - return (EReference)filterEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilter_FilterName() { - return (EAttribute)filterEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilter_FilterClass() { - return (EAttribute)filterEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilter_InitParams() { - return (EReference)filterEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilter_Id() { - return (EAttribute)filterEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getFilterMapping() { - return filterMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_FilterName() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_Group() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getFilterMapping_UrlPatterns() { - return (EReference)filterMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_ServletNames() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_Dispatchers() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFilterMapping_Id() { - return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getFormLoginConfig() { - return formLoginConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFormLoginConfig_FormLoginPage() { - return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFormLoginConfig_FormErrorPage() { - return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getFormLoginConfig_Id() { - return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLocaleEncodingMapping() { - return localeEncodingMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocaleEncodingMapping_Locale() { - return (EAttribute)localeEncodingMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocaleEncodingMapping_Encoding() { - return (EAttribute)localeEncodingMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocaleEncodingMapping_Id() { - return (EAttribute)localeEncodingMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLocaleEncodingMappingList() { - return localeEncodingMappingListEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLocaleEncodingMappingList_LocalEncodingMappings() { - return (EReference)localeEncodingMappingListEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLocaleEncodingMappingList_Id() { - return (EAttribute)localeEncodingMappingListEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getLoginConfig() { - return loginConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLoginConfig_AuthMethod() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLoginConfig_RealmName() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getLoginConfig_FormLoginConfig() { - return (EReference)loginConfigEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getLoginConfig_Id() { - return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMimeMapping() { - return mimeMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMimeMapping_Extension() { - return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMimeMapping_MimeType() { - return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMimeMapping_Id() { - return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getSecurityConstraint() { - return securityConstraintEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityConstraint_DisplayNames() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityConstraint_WebResourceCollections() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityConstraint_AuthConstraint() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSecurityConstraint_UserDataConstraint() { - return (EReference)securityConstraintEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getSecurityConstraint_Id() { - return (EAttribute)securityConstraintEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServlet() { - return servletEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_Descriptions() { - return (EReference)servletEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_DisplayNames() { - return (EReference)servletEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_Icons() { - return (EReference)servletEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServlet_ServletName() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServlet_ServletClass() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServlet_JspFile() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_InitParams() { - return (EReference)servletEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServlet_LoadOnStartup() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_RunAs() { - return (EReference)servletEClass.getEStructuralFeatures().get(8); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServlet_SecurityRoleRefs() { - return (EReference)servletEClass.getEStructuralFeatures().get(9); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServlet_Id() { - return (EAttribute)servletEClass.getEStructuralFeatures().get(10); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getServletMapping() { - return servletMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServletMapping_ServletName() { - return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getServletMapping_UrlPatterns() { - return (EReference)servletMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getServletMapping_Id() { - return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getSessionConfig() { - return sessionConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getSessionConfig_SessionTimeout() { - return (EAttribute)sessionConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getSessionConfig_Id() { - return (EAttribute)sessionConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getUserDataConstraint() { - return userDataConstraintEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getUserDataConstraint_Descriptions() { - return (EReference)userDataConstraintEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getUserDataConstraint_TransportGuarantee() { - return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getUserDataConstraint_Id() { - return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebApp() { - return webAppEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebApp_Group() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Descriptions() { - return (EReference)webAppEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_DisplayNames() { - return (EReference)webAppEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Icons() { - return (EReference)webAppEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Distributables() { - return (EReference)webAppEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ContextParams() { - return (EReference)webAppEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Filters() { - return (EReference)webAppEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_FilterMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Listeners() { - return (EReference)webAppEClass.getEStructuralFeatures().get(8); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_Servlets() { - return (EReference)webAppEClass.getEStructuralFeatures().get(9); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ServletMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(10); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_SessionConfigs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(11); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_MimeMappings() { - return (EReference)webAppEClass.getEStructuralFeatures().get(12); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_WelcomeFileLists() { - return (EReference)webAppEClass.getEStructuralFeatures().get(13); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ErrorPages() { - return (EReference)webAppEClass.getEStructuralFeatures().get(14); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_JspConfigs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(15); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_SecurityConstraints() { - return (EReference)webAppEClass.getEStructuralFeatures().get(16); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_LoginConfigs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(17); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_SecurityRoles() { - return (EReference)webAppEClass.getEStructuralFeatures().get(18); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_EnvEntries() { - return (EReference)webAppEClass.getEStructuralFeatures().get(19); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_EjbRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(20); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_EjbLocalRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(21); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ServiceRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(22); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ResourceRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(23); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_ResourceEnvRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(24); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_MessageDestinationRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(25); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_PersistenceContextRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(26); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_PersistenceUnitRefs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(27); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_PostConstructs() { - return (EReference)webAppEClass.getEStructuralFeatures().get(28); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_PreDestroys() { - return (EReference)webAppEClass.getEStructuralFeatures().get(29); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_MessageDestinations() { - return (EReference)webAppEClass.getEStructuralFeatures().get(30); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebApp_LocalEncodingMappingsLists() { - return (EReference)webAppEClass.getEStructuralFeatures().get(31); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebApp_Id() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(32); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebApp_MetadataComplete() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(33); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebApp_Version() { - return (EAttribute)webAppEClass.getEStructuralFeatures().get(34); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebAppDeploymentDescriptor() { - return webAppDeploymentDescriptorEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebAppDeploymentDescriptor_Mixed() { - return (EAttribute)webAppDeploymentDescriptorEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebAppDeploymentDescriptor_XMLNSPrefixMap() { - return (EReference)webAppDeploymentDescriptorEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebAppDeploymentDescriptor_XSISchemaLocation() { - return (EReference)webAppDeploymentDescriptorEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebAppDeploymentDescriptor_WebApp() { - return (EReference)webAppDeploymentDescriptorEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWebResourceCollection() { - return webResourceCollectionEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebResourceCollection_WebResourceName() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebResourceCollection_Descriptions() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getWebResourceCollection_UrlPatterns() { - return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebResourceCollection_HttpMethods() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWebResourceCollection_Id() { - return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWelcomeFileList() { - return welcomeFileListEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWelcomeFileList_WelcomeFiles() { - return (EAttribute)welcomeFileListEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWelcomeFileList_Id() { - return (EAttribute)welcomeFileListEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getDispatcherType() { - return dispatcherTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getNullCharType() { - return nullCharTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getTransportGuaranteeType() { - return transportGuaranteeTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getWebAppVersionType() { - return webAppVersionTypeEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getAuthMethodType() { - return authMethodTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getDispatcherTypeObject() { - return dispatcherTypeObjectEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getEncodingType() { - return encodingTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getErrorCodeType() { - return errorCodeTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getFilterNameType() { - return filterNameTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getHttpMethodType() { - return httpMethodTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getLoadOnStartupType() { - return loadOnStartupTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getLocaleType() { - return localeTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getMimeTypeType() { - return mimeTypeTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getNonEmptyStringType() { - return nonEmptyStringTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getNullCharTypeObject() { - return nullCharTypeObjectEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getServletNameType() { - return servletNameTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getTransportGuaranteeTypeObject() { - return transportGuaranteeTypeObjectEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getWarPathType() { - return warPathTypeEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getWebAppVersionTypeObject() { - return webAppVersionTypeObjectEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WebFactory getWebFactory() { - return (WebFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @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. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - authConstraintEClass = createEClass(AUTH_CONSTRAINT); - createEReference(authConstraintEClass, AUTH_CONSTRAINT__DESCRIPTIONS); - createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__ROLE_NAMES); - createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__ID); - - errorPageEClass = createEClass(ERROR_PAGE); - createEAttribute(errorPageEClass, ERROR_PAGE__ERROR_CODE); - createEAttribute(errorPageEClass, ERROR_PAGE__EXCEPTION_TYPE); - createEAttribute(errorPageEClass, ERROR_PAGE__LOCATION); - createEAttribute(errorPageEClass, ERROR_PAGE__ID); - - filterEClass = createEClass(FILTER); - createEReference(filterEClass, FILTER__DESCRIPTIONS); - createEReference(filterEClass, FILTER__DISPLAY_NAMES); - createEReference(filterEClass, FILTER__ICONS); - createEAttribute(filterEClass, FILTER__FILTER_NAME); - createEAttribute(filterEClass, FILTER__FILTER_CLASS); - createEReference(filterEClass, FILTER__INIT_PARAMS); - createEAttribute(filterEClass, FILTER__ID); - - filterMappingEClass = createEClass(FILTER_MAPPING); - createEAttribute(filterMappingEClass, FILTER_MAPPING__FILTER_NAME); - createEAttribute(filterMappingEClass, FILTER_MAPPING__GROUP); - createEReference(filterMappingEClass, FILTER_MAPPING__URL_PATTERNS); - createEAttribute(filterMappingEClass, FILTER_MAPPING__SERVLET_NAMES); - createEAttribute(filterMappingEClass, FILTER_MAPPING__DISPATCHERS); - createEAttribute(filterMappingEClass, FILTER_MAPPING__ID); - - formLoginConfigEClass = createEClass(FORM_LOGIN_CONFIG); - createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE); - createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_ERROR_PAGE); - createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__ID); - - localeEncodingMappingEClass = createEClass(LOCALE_ENCODING_MAPPING); - createEAttribute(localeEncodingMappingEClass, LOCALE_ENCODING_MAPPING__LOCALE); - createEAttribute(localeEncodingMappingEClass, LOCALE_ENCODING_MAPPING__ENCODING); - createEAttribute(localeEncodingMappingEClass, LOCALE_ENCODING_MAPPING__ID); - - localeEncodingMappingListEClass = createEClass(LOCALE_ENCODING_MAPPING_LIST); - createEReference(localeEncodingMappingListEClass, LOCALE_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS); - createEAttribute(localeEncodingMappingListEClass, LOCALE_ENCODING_MAPPING_LIST__ID); - - loginConfigEClass = createEClass(LOGIN_CONFIG); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__AUTH_METHOD); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__REALM_NAME); - createEReference(loginConfigEClass, LOGIN_CONFIG__FORM_LOGIN_CONFIG); - createEAttribute(loginConfigEClass, LOGIN_CONFIG__ID); - - mimeMappingEClass = createEClass(MIME_MAPPING); - createEAttribute(mimeMappingEClass, MIME_MAPPING__EXTENSION); - createEAttribute(mimeMappingEClass, MIME_MAPPING__MIME_TYPE); - createEAttribute(mimeMappingEClass, MIME_MAPPING__ID); - - securityConstraintEClass = createEClass(SECURITY_CONSTRAINT); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__DISPLAY_NAMES); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__AUTH_CONSTRAINT); - createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT); - createEAttribute(securityConstraintEClass, SECURITY_CONSTRAINT__ID); - - servletEClass = createEClass(SERVLET); - createEReference(servletEClass, SERVLET__DESCRIPTIONS); - createEReference(servletEClass, SERVLET__DISPLAY_NAMES); - createEReference(servletEClass, SERVLET__ICONS); - createEAttribute(servletEClass, SERVLET__SERVLET_NAME); - createEAttribute(servletEClass, SERVLET__SERVLET_CLASS); - createEAttribute(servletEClass, SERVLET__JSP_FILE); - createEReference(servletEClass, SERVLET__INIT_PARAMS); - createEAttribute(servletEClass, SERVLET__LOAD_ON_STARTUP); - createEReference(servletEClass, SERVLET__RUN_AS); - createEReference(servletEClass, SERVLET__SECURITY_ROLE_REFS); - createEAttribute(servletEClass, SERVLET__ID); - - servletMappingEClass = createEClass(SERVLET_MAPPING); - createEAttribute(servletMappingEClass, SERVLET_MAPPING__SERVLET_NAME); - createEReference(servletMappingEClass, SERVLET_MAPPING__URL_PATTERNS); - createEAttribute(servletMappingEClass, SERVLET_MAPPING__ID); - - sessionConfigEClass = createEClass(SESSION_CONFIG); - createEAttribute(sessionConfigEClass, SESSION_CONFIG__SESSION_TIMEOUT); - createEAttribute(sessionConfigEClass, SESSION_CONFIG__ID); - - userDataConstraintEClass = createEClass(USER_DATA_CONSTRAINT); - createEReference(userDataConstraintEClass, USER_DATA_CONSTRAINT__DESCRIPTIONS); - createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE); - createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__ID); - - webAppEClass = createEClass(WEB_APP); - createEAttribute(webAppEClass, WEB_APP__GROUP); - createEReference(webAppEClass, WEB_APP__DESCRIPTIONS); - createEReference(webAppEClass, WEB_APP__DISPLAY_NAMES); - createEReference(webAppEClass, WEB_APP__ICONS); - createEReference(webAppEClass, WEB_APP__DISTRIBUTABLES); - createEReference(webAppEClass, WEB_APP__CONTEXT_PARAMS); - createEReference(webAppEClass, WEB_APP__FILTERS); - createEReference(webAppEClass, WEB_APP__FILTER_MAPPINGS); - createEReference(webAppEClass, WEB_APP__LISTENERS); - createEReference(webAppEClass, WEB_APP__SERVLETS); - createEReference(webAppEClass, WEB_APP__SERVLET_MAPPINGS); - createEReference(webAppEClass, WEB_APP__SESSION_CONFIGS); - createEReference(webAppEClass, WEB_APP__MIME_MAPPINGS); - createEReference(webAppEClass, WEB_APP__WELCOME_FILE_LISTS); - createEReference(webAppEClass, WEB_APP__ERROR_PAGES); - createEReference(webAppEClass, WEB_APP__JSP_CONFIGS); - createEReference(webAppEClass, WEB_APP__SECURITY_CONSTRAINTS); - createEReference(webAppEClass, WEB_APP__LOGIN_CONFIGS); - createEReference(webAppEClass, WEB_APP__SECURITY_ROLES); - createEReference(webAppEClass, WEB_APP__ENV_ENTRIES); - createEReference(webAppEClass, WEB_APP__EJB_REFS); - createEReference(webAppEClass, WEB_APP__EJB_LOCAL_REFS); - createEReference(webAppEClass, WEB_APP__SERVICE_REFS); - createEReference(webAppEClass, WEB_APP__RESOURCE_REFS); - createEReference(webAppEClass, WEB_APP__RESOURCE_ENV_REFS); - createEReference(webAppEClass, WEB_APP__MESSAGE_DESTINATION_REFS); - createEReference(webAppEClass, WEB_APP__PERSISTENCE_CONTEXT_REFS); - createEReference(webAppEClass, WEB_APP__PERSISTENCE_UNIT_REFS); - createEReference(webAppEClass, WEB_APP__POST_CONSTRUCTS); - createEReference(webAppEClass, WEB_APP__PRE_DESTROYS); - createEReference(webAppEClass, WEB_APP__MESSAGE_DESTINATIONS); - createEReference(webAppEClass, WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS); - createEAttribute(webAppEClass, WEB_APP__ID); - createEAttribute(webAppEClass, WEB_APP__METADATA_COMPLETE); - createEAttribute(webAppEClass, WEB_APP__VERSION); - - webAppDeploymentDescriptorEClass = createEClass(WEB_APP_DEPLOYMENT_DESCRIPTOR); - createEAttribute(webAppDeploymentDescriptorEClass, WEB_APP_DEPLOYMENT_DESCRIPTOR__MIXED); - createEReference(webAppDeploymentDescriptorEClass, WEB_APP_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); - createEReference(webAppDeploymentDescriptorEClass, WEB_APP_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); - createEReference(webAppDeploymentDescriptorEClass, WEB_APP_DEPLOYMENT_DESCRIPTOR__WEB_APP); - - webResourceCollectionEClass = createEClass(WEB_RESOURCE_COLLECTION); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__DESCRIPTIONS); - createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__URL_PATTERNS); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__HTTP_METHODS); - createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__ID); - - welcomeFileListEClass = createEClass(WELCOME_FILE_LIST); - createEAttribute(welcomeFileListEClass, WELCOME_FILE_LIST__WELCOME_FILES); - createEAttribute(welcomeFileListEClass, WELCOME_FILE_LIST__ID); - - // Create enums - dispatcherTypeEEnum = createEEnum(DISPATCHER_TYPE); - nullCharTypeEEnum = createEEnum(NULL_CHAR_TYPE); - transportGuaranteeTypeEEnum = createEEnum(TRANSPORT_GUARANTEE_TYPE); - webAppVersionTypeEEnum = createEEnum(WEB_APP_VERSION_TYPE); - - // Create data types - authMethodTypeEDataType = createEDataType(AUTH_METHOD_TYPE); - dispatcherTypeObjectEDataType = createEDataType(DISPATCHER_TYPE_OBJECT); - encodingTypeEDataType = createEDataType(ENCODING_TYPE); - errorCodeTypeEDataType = createEDataType(ERROR_CODE_TYPE); - filterNameTypeEDataType = createEDataType(FILTER_NAME_TYPE); - httpMethodTypeEDataType = createEDataType(HTTP_METHOD_TYPE); - loadOnStartupTypeEDataType = createEDataType(LOAD_ON_STARTUP_TYPE); - localeTypeEDataType = createEDataType(LOCALE_TYPE); - mimeTypeTypeEDataType = createEDataType(MIME_TYPE_TYPE); - nonEmptyStringTypeEDataType = createEDataType(NON_EMPTY_STRING_TYPE); - nullCharTypeObjectEDataType = createEDataType(NULL_CHAR_TYPE_OBJECT); - servletNameTypeEDataType = createEDataType(SERVLET_NAME_TYPE); - transportGuaranteeTypeObjectEDataType = createEDataType(TRANSPORT_GUARANTEE_TYPE_OBJECT); - warPathTypeEDataType = createEDataType(WAR_PATH_TYPE); - webAppVersionTypeObjectEDataType = createEDataType(WEB_APP_VERSION_TYPE_OBJECT); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @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. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - JavaeePackage theJavaeePackage = (JavaeePackage)EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI); - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - JspPackage theJspPackage = (JspPackage)EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI); - - // Add supertypes to classes - - // Initialize classes and features; add operations and parameters - initEClass(authConstraintEClass, AuthConstraint.class, "AuthConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getAuthConstraint_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getAuthConstraint_RoleNames(), theJavaeePackage.getRoleName(), "roleNames", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getAuthConstraint_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(errorPageEClass, ErrorPage.class, "ErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getErrorPage_ErrorCode(), this.getErrorCodeType(), "errorCode", null, 0, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getErrorPage_ExceptionType(), theJavaeePackage.getFullyQualifiedClassType(), "exceptionType", null, 0, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getErrorPage_Location(), this.getWarPathType(), "location", null, 1, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getErrorPage_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(filterEClass, Filter.class, "Filter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getFilter_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFilter_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFilter_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilter_FilterName(), this.getFilterNameType(), "filterName", null, 1, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilter_FilterClass(), theJavaeePackage.getFullyQualifiedClassType(), "filterClass", null, 1, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFilter_InitParams(), theJavaeePackage.getParamValue(), null, "initParams", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilter_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(filterMappingEClass, FilterMapping.class, "FilterMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getFilterMapping_FilterName(), this.getFilterNameType(), "filterName", null, 1, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilterMapping_Group(), ecorePackage.getEFeatureMapEntry(), "group", null, 0, -1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getFilterMapping_UrlPatterns(), theJavaeePackage.getUrlPatternType(), null, "urlPatterns", null, 0, -1, FilterMapping.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilterMapping_ServletNames(), this.getServletNameType(), "servletNames", null, 0, -1, FilterMapping.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFilterMapping_Dispatchers(), this.getDispatcherType(), "dispatchers", "FORWARD", 0, 4, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getFilterMapping_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(formLoginConfigEClass, FormLoginConfig.class, "FormLoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getFormLoginConfig_FormLoginPage(), this.getWarPathType(), "formLoginPage", null, 1, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFormLoginConfig_FormErrorPage(), this.getWarPathType(), "formErrorPage", null, 1, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getFormLoginConfig_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(localeEncodingMappingEClass, LocaleEncodingMapping.class, "LocaleEncodingMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getLocaleEncodingMapping_Locale(), this.getLocaleType(), "locale", null, 1, 1, LocaleEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getLocaleEncodingMapping_Encoding(), this.getEncodingType(), "encoding", null, 1, 1, LocaleEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getLocaleEncodingMapping_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, LocaleEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(localeEncodingMappingListEClass, LocaleEncodingMappingList.class, "LocaleEncodingMappingList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getLocaleEncodingMappingList_LocalEncodingMappings(), this.getLocaleEncodingMapping(), null, "localEncodingMappings", null, 1, -1, LocaleEncodingMappingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getLocaleEncodingMappingList_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, LocaleEncodingMappingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(loginConfigEClass, LoginConfig.class, "LoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getLoginConfig_AuthMethod(), this.getAuthMethodType(), "authMethod", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getLoginConfig_RealmName(), theXMLTypePackage.getToken(), "realmName", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getLoginConfig_FormLoginConfig(), this.getFormLoginConfig(), null, "formLoginConfig", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getLoginConfig_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(mimeMappingEClass, MimeMapping.class, "MimeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getMimeMapping_Extension(), theXMLTypePackage.getToken(), "extension", null, 1, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getMimeMapping_MimeType(), this.getMimeTypeType(), "mimeType", null, 1, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getMimeMapping_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(securityConstraintEClass, SecurityConstraint.class, "SecurityConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getSecurityConstraint_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getSecurityConstraint_WebResourceCollections(), this.getWebResourceCollection(), null, "webResourceCollections", null, 1, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getSecurityConstraint_AuthConstraint(), this.getAuthConstraint(), null, "authConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getSecurityConstraint_UserDataConstraint(), this.getUserDataConstraint(), null, "userDataConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getSecurityConstraint_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(servletEClass, Servlet.class, "Servlet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getServlet_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServlet_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServlet_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServlet_ServletName(), this.getServletNameType(), "servletName", null, 1, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServlet_ServletClass(), theJavaeePackage.getFullyQualifiedClassType(), "servletClass", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServlet_JspFile(), theJspPackage.getJspFileType(), "jspFile", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServlet_InitParams(), theJavaeePackage.getParamValue(), null, "initParams", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServlet_LoadOnStartup(), this.getLoadOnStartupType(), "loadOnStartup", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServlet_RunAs(), theJavaeePackage.getRunAs(), null, "runAs", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServlet_SecurityRoleRefs(), theJavaeePackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServlet_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(servletMappingEClass, ServletMapping.class, "ServletMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getServletMapping_ServletName(), this.getServletNameType(), "servletName", null, 1, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getServletMapping_UrlPatterns(), theJavaeePackage.getUrlPatternType(), null, "urlPatterns", null, 1, -1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getServletMapping_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(sessionConfigEClass, SessionConfig.class, "SessionConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getSessionConfig_SessionTimeout(), theXMLTypePackage.getInteger(), "sessionTimeout", null, 0, 1, SessionConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getSessionConfig_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, SessionConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(userDataConstraintEClass, UserDataConstraint.class, "UserDataConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getUserDataConstraint_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getUserDataConstraint_TransportGuarantee(), this.getTransportGuaranteeType(), "transportGuarantee", "NONE", 1, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getUserDataConstraint_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(webAppEClass, WebApp.class, "WebApp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWebApp_Group(), ecorePackage.getEFeatureMapEntry(), "group", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Distributables(), theJavaeePackage.getEmptyType(), null, "distributables", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ContextParams(), theJavaeePackage.getParamValue(), null, "contextParams", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Filters(), this.getFilter(), null, "filters", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_FilterMappings(), this.getFilterMapping(), null, "filterMappings", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Listeners(), theJavaeePackage.getListener(), null, "listeners", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_Servlets(), this.getServlet(), null, "servlets", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ServletMappings(), this.getServletMapping(), null, "servletMappings", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_SessionConfigs(), this.getSessionConfig(), null, "sessionConfigs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_MimeMappings(), this.getMimeMapping(), null, "mimeMappings", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_WelcomeFileLists(), this.getWelcomeFileList(), null, "welcomeFileLists", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ErrorPages(), this.getErrorPage(), null, "errorPages", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_JspConfigs(), theJspPackage.getJspConfig(), null, "jspConfigs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_SecurityConstraints(), this.getSecurityConstraint(), null, "securityConstraints", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_LoginConfigs(), this.getLoginConfig(), null, "loginConfigs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_SecurityRoles(), theJavaeePackage.getSecurityRole(), null, "securityRoles", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_EnvEntries(), theJavaeePackage.getEnvEntry(), null, "envEntries", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_EjbRefs(), theJavaeePackage.getEjbRef(), null, "ejbRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_EjbLocalRefs(), theJavaeePackage.getEjbLocalRef(), null, "ejbLocalRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ServiceRefs(), theJavaeePackage.getServiceRef(), null, "serviceRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ResourceRefs(), theJavaeePackage.getResourceRef(), null, "resourceRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_ResourceEnvRefs(), theJavaeePackage.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_MessageDestinationRefs(), theJavaeePackage.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_PersistenceContextRefs(), theJavaeePackage.getPersistenceContextRef(), null, "persistenceContextRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_PersistenceUnitRefs(), theJavaeePackage.getPersistenceUnitRef(), null, "persistenceUnitRefs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_PostConstructs(), theJavaeePackage.getLifecycleCallback(), null, "postConstructs", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_PreDestroys(), theJavaeePackage.getLifecycleCallback(), null, "preDestroys", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_MessageDestinations(), theJavaeePackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebApp_LocalEncodingMappingsLists(), this.getLocaleEncodingMappingList(), null, "localEncodingMappingsLists", null, 0, -1, WebApp.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWebApp_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWebApp_MetadataComplete(), theXMLTypePackage.getBoolean(), "metadataComplete", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWebApp_Version(), this.getWebAppVersionType(), "version", "2.5", 1, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(webAppDeploymentDescriptorEClass, WebAppDeploymentDescriptor.class, "WebAppDeploymentDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWebAppDeploymentDescriptor_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebAppDeploymentDescriptor_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); //$NON-NLS-1$ - initEReference(getWebAppDeploymentDescriptor_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); //$NON-NLS-1$ - initEReference(getWebAppDeploymentDescriptor_WebApp(), this.getWebApp(), null, "webApp", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(webResourceCollectionEClass, WebResourceCollection.class, "WebResourceCollection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWebResourceCollection_WebResourceName(), theXMLTypePackage.getToken(), "webResourceName", null, 1, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebResourceCollection_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWebResourceCollection_UrlPatterns(), theJavaeePackage.getUrlPatternType(), null, "urlPatterns", null, 1, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWebResourceCollection_HttpMethods(), this.getHttpMethodType(), "httpMethods", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWebResourceCollection_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(welcomeFileListEClass, WelcomeFileList.class, "WelcomeFileList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWelcomeFileList_WelcomeFiles(), theXMLTypePackage.getString(), "welcomeFiles", null, 1, -1, WelcomeFileList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWelcomeFileList_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, WelcomeFileList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Initialize enums and add enum literals - initEEnum(dispatcherTypeEEnum, DispatcherType.class, "DispatcherType"); //$NON-NLS-1$ - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.FORWARD_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.INCLUDE_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.REQUEST_LITERAL); - addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.ERROR_LITERAL); - - initEEnum(nullCharTypeEEnum, NullCharType.class, "NullCharType"); //$NON-NLS-1$ - addEEnumLiteral(nullCharTypeEEnum, NullCharType.__LITERAL); - - initEEnum(transportGuaranteeTypeEEnum, TransportGuaranteeType.class, "TransportGuaranteeType"); //$NON-NLS-1$ - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.NONE_LITERAL); - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.INTEGRAL_LITERAL); - addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.CONFIDENTIAL_LITERAL); - - initEEnum(webAppVersionTypeEEnum, WebAppVersionType.class, "WebAppVersionType"); //$NON-NLS-1$ - addEEnumLiteral(webAppVersionTypeEEnum, WebAppVersionType._25_LITERAL); - - // Initialize data types - initEDataType(authMethodTypeEDataType, String.class, "AuthMethodType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(dispatcherTypeObjectEDataType, DispatcherType.class, "DispatcherTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(encodingTypeEDataType, String.class, "EncodingType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(errorCodeTypeEDataType, BigInteger.class, "ErrorCodeType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(filterNameTypeEDataType, String.class, "FilterNameType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(httpMethodTypeEDataType, String.class, "HttpMethodType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(loadOnStartupTypeEDataType, Object.class, "LoadOnStartupType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(localeTypeEDataType, String.class, "LocaleType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(mimeTypeTypeEDataType, String.class, "MimeTypeType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(nonEmptyStringTypeEDataType, String.class, "NonEmptyStringType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(nullCharTypeObjectEDataType, NullCharType.class, "NullCharTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(servletNameTypeEDataType, String.class, "ServletNameType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(transportGuaranteeTypeObjectEDataType, TransportGuaranteeType.class, "TransportGuaranteeTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(warPathTypeEDataType, String.class, "WarPathType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEDataType(webAppVersionTypeObjectEDataType, WebAppVersionType.class, "WebAppVersionTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (authConstraintEClass, - source, - new String[] { - "name", "auth-constraintType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getAuthConstraint_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getAuthConstraint_RoleNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "role-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getAuthConstraint_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (authMethodTypeEDataType, - source, - new String[] { - "name", "auth-methodType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#token" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (dispatcherTypeEEnum, - source, - new String[] { - "name", "dispatcherType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (dispatcherTypeObjectEDataType, - source, - new String[] { - "name", "dispatcherType:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "dispatcherType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (encodingTypeEDataType, - source, - new String[] { - "name", "encodingType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#string", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "[^\\s]+" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (errorCodeTypeEDataType, - source, - new String[] { - "name", "error-codeType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#positiveInteger", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "\\d{3}" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (errorPageEClass, - source, - new String[] { - "name", "error-pageType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getErrorPage_ErrorCode(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "error-code", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getErrorPage_ExceptionType(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "exception-type", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getErrorPage_Location(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "location", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getErrorPage_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (filterEClass, - source, - new String[] { - "name", "filterType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_DisplayNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_Icons(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "icon", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_FilterName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "filter-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_FilterClass(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "filter-class", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_InitParams(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "init-param", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilter_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (filterMappingEClass, - source, - new String[] { - "name", "filter-mappingType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_FilterName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "filter-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_Group(), - source, - new String[] { - "kind", "group", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "group:1" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_UrlPatterns(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "url-pattern", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:1" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_ServletNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:1" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_Dispatchers(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "dispatcher", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFilterMapping_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (filterNameTypeEDataType, - source, - new String[] { - "name", "filter-nameType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "nonEmptyStringType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (formLoginConfigEClass, - source, - new String[] { - "name", "form-login-configType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFormLoginConfig_FormLoginPage(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "form-login-page", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFormLoginConfig_FormErrorPage(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "form-error-page", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getFormLoginConfig_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (httpMethodTypeEDataType, - source, - new String[] { - "name", "http-methodType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#token", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "[\\p{L}-[\\p{Cc}\\p{Z}]]+" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (loadOnStartupTypeEDataType, - source, - new String[] { - "name", "load-on-startupType", //$NON-NLS-1$ //$NON-NLS-2$ - "memberTypes", "null-charType http://www.eclipse.org/emf/2003/XMLType#integer" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (localeEncodingMappingEClass, - source, - new String[] { - "name", "locale-encoding-mappingType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLocaleEncodingMapping_Locale(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "locale", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLocaleEncodingMapping_Encoding(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "encoding", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLocaleEncodingMapping_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (localeEncodingMappingListEClass, - source, - new String[] { - "name", "locale-encoding-mapping-listType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLocaleEncodingMappingList_LocalEncodingMappings(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "locale-encoding-mapping", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLocaleEncodingMappingList_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (localeTypeEDataType, - source, - new String[] { - "name", "localeType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#string", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "[a-z]{2}(_|-)?([\\p{L}\\-\\p{Nd}]{2})?" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (loginConfigEClass, - source, - new String[] { - "name", "login-configType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLoginConfig_AuthMethod(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "auth-method", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLoginConfig_RealmName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "realm-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLoginConfig_FormLoginConfig(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "form-login-config", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLoginConfig_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (mimeMappingEClass, - source, - new String[] { - "name", "mime-mappingType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMimeMapping_Extension(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "extension", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMimeMapping_MimeType(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "mime-type", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getMimeMapping_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (mimeTypeTypeEDataType, - source, - new String[] { - "name", "mime-typeType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#token", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "[^\\p{Cc}^\\s]+/[^\\p{Cc}^\\s]+" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (nonEmptyStringTypeEDataType, - source, - new String[] { - "name", "nonEmptyStringType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#token", //$NON-NLS-1$ //$NON-NLS-2$ - "minLength", "1" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (nullCharTypeEEnum, - source, - new String[] { - "name", "null-charType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (nullCharTypeObjectEDataType, - source, - new String[] { - "name", "null-charType:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "null-charType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (securityConstraintEClass, - source, - new String[] { - "name", "security-constraintType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSecurityConstraint_DisplayNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSecurityConstraint_WebResourceCollections(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "web-resource-collection", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSecurityConstraint_AuthConstraint(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "auth-constraint", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSecurityConstraint_UserDataConstraint(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "user-data-constraint", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSecurityConstraint_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (servletEClass, - source, - new String[] { - "name", "servletType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_DisplayNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_Icons(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "icon", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_ServletName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_ServletClass(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet-class", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_JspFile(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "jsp-file", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_InitParams(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "init-param", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_LoadOnStartup(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "load-on-startup", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_RunAs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "run-as", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_SecurityRoleRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "security-role-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServlet_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (servletMappingEClass, - source, - new String[] { - "name", "servlet-mappingType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServletMapping_ServletName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServletMapping_UrlPatterns(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "url-pattern", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getServletMapping_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (servletNameTypeEDataType, - source, - new String[] { - "name", "servlet-nameType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "nonEmptyStringType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (sessionConfigEClass, - source, - new String[] { - "name", "session-configType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSessionConfig_SessionTimeout(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "session-timeout", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getSessionConfig_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (transportGuaranteeTypeEEnum, - source, - new String[] { - "name", "transport-guaranteeType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (transportGuaranteeTypeObjectEDataType, - source, - new String[] { - "name", "transport-guaranteeType:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "transport-guaranteeType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (userDataConstraintEClass, - source, - new String[] { - "name", "user-data-constraintType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getUserDataConstraint_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getUserDataConstraint_TransportGuarantee(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "transport-guarantee", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getUserDataConstraint_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (warPathTypeEDataType, - source, - new String[] { - "name", "war-pathType", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "http://www.eclipse.org/emf/2003/XMLType#token", //$NON-NLS-1$ //$NON-NLS-2$ - "pattern", "/.*" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webAppEClass, - source, - new String[] { - "name", "web-appType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Group(), - source, - new String[] { - "kind", "group", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_DisplayNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Icons(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "icon", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Distributables(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "distributable", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ContextParams(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "context-param", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Filters(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "filter", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_FilterMappings(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "filter-mapping", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Listeners(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "listener", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Servlets(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ServletMappings(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "servlet-mapping", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_SessionConfigs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "session-config", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_MimeMappings(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "mime-mapping", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_WelcomeFileLists(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "welcome-file-list", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ErrorPages(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "error-page", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_JspConfigs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "jsp-config", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_SecurityConstraints(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "security-constraint", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_LoginConfigs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "login-config", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_SecurityRoles(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "security-role", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_EnvEntries(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "env-entry", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_EjbRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "ejb-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_EjbLocalRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "ejb-local-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ServiceRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "service-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ResourceRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "resource-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_ResourceEnvRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "resource-env-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_MessageDestinationRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "message-destination-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_PersistenceContextRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "persistence-context-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_PersistenceUnitRefs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "persistence-unit-ref", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_PostConstructs(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "post-construct", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_PreDestroys(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "pre-destroy", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_MessageDestinations(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "message-destination", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_LocalEncodingMappingsLists(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "locale-encoding-mapping-list", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace", //$NON-NLS-1$ //$NON-NLS-2$ - "group", "#group:0" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_MetadataComplete(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "metadata-complete" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebApp_Version(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "version" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webAppDeploymentDescriptorEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebAppDeploymentDescriptor_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebAppDeploymentDescriptor_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebAppDeploymentDescriptor_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebAppDeploymentDescriptor_WebApp(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "web-app", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webAppVersionTypeEEnum, - source, - new String[] { - "name", "web-app-versionType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webAppVersionTypeObjectEDataType, - source, - new String[] { - "name", "web-app-versionType:Object", //$NON-NLS-1$ //$NON-NLS-2$ - "baseType", "web-app-versionType" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webResourceCollectionEClass, - source, - new String[] { - "name", "web-resource-collectionType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebResourceCollection_WebResourceName(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "web-resource-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebResourceCollection_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebResourceCollection_UrlPatterns(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "url-pattern", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebResourceCollection_HttpMethods(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "http-method", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWebResourceCollection_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (welcomeFileListEClass, - source, - new String[] { - "name", "welcome-file-listType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWelcomeFileList_WelcomeFiles(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "welcome-file", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWelcomeFileList_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //WebPackageImpl diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebResourceCollectionImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebResourceCollectionImpl.java deleted file mode 100644 index 22e2e96c7..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WebResourceCollectionImpl.java +++ /dev/null @@ -1,349 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WebResourceCollectionImpl.java,v 1.1 2007/03/20 18:04:38 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -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.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.EDataTypeEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.core.Description; -import org.eclipse.jst.javaee.core.UrlPatternType; - -import org.eclipse.jst.javaee.web.WebResourceCollection; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Resource Collection</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebResourceCollectionImpl#getWebResourceName <em>Web Resource Name</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebResourceCollectionImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebResourceCollectionImpl#getUrlPatterns <em>Url Patterns</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebResourceCollectionImpl#getHttpMethods <em>Http Methods</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebResourceCollectionImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebResourceCollectionImpl extends EObjectImpl implements WebResourceCollection { - /** - * The default value of the '{@link #getWebResourceName() <em>Web Resource Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebResourceName() - * @generated - * @ordered - */ - protected static final String WEB_RESOURCE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWebResourceName() <em>Web Resource Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebResourceName() - * @generated - * @ordered - */ - protected String webResourceName = WEB_RESOURCE_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getUrlPatterns() <em>Url Patterns</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUrlPatterns() - * @generated - * @ordered - */ - protected EList urlPatterns = null; - - /** - * The cached value of the '{@link #getHttpMethods() <em>Http Methods</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHttpMethods() - * @generated - * @ordered - */ - protected EList httpMethods = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebResourceCollectionImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.WEB_RESOURCE_COLLECTION; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWebResourceName() { - return webResourceName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWebResourceName(String newWebResourceName) { - String oldWebResourceName = webResourceName; - webResourceName = newWebResourceName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME, oldWebResourceName, webResourceName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getUrlPatterns() { - if (urlPatterns == null) { - urlPatterns = new EObjectContainmentEList(UrlPatternType.class, this, WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS); - } - return urlPatterns; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getHttpMethods() { - if (httpMethods == null) { - httpMethods = new EDataTypeEList(String.class, this, WebPackage.WEB_RESOURCE_COLLECTION__HTTP_METHODS); - } - return httpMethods; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_RESOURCE_COLLECTION__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS: - return ((InternalEList)getUrlPatterns()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - return getWebResourceName(); - case WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return getDescriptions(); - case WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS: - return getUrlPatterns(); - case WebPackage.WEB_RESOURCE_COLLECTION__HTTP_METHODS: - return getHttpMethods(); - case WebPackage.WEB_RESOURCE_COLLECTION__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - setWebResourceName((String)newValue); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS: - getUrlPatterns().clear(); - getUrlPatterns().addAll((Collection)newValue); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__HTTP_METHODS: - getHttpMethods().clear(); - getHttpMethods().addAll((Collection)newValue); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - setWebResourceName(WEB_RESOURCE_NAME_EDEFAULT); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS: - getUrlPatterns().clear(); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__HTTP_METHODS: - getHttpMethods().clear(); - return; - case WebPackage.WEB_RESOURCE_COLLECTION__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME: - return WEB_RESOURCE_NAME_EDEFAULT == null ? webResourceName != null : !WEB_RESOURCE_NAME_EDEFAULT.equals(webResourceName); - case WebPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case WebPackage.WEB_RESOURCE_COLLECTION__URL_PATTERNS: - return urlPatterns != null && !urlPatterns.isEmpty(); - case WebPackage.WEB_RESOURCE_COLLECTION__HTTP_METHODS: - return httpMethods != null && !httpMethods.isEmpty(); - case WebPackage.WEB_RESOURCE_COLLECTION__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (webResourceName: "); //$NON-NLS-1$ - result.append(webResourceName); - result.append(", httpMethods: "); //$NON-NLS-1$ - result.append(httpMethods); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //WebResourceCollectionImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WelcomeFileListImpl.java b/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WelcomeFileListImpl.java deleted file mode 100644 index 63ddf39f9..000000000 --- a/plugins/org.eclipse.jst.jee/models/org/eclipse/jst/javaee/web/internal/impl/WelcomeFileListImpl.java +++ /dev/null @@ -1,205 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: WelcomeFileListImpl.java,v 1.1 2007/03/20 18:04:37 jsholl Exp $ - */ -package org.eclipse.jst.javaee.web.internal.impl; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.EDataTypeEList; - -import org.eclipse.jst.javaee.web.WelcomeFileList; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Welcome File List</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WelcomeFileListImpl#getWelcomeFiles <em>Welcome Files</em>}</li> - * <li>{@link org.eclipse.jst.javaee.web.internal.impl.WelcomeFileListImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WelcomeFileListImpl extends EObjectImpl implements WelcomeFileList { - /** - * The cached value of the '{@link #getWelcomeFiles() <em>Welcome Files</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWelcomeFiles() - * @generated - * @ordered - */ - protected EList welcomeFiles = null; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WelcomeFileListImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return WebPackage.Literals.WELCOME_FILE_LIST; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getWelcomeFiles() { - if (welcomeFiles == null) { - welcomeFiles = new EDataTypeEList(String.class, this, WebPackage.WELCOME_FILE_LIST__WELCOME_FILES); - } - return welcomeFiles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WELCOME_FILE_LIST__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case WebPackage.WELCOME_FILE_LIST__WELCOME_FILES: - return getWelcomeFiles(); - case WebPackage.WELCOME_FILE_LIST__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case WebPackage.WELCOME_FILE_LIST__WELCOME_FILES: - getWelcomeFiles().clear(); - getWelcomeFiles().addAll((Collection)newValue); - return; - case WebPackage.WELCOME_FILE_LIST__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case WebPackage.WELCOME_FILE_LIST__WELCOME_FILES: - getWelcomeFiles().clear(); - return; - case WebPackage.WELCOME_FILE_LIST__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case WebPackage.WELCOME_FILE_LIST__WELCOME_FILES: - return welcomeFiles != null && !welcomeFiles.isEmpty(); - case WebPackage.WELCOME_FILE_LIST__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (welcomeFiles: "); //$NON-NLS-1$ - result.append(welcomeFiles); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //WelcomeFileListImpl
\ No newline at end of file |