org.eclipse.graphiti.func
Interface ICreate

All Superinterfaces:
ICreateInfo
All Known Subinterfaces:
ICreateFeature, IPattern
All Known Implementing Classes:
AbstractCreateFeature, AbstractPattern, CreateFeatureForPattern

public interface ICreate
extends ICreateInfo

The Interface ICreate.


Field Summary
static Object[] EMPTY
          Empty object array as return for unsuccessful create operations.
 
Method Summary
 boolean canCreate(ICreateContext context)
          Checks if business object can be created for the given context.
 Object[] create(ICreateContext context)
          Creates the business object for the given context.
 
Methods inherited from interface org.eclipse.graphiti.func.ICreateInfo
getCreateDescription, getCreateImageId, getCreateLargeImageId, getCreateName
 

Field Detail

EMPTY

static final Object[] EMPTY
Empty object array as return for unsuccessful create operations.

Method Detail

canCreate

boolean canCreate(ICreateContext context)
Checks if business object can be created for the given context.

Parameters:
context - the context
Returns:
true if create is possible.

create

Object[] create(ICreateContext context)
Creates the business object for the given context.

Parameters:
context - the context
Returns:
the newly created objects


Copyright (c) SAP AG 2005, 2010.