org.eclipse.jpt.core
Interface JpaResourceModel

All Known Subinterfaces:
JavaResourceCompilationUnit, JavaResourceNode.Root, JavaResourcePackageFragmentRoot, JavaResourcePersistentTypeCache
All Known Implementing Classes:
JpaXmlResource

public interface JpaResourceModel

Listeners are notified whenever anything in the JPA resource model changes.

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.

Since:
2.2
Version:
2.3

Method Summary
 void addResourceModelListener(JpaResourceModelListener listener)
          Changes to the resource model result in events.
 JpaResourceType getResourceType()
          Return the resource type of the model.
 void removeResourceModelListener(JpaResourceModelListener listener)
           
 

Method Detail

getResourceType

JpaResourceType getResourceType()
Return the resource type of the model. This may potentially change. Return null if it cannot be determined, the content type or version is null.


addResourceModelListener

void addResourceModelListener(JpaResourceModelListener listener)
Changes to the resource model result in events. In particular, the JPA project performs an "update" whenever a resource model changes.


removeResourceModelListener

void removeResourceModelListener(JpaResourceModelListener listener)
See Also:
#addResourceModelListener(ResourceModelListener)