|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface JaxbProject
A JAXB project is associated with an Eclipse project (and its corresponding
Java project). It holds the "resource" model that corresponds to the various
JPA-related resources (the persistence.xml file, its mapping files
[orm.xml],
and the Java source files). It also holds the "context" model that represents
the JPA metadata, as derived from spec-defined defaults, Java source code
annotations, and XML descriptors.
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.
| Nested Class Summary | |
|---|---|
static interface |
JaxbProject.Config
The settings used to construct a JAXB project. |
static class |
JaxbProject.ContextRootTransformer
|
static class |
JaxbProject.ProjectEquals
|
| Field Summary | |
|---|---|
static org.eclipse.jpt.common.utility.transformer.Transformer<JaxbProject,JaxbContextRoot> |
CONTEXT_ROOT_TRANSFORMER
|
static String |
EXTERNAL_JAVA_RESOURCE_COMPILATION_UNITS_COLLECTION
ID string used when the JPA project's collection of external Java resource compilation units changes. |
static IProjectFacet |
FACET
The JAXB project facet. |
static String |
FACET_ID
The JAXB project facet ID. |
static String |
JAXB_FILES_COLLECTION
ID string used when the JAXB project's collection of JAXB files changes. |
static String |
MARKER_TYPE
The JAXB validation marker type (value: "org.eclipse.jpt.jaxb.core.problem"). |
static String |
MARKER_TYPE_SCOPE
|
static String |
MARKER_TYPE_SCOPE_
|
static String |
RELATIVE_MARKER_TYPE
|
| Method Summary | |
|---|---|
void |
dispose()
The JAXB project has been removed from the JJAXBPA model. |
JavaResourcePackage |
getAnnotatedJavaResourcePackage(String packageName)
Return the java resource package for the specified package if and only if it has recognized annotations. |
Iterable<JavaResourcePackage> |
getAnnotatedJavaResourcePackages()
Return the java resource packages that are annotated with 1 or more valid JAXB package annotations |
Iterable<JavaResourceAbstractType> |
getAnnotatedJavaSourceResourceTypes()
Return all JavaResourceAbstractTypes that are represented by java source within this project,
that are also annotated with a recognized annotation (and are persistable) |
org.eclipse.jpt.jaxb.core.utility.Synchronizer |
getContextModelSynchronizer()
Return the synchronizer that will synchronize the context model with the resource model whenever the resource model changes. |
JaxbContextRoot |
getContextRoot()
Return the root of the JAXB project's context model. |
Iterable<JavaResourceCompilationUnit> |
getExternalJavaResourceCompilationUnits()
Return the JPA project's external Java resource compilation units. |
int |
getExternalJavaResourceCompilationUnitsSize()
Return the size of the JPA project's external Java resource compilation units. |
JavaResourceTypeCache |
getExternalJavaResourceTypeCache()
Return the JPA project's external Java resource persistent type cache. |
IJavaProject |
getJavaProject()
Return the Java project associated with the JAXB project. |
JavaResourcePackage |
getJavaResourcePackage(String packageName)
Return the Java resource package for the specified package. |
Iterable<JavaResourcePackage> |
getJavaResourcePackages()
Return the Java resource packages for the project. |
JavaResourceAbstractType |
getJavaResourceType(String typeName)
Return the JavaResourceAbstractType with the specified type name, regardless of
what kind it is. |
JavaResourceAbstractType |
getJavaResourceType(String typeName,
JavaResourceAnnotatedElement.AstNodeType astNodeType)
Return the JavaResourceAbstractType with the specified type name and astNodeType. |
Iterable<JavaResourceAbstractType> |
getJavaSourceResourceTypes()
Return all JavaResourceAbstractTypes that are represented by java source within this project |
JaxbFile |
getJaxbFile(IFile file)
Return the JAXB file corresponding to the specified file. |
Iterable<JaxbFile> |
getJaxbFiles()
Return the JAXB project's JAXB files. |
int |
getJaxbFilesSize()
Return the size of the JAXB project's JAXB files. |
JaxbIndexResource |
getJaxbIndexResource(String packageName)
Return the first jaxb.index resource model (could be multiple if there are multiple locations for a given package) with the given package name |
Iterable<JaxbIndexResource> |
getJaxbIndexResources()
Return all jaxb.index resource models within the project |
JaxbPropertiesResource |
getJaxbPropertiesResource(String packageName)
Return the first jaxb.properties resource model (could be multiple if there are multiple locations for a given package) with the given package name |
Iterable<JaxbPropertiesResource> |
getJaxbPropertiesResources()
Return all jaxb.properties resource models within the project |
ExtendedCommandContext |
getModifySharedDocumentCommandContext()
Return the project-wide implementation of the ExtendedCommandContext interface. |
String |
getName()
Return the JAXB project's name, which is the same as the associated Eclipse project's name. |
JaxbPlatform |
getPlatform()
Return the vendor-specific JAXB platform that builds the JAXB project and its contents. |
Iterable<? extends JaxbContextNode> |
getPrimaryJavaNodes(ICompilationUnit cu)
Return all types/package infos that are primary context objects for the given compilation unit |
IProject |
getProject()
Return the Eclipse project associated with the JAXB project. |
SchemaLibrary |
getSchemaLibrary()
Return the schema library used for validating and user assist |
org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer |
getUpdateSynchronizer()
Return the synchronizer that will update the context model whenever it has any changes. |
Iterable<IMessage> |
getValidationMessages(IReporter reporter)
Return project's validation messages. |
void |
javaElementChanged(ElementChangedEvent event)
Synchronize the JPA project with the specified Java change. |
void |
projectChanged(IResourceDelta delta)
Synchronize the JPA project with the specified project resource delta, watching for added and removed files in particular. |
void |
setContextModelSynchronizer(org.eclipse.jpt.jaxb.core.utility.Synchronizer synchronizer)
Set the synchronizer that will keep the context model synchronized with the resource model whenever the resource model changes. |
void |
setThreadLocalModifySharedDocumentCommandContext(ExtendedCommandContext commandContext)
Set a thread-specific implementation of the ExtendedCommandContext
interface that will be used to execute a command to modify a shared
document. |
void |
setUpdateSynchronizer(org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer synchronizer)
Set the synchronizer that will update the context model whenever it has any changes. |
void |
synchronizeContextModel()
The JAXB project's resource model has changed; synchronize the JPA project's context model with it. |
IStatus |
synchronizeContextModel(IProgressMonitor monitor)
This is the callback used by the context model synchronizer to perform the actual "synchronize". |
void |
synchronizeContextModelAndWait()
Force the JAXB project's context model to synchronize with it resource model synchronously. |
IStatus |
update(IProgressMonitor monitor)
This is the callback used by the update synchronizer to perform the actual "update". |
void |
updateAndWait()
Force the JAXB project to "update" synchronously. |
| Methods inherited from interface org.eclipse.jpt.jaxb.core.JaxbNode |
|---|
getJaxbProject, getParent, getResource, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
static final String FACET_ID
Value: "jpt.jaxb"
static final IProjectFacet FACET
static final String MARKER_TYPE_SCOPE
static final String MARKER_TYPE_SCOPE_
static final String RELATIVE_MARKER_TYPE
static final String MARKER_TYPE
"org.eclipse.jpt.jaxb.core.problem").
See org.eclipse.jpt.jaxb.core/plugin.xml:org.eclipse.core.resources.markers.
IMarker.getType()static final String JAXB_FILES_COLLECTION
Model.addCollectionChangeListener(String, org.eclipse.jpt.common.utility.model.listener.CollectionChangeListener),
Constant Field Valuesstatic final String EXTERNAL_JAVA_RESOURCE_COMPILATION_UNITS_COLLECTION
Model.addCollectionChangeListener(String, org.eclipse.jpt.common.utility.model.listener.CollectionChangeListener),
Constant Field Valuesstatic final org.eclipse.jpt.common.utility.transformer.Transformer<JaxbProject,JaxbContextRoot> CONTEXT_ROOT_TRANSFORMER
| Method Detail |
|---|
String getName()
IProject getProject()
IJavaProject getJavaProject()
JaxbPlatform getPlatform()
SchemaLibrary getSchemaLibrary()
void dispose()
Iterable<JaxbFile> getJaxbFiles()
int getJaxbFilesSize()
JaxbFile getJaxbFile(IFile file)
Iterable<JavaResourceCompilationUnit> getExternalJavaResourceCompilationUnits()
int getExternalJavaResourceCompilationUnitsSize()
JavaResourceTypeCache getExternalJavaResourceTypeCache()
Iterable<JavaResourcePackage> getJavaResourcePackages()
JavaResourcePackage getJavaResourcePackage(String packageName)
Iterable<JavaResourcePackage> getAnnotatedJavaResourcePackages()
JavaResourcePackage getAnnotatedJavaResourcePackage(String packageName)
Iterable<JavaResourceAbstractType> getJavaSourceResourceTypes()
JavaResourceAbstractTypes that are represented by java source within this project
Iterable<JavaResourceAbstractType> getAnnotatedJavaSourceResourceTypes()
JavaResourceAbstractTypes that are represented by java source within this project,
that are also annotated with a recognized annotation (and are persistable)
JavaResourceAbstractType getJavaResourceType(String typeName)
JavaResourceAbstractType with the specified type name, regardless of
what kind it is.
Return null if absent.
JavaResourceAbstractType getJavaResourceType(String typeName,
JavaResourceAnnotatedElement.AstNodeType astNodeType)
JavaResourceAbstractType with the specified type name and astNodeType.
Return null if invalid or absent or if the astNodeType does not match.
Iterable<JaxbIndexResource> getJaxbIndexResources()
JaxbIndexResource getJaxbIndexResource(String packageName)
Iterable<JaxbPropertiesResource> getJaxbPropertiesResources()
JaxbPropertiesResource getJaxbPropertiesResource(String packageName)
JaxbContextRoot getContextRoot()
Iterable<? extends JaxbContextNode> getPrimaryJavaNodes(ICompilationUnit cu)
void projectChanged(IResourceDelta delta)
void javaElementChanged(ElementChangedEvent event)
org.eclipse.jpt.jaxb.core.utility.Synchronizer getContextModelSynchronizer()
void setContextModelSynchronizer(org.eclipse.jpt.jaxb.core.utility.Synchronizer synchronizer)
getContextModelSynchronizer()void synchronizeContextModel()
synchronizeContextModelAndWait()void synchronizeContextModelAndWait()
synchronizeContextModel(),
updateAndWait()IStatus synchronizeContextModel(IProgressMonitor monitor)
org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer getUpdateSynchronizer()
void setUpdateSynchronizer(org.eclipse.jpt.jaxb.core.utility.CallbackSynchronizer synchronizer)
getUpdateSynchronizer()void updateAndWait()
synchronizeContextModelAndWait()IStatus update(IProgressMonitor monitor)
Iterable<IMessage> getValidationMessages(IReporter reporter)
void setThreadLocalModifySharedDocumentCommandContext(ExtendedCommandContext commandContext)
ExtendedCommandContext
interface that will be used to execute a command to modify a shared
document. If necessary, the command context can be cleared by
setting it to null.
This allows background clients to modify documents that are
already present in the UI. See implementations of ExtendedCommandContext.
ExtendedCommandContext getModifySharedDocumentCommandContext()
ExtendedCommandContext interface.
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||