org.eclipse.jst.server.core
Interface IEnterpriseApplication


public interface IEnterpriseApplication

A representation of a J2EE enterprise application (EAR file).

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made 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.


Method Summary
 boolean containsLooseModules()
          Returns true if this EAR supports loose modules and false otherwise.
 java.lang.String getJ2EESpecificationVersion()
          Returns a version number in the form "x.y.z".
 org.eclipse.core.runtime.IPath getLocation()
          Returns the location of the root of the application.
 IModule[] getModules()
          Returns the modules contained within this EAR.
 java.lang.String getURI(IJ2EEModule module)
          Returns the URI of the given J2EE module within this enterprise application.
 

Method Detail

getJ2EESpecificationVersion

public java.lang.String getJ2EESpecificationVersion()
Returns a version number in the form "x.y.z".

Returns:
the J2EE specification version

getModules

public IModule[] getModules()
Returns the modules contained within this EAR. The returned modules will all be adaptable to IJ2EEModule.

Returns:
a possibly empty array of modules contained within this application

getURI

public java.lang.String getURI(IJ2EEModule module)
Returns the URI of the given J2EE module within this enterprise application.

Parameters:
module - a module within this application
Returns:
the URI of the given module, or null if the URI could not be found

containsLooseModules

public boolean containsLooseModules()
Returns true if this EAR supports loose modules and false otherwise.

Returns:
returns true if this module contains loose modules, or false otherwise

getLocation

public org.eclipse.core.runtime.IPath getLocation()
Returns the location of the root of the application. This should be an absolute path that is not workbench relative.

Returns:
the absolute path to the root of this application