/******************************************************************************* * Copyright (c) 2009, 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.core.resource.orm; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.core.utility.TextRange; import org.eclipse.text.edits.ReplaceEdit; /** * * A representation of the model object 'Xml Type Mapping'. * * 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. * * * *

* The following features are supported: *

*

* * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlTypeMapping() * @model kind="class" interface="true" abstract="true" * @generated */ public interface XmlTypeMapping extends XmlAccessHolder { /** * Returns the value of the 'Class Name' attribute. * *

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

* * @return the value of the 'Class Name' attribute. * @see #setClassName(String) * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlTypeMapping_ClassName() * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" * @generated */ String getClassName(); /** * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlTypeMapping#getClassName Class Name}' attribute. * * * @param value the new value of the 'Class Name' attribute. * @see #getClassName() * @generated */ void setClassName(String value); /** * Returns the value of the 'Metadata Complete' attribute. * *

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

* * @return the value of the 'Metadata Complete' attribute. * @see #setMetadataComplete(Boolean) * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlTypeMapping_MetadataComplete() * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" * @generated */ Boolean getMetadataComplete(); /** * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlTypeMapping#getMetadataComplete Metadata Complete}' attribute. * * * @param value the new value of the 'Metadata Complete' attribute. * @see #getMetadataComplete() * @generated */ void setMetadataComplete(Boolean value); /** * Returns the value of the 'Description' attribute. * *

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

* * @return the value of the 'Description' attribute. * @see #setDescription(String) * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlTypeMapping_Description() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * @generated */ String getDescription(); /** * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlTypeMapping#getDescription Description}' attribute. * * * @param value the new value of the 'Description' attribute. * @see #getDescription() * @generated */ void setDescription(String value); /** * Returns the value of the 'Attributes' containment reference. * *

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

* * @return the value of the 'Attributes' containment reference. * @see #setAttributes(Attributes) * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlTypeMapping_Attributes() * @model containment="true" * @generated */ Attributes getAttributes(); /** * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlTypeMapping#getAttributes Attributes}' containment reference. * * * @param value the new value of the 'Attributes' containment reference. * @see #getAttributes() * @generated */ void setAttributes(Attributes value); TextRange getClassTextRange(); TextRange getAttributesTextRange(); //TODO not happy with this, or the corresponding one in XmlAttributeMapping String getMappingKey(); // ********** refactoring ********** ReplaceEdit createRenameTypeEdit(IType originalType, String newName); ReplaceEdit createRenamePackageEdit(String newName); } // XmlTypeMapping