g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class GenericVoCreator

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

public class GenericVoCreator
extends AbstractGridElementCreator
implements ICreatorSourceMatcher

Grid element creator for the GenericVirtualOrganization.


Constructor Summary
GenericVoCreator()
           
 
Method Summary
 void apply(GenericVirtualOrganization vo)
          Apply this creators settings to the specified VO.
 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.
 void createService(IGridElementCreator creator, java.net.URI fromURI)
           
 java.lang.String getExtensionID()
           
 java.lang.String getVoName()
          Get the VO's name.
 void maintainService(IGridService service)
           
 void setVoName(java.lang.String name)
          Set the VO's name.
 
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

GenericVoCreator

public GenericVoCreator()
Method Detail

createService

public void createService(IGridElementCreator creator,
                          java.net.URI fromURI)
                   throws ProblemException
Throws:
ProblemException

maintainService

public void maintainService(IGridService service)

apply

public void apply(GenericVirtualOrganization vo)
           throws ProblemException
Apply this creators settings to the specified VO.

Parameters:
vo - The GenericVirtualOrganization to which to apply this creators settings.
Throws:
ProblemException

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.

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.

getExtensionID

public java.lang.String getExtensionID()

getVoName

public java.lang.String getVoName()
Get the VO's name.

Returns:
The unique name of the VO.

setVoName

public void setVoName(java.lang.String name)
Set the VO's name.

Parameters:
name - The unique name of the VO.

g-Eclipse
Release 1.0.0