pl.edu.agh.cast.schema.editor.request
Class SchemaConnectionFactory

java.lang.Object
  extended by pl.edu.agh.cast.schema.editor.request.SchemaConnectionFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory, ICreationFactory

public class SchemaConnectionFactory
extends Object
implements ICreationFactory

Creation factory which produces new ISchemaConnection objects.

Author:
AGH CAST Team

Constructor Summary
SchemaConnectionFactory()
           
 
Method Summary
 Object getNewObject()
          This method is unsupported by this implementation.
 Object getNewObject(ISchemaDataSet dataSet)
           Returns a new object which belongs to given schema data set.
 Type getObjectType()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaConnectionFactory

public SchemaConnectionFactory()
Method Detail

getNewObject

public Object getNewObject(ISchemaDataSet dataSet)

Returns a new object which belongs to given schema data set.

Note: The element must be explicitly added to the data set using ISchemaDataSet#addElement(pl.edu.agh.cast.schema.model.presentation.ISchemaElement) method.

Specified by:
getNewObject in interface ICreationFactory
Parameters:
dataSet - schema data set.
Returns:
a new object
See Also:
#getNewObject(pl.edu.agh.cast.schema.model.presentation.ISchemaDataSet)

getObjectType

public Type getObjectType()

Specified by:
getObjectType in interface org.eclipse.gef.requests.CreationFactory
Specified by:
getObjectType in interface ICreationFactory
See Also:
ICreationFactory.getObjectType()

getNewObject

public Object getNewObject()
This method is unsupported by this implementation. Use getNewObject(ISchemaDataSet) method instead.

Specified by:
getNewObject in interface org.eclipse.gef.requests.CreationFactory
See Also:
CreationFactory.getNewObject()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.