g-Eclipse
Release 1.0.0

eu.geclipse.core.filesystem
Class FileSystemCreator

java.lang.Object
  extended by eu.geclipse.core.model.impl.AbstractGridElementCreator
      extended by eu.geclipse.core.filesystem.FileSystemCreator
All Implemented Interfaces:
ICreatorSourceMatcher, IGridElementCreator

public class FileSystemCreator
extends AbstractGridElementCreator
implements ICreatorSourceMatcher

Grid element creator for file system mounts. This class both creates root mounts for file systems and element mounts for child nodes.


Constructor Summary
FileSystemCreator()
           
 
Method Summary
 boolean canCreate(java.lang.Object source)
          Matcher method that determines if the corresponding IGridElementCreator can create an IGridElement from the specified object.
 IGridElement create(IGridContainer parent)
          Create an element and set it to be a child of the specified IGridContainer.
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElementCreator
create, getSource, setSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemCreator

public FileSystemCreator()
Method Detail

create

public IGridElement create(IGridContainer parent)
                    throws ProblemException
Description copied from interface: IGridElementCreator
Create an element and set it to be a child of the specified IGridContainer. The element is created from the object that was specified in a former call to IGridElementCreator.setSource(Object). If the creation fails a ProblemException will be thrown.

Specified by:
create in interface IGridElementCreator
Parameters:
parent - The parent of the newly created element.
Returns:
The newly created element.
Throws:
ProblemException - If any problem occurs while the new element is created. For instance if a source object is needed to create the element but was not defined before.

canCreate

public boolean canCreate(java.lang.Object source)
Description copied from interface: ICreatorSourceMatcher
Matcher method that determines if the corresponding IGridElementCreator can create an IGridElement from the specified object.

Specified by:
canCreate in interface ICreatorSourceMatcher
Parameters:
source - The object from which to create an element.
Returns:
True if the corresponding creator is potentially able to create elements from the specified object.

g-Eclipse
Release 1.0.0