org.eclipse.jpt.core.resource.common
Class JpaArtifactEdit

java.lang.Object
  extended by org.eclipse.wst.common.componentcore.ArtifactEdit
      extended by org.eclipse.jpt.core.resource.common.JpaArtifactEdit
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.wst.common.componentcore.IEditModelHandler
Direct Known Subclasses:
OrmArtifactEdit, PersistenceArtifactEdit

public abstract class JpaArtifactEdit
extends org.eclipse.wst.common.componentcore.ArtifactEdit

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.


Field Summary
 
Fields inherited from class org.eclipse.wst.common.componentcore.ArtifactEdit
ADAPTER_TYPE
 
Constructor Summary
JpaArtifactEdit(org.eclipse.core.resources.IProject aProject, boolean toAccessAsReadOnly)
           
 
Method Summary
abstract  JpaXmlResource getResource(org.eclipse.core.resources.IFile file)
           
abstract  JpaXmlResource getResource(java.lang.String deployURI)
           
 
Methods inherited from class org.eclipse.wst.common.componentcore.ArtifactEdit
addListener, commandStackChanged, deleteResource, dispose, forceLoadKnownResources, getAdapter, getArtifactEditForRead, getArtifactEditForRead, getArtifactEditForWrite, getArtifactEditForWrite, getCommandStack, getComponent, getContentModelRoot, getProject, getResource, hasEditModel, isBinary, isDirty, isProjectOfType, isReadOnly, isValid, isValidEditableModule, removeListener, save, saveIfNecessary, saveIfNecessaryWithPrompt, validateEdit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaArtifactEdit

public JpaArtifactEdit(org.eclipse.core.resources.IProject aProject,
                       boolean toAccessAsReadOnly)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

getResource

public abstract JpaXmlResource getResource(org.eclipse.core.resources.IFile file)
Returns:
a resource for the given file

getResource

public abstract JpaXmlResource getResource(java.lang.String deployURI)
Parameters:
deployURI - - this must be in a deployment relevant form (e.g "META-INF/persistence.xml" instead of "src/META-INF/persistence.xml")
Returns:
a resource for the given deployment file URI