org.eclipse.wst.common.componentcore.resources
Interface IFlexibleProject


public interface IFlexibleProject

Represents a project that supports a flexible project model.

Flexible projects contain logical "workbench components" which allow clients to group project resources to satisfy certain expected structures.

Since:
1.0

Method Summary
 void create(int theFlags, IProgressMonitor aMonitor)
          Creates an IFlexible Project model for the underlying IProject.
 IVirtualComponent getComponent(java.lang.String aComponentName)
          Finds and returns the component within this project, defined by the component model, specified by the component name.
 IVirtualComponent[] getComponents()
          Finds and returns the components within this project, defined by the component model.
 IProject getProject()
          Returns the underlying IProject
 boolean isFlexible()
           
 

Method Detail

getComponents

public IVirtualComponent[] getComponents()
Finds and returns the components within this project, defined by the component model.

Returns:
the array of components within this project

getComponent

public IVirtualComponent getComponent(java.lang.String aComponentName)
Finds and returns the component within this project, defined by the component model, specified by the component name. Returns null if no such component exists.

Parameters:
aComponentName - the string name of the component
Returns:
the component within this project with the given name or null if no such component exists

getProject

public IProject getProject()
Returns the underlying IProject

Returns:
the underlying IProject

isFlexible

public boolean isFlexible()
Returns:
true if the underlying IProject is flexible

create

public void create(int theFlags,
                   IProgressMonitor aMonitor)
Creates an IFlexible Project model for the underlying IProject. Assumes a valid IProject has already been created.