org.eclipse.jpt.common.core
Interface JptResourceModel

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

public interface JptResourceModel

Listeners are notified whenever anything in the JPT 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(JptResourceModelListener listener)
          Changes to the resource model result in events.
 JptResourceType getResourceType()
          Return the resource type of the model.
 void removeResourceModelListener(JptResourceModelListener listener)
           
 

Method Detail

getResourceType

JptResourceType 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(JptResourceModelListener 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(JptResourceModelListener listener)
See Also:
addResourceModelListener(JptResourceModelListener)