All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.xsd.impl.XSDSchemaCompositorImpl Maven / Gradle / Ivy

/**
 * Copyright (c) 2002-2006 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v20.html
 * 
 * Contributors: 
 *   IBM - Initial API and implementation
 */
package org.eclipse.xsd.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.util.EcoreUtil;

import org.eclipse.xsd.XSDPackage;
import org.eclipse.xsd.XSDSchema;
import org.eclipse.xsd.XSDSchemaCompositor;


/**
 * 
 * An implementation of the model object 'Schema Compositor'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.eclipse.xsd.impl.XSDSchemaCompositorImpl#getIncorporatedSchema Incorporated Schema}
  • *
* * @generated */ public abstract class XSDSchemaCompositorImpl extends XSDSchemaDirectiveImpl implements XSDSchemaCompositor { /** * The cached value of the '{@link #getIncorporatedSchema() Incorporated Schema}' reference. * * * @see #getIncorporatedSchema() * @generated * @ordered */ protected XSDSchema incorporatedSchema; /** * * * @generated */ protected XSDSchemaCompositorImpl() { super(); } @Override public void reset() { super.reset(); if (incorporatedSchema != resolvedSchema && incorporatedSchema != null && incorporatedSchema.eContainer() != null) { EcoreUtil.remove(incorporatedSchema); incorporatedSchema.reset(); } } /** * * * @generated */ @Override protected EClass eStaticClass() { return XSDPackage.Literals.XSD_SCHEMA_COMPOSITOR; } /** * * * @generated */ @Override public XSDSchema getIncorporatedSchema() { return incorporatedSchema; } /** * * * @generated */ @Override public void setIncorporatedSchema(XSDSchema newIncorporatedSchema) { XSDSchema oldIncorporatedSchema = incorporatedSchema; incorporatedSchema = newIncorporatedSchema; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, XSDPackage.XSD_SCHEMA_COMPOSITOR__INCORPORATED_SCHEMA, oldIncorporatedSchema, incorporatedSchema)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case XSDPackage.XSD_SCHEMA_COMPOSITOR__INCORPORATED_SCHEMA: return getIncorporatedSchema(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XSDPackage.XSD_SCHEMA_COMPOSITOR__INCORPORATED_SCHEMA: setIncorporatedSchema((XSDSchema)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case XSDPackage.XSD_SCHEMA_COMPOSITOR__INCORPORATED_SCHEMA: setIncorporatedSchema((XSDSchema)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case XSDPackage.XSD_SCHEMA_COMPOSITOR__INCORPORATED_SCHEMA: return incorporatedSchema != null; } return super.eIsSet(featureID); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy