|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectArtifactEdit
org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit
org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit
EARArtifactEdit obtains an org.eclipse.jst.j2ee.application.Application
metamodel.
The org.eclipse.jst.j2ee.application.ApplicationResource
which stores the metamodel
is retrieved from the org.eclipse.wst.common.modulecore.ArtifactEditModel
using a
cached constant (@see
org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants#APPLICATION_DD_URI). The
defined methods extract data or manipulate the contents of the underlying resource.
Field Summary | |
---|---|
static java.lang.Class |
ADAPTER_TYPE
|
static java.lang.String |
TYPE_ID
Identifier used to group and query common artifact edits. |
Constructor Summary | |
---|---|
EARArtifactEdit(ArtifactEditModel model)
Creates an instance facade for the given ArtifactEditModel . |
|
EARArtifactEdit(ComponentHandle aHandle,
boolean toAccessAsReadOnly)
|
|
EARArtifactEdit(ModuleCoreNature aNature,
WorkbenchComponent aModule,
boolean toAccessAsReadOnly)
Creates an instance facade for the given ArtifactEditModel
|
Method Summary | |
---|---|
EObject |
createModelRoot()
Create an deployment descriptor resource if one does not get and return it. |
EObject |
createModelRoot(int version)
Create an deployment descriptor resource if one does not get and return it. |
Application |
getApplication()
Obtains the Application Application root object from the ApplicationResource ,
the root object contains all other resource defined objects. |
ApplicationResource |
getApplicationXmiResource()
|
Resource |
getDeploymentDescriptorResource()
Retrieves the resource from the ArtifactEditModel
|
static EARArtifactEdit |
getEARArtifactEditForRead(ComponentHandle aHandle)
Returns an instance facade to manage the underlying edit model for the given WorkbenchComponent . |
static EARArtifactEdit |
getEARArtifactEditForWrite(ComponentHandle aHandle)
Returns an instance facade to manage the underlying edit model for the given WorkbenchComponent . |
int |
getJ2EEVersion()
Retrieves J2EE version information from ApplicationResource. |
java.util.List |
getWorkbenchJ2EEModules(WorkbenchComponent module)
Note: This method is for internal use only. |
java.util.List |
getWorkbenchUtilModules(WorkbenchComponent module)
Note: This method is for internal use only. |
static boolean |
isValidEARModule(WorkbenchComponent aModule)
|
boolean |
uriExists(java.lang.String currentURI)
Checks if the uri mapping already exists. |
Methods inherited from class org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit |
---|
delete, getDeploymentDescriptorRoot, getExistingWorkingCopy, getWorkingCopy, getWorkingCopyManager |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Class ADAPTER_TYPE
public static java.lang.String TYPE_ID
Identifier used to group and query common artifact edits.
Constructor Detail |
public EARArtifactEdit(ComponentHandle aHandle, boolean toAccessAsReadOnly) throws java.lang.IllegalArgumentException
aHandle
- toAccessAsReadOnly
-
java.lang.IllegalArgumentException
public EARArtifactEdit(ArtifactEditModel model)
Creates an instance facade for the given ArtifactEditModel
.
public EARArtifactEdit(ModuleCoreNature aNature, WorkbenchComponent aModule, boolean toAccessAsReadOnly)
Creates an instance facade for the given ArtifactEditModel
Note: This method is for internal use only. Clients should not call this method.
aNature
- A non-null ModuleCoreNature
for an accessible projectaModule
- A non-null WorkbenchComponent
pointing to a module from the given
ModuleCoreNature
Method Detail |
public static EARArtifactEdit getEARArtifactEditForRead(ComponentHandle aHandle)
Returns an instance facade to manage the underlying edit model for the given
WorkbenchComponent
. Instances of ArtifactEdit that are returned through this method
must be #dispose()
ed of when no longer in use.
Use to acquire an ArtifactEdit facade for a specific WorkbenchComponent
that
will not be used for editing. Invocations of any save*() API on an instance returned from
this method will throw exceptions.
The following method may return null.
public static EARArtifactEdit getEARArtifactEditForWrite(ComponentHandle aHandle)
Returns an instance facade to manage the underlying edit model for the given
WorkbenchComponent
. Instances of ArtifactEdit that are returned through this method
must be #dispose()
ed of when no longer in use.
Use to acquire an ArtifactEdit facade for a specific WorkbenchComponent
that
will be used for editing.
The following method may return null.
public static boolean isValidEARModule(WorkbenchComponent aModule) throws UnresolveableURIException
ArtifactEdit#isValidEditableModule(WorkbenchComponent)
and the moduleTypeId is a
JST module
UnresolveableURIException
public int getJ2EEVersion()
Retrieves J2EE version information from ApplicationResource.
getJ2EEVersion
in class EnterpriseArtifactEdit
public ApplicationResource getApplicationXmiResource()
public Application getApplication()
Obtains the Application Application
root object from the ApplicationResource
,
the root object contains all other resource defined objects.
public Resource getDeploymentDescriptorResource()
Retrieves the resource from the ArtifactEditModel
getDeploymentDescriptorResource
in class EnterpriseArtifactEdit
public boolean uriExists(java.lang.String currentURI)
public EObject createModelRoot()
EnterpriseArtifactEdit
Create an deployment descriptor resource if one does not get and return it. Subclasses should overwrite this method to create their own type of deployment descriptor
createModelRoot
in class EnterpriseArtifactEdit
public EObject createModelRoot(int version)
EnterpriseArtifactEdit
Create an deployment descriptor resource if one does not get and return it. Subclasses should overwrite this method to create their own type of deployment descriptor
createModelRoot
in class EnterpriseArtifactEdit
public java.util.List getWorkbenchUtilModules(WorkbenchComponent module)
Note: This method is for internal use only. Clients should not call this method.
public java.util.List getWorkbenchJ2EEModules(WorkbenchComponent module)
Note: This method is for internal use only. Clients should not call this method.
module
-
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |