/******************************************************************************* * Copyright (c) 2008, 2010 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.eclipselink.core.resource.orm; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.jpt.core.resource.xml.AbstractJpaEObject; import org.eclipse.jpt.core.resource.xml.JpaEObject; /** * * A representation of the model object 'Xml Customizer'. * * Provisional API: This interface is part of an interim API that is still * under development and expected to change significantly before reaching * stability. It is available at this early stage to solicit feedback from * pioneering adopters on the understanding that any code that uses this API * will almost certainly be broken (repeatedly) as the API evolves. * * @version 2.1 * @since 2.1 * * *

* The following features are supported: *

*

* * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCustomizer() * @model kind="class" * @extends JpaEObject * @generated */ public class XmlCustomizer extends AbstractJpaEObject implements JpaEObject { /** * The default value of the '{@link #getCustomizerClassName() Customizer Class Name}' attribute. * * * @see #getCustomizerClassName() * @generated * @ordered */ protected static final String CUSTOMIZER_CLASS_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getCustomizerClassName() Customizer Class Name}' attribute. * * * @see #getCustomizerClassName() * @generated * @ordered */ protected String customizerClassName = CUSTOMIZER_CLASS_NAME_EDEFAULT; /** * * * @generated */ protected XmlCustomizer() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return EclipseLinkOrmPackage.Literals.XML_CUSTOMIZER; } /** * Returns the value of the 'Customizer Class Name' attribute. * *

* If the meaning of the 'Customizer Class Name' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Customizer Class Name' attribute. * @see #setCustomizerClassName(String) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCustomizer_CustomizerClassName() * @model * @generated */ public String getCustomizerClassName() { return customizerClassName; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer#getCustomizerClassName Customizer Class Name}' attribute. * * * @param value the new value of the 'Customizer Class Name' attribute. * @see #getCustomizerClassName() * @generated */ public void setCustomizerClassName(String newCustomizerClassName) { String oldCustomizerClassName = customizerClassName; customizerClassName = newCustomizerClassName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME, oldCustomizerClassName, customizerClassName)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case EclipseLinkOrmPackage.XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME: return getCustomizerClassName(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case EclipseLinkOrmPackage.XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME: setCustomizerClassName((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME: setCustomizerClassName(CUSTOMIZER_CLASS_NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME: return CUSTOMIZER_CLASS_NAME_EDEFAULT == null ? customizerClassName != null : !CUSTOMIZER_CLASS_NAME_EDEFAULT.equals(customizerClassName); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (customizerClassName: "); result.append(customizerClassName); result.append(')'); return result.toString(); } } // XmlCustomizer