Ecore

org.topcased.modeler.ecore.ediagram.utils
Class EOperationDataStructure

java.lang.Object
  extended by org.topcased.modeler.ecore.ediagram.utils.EOperationDataStructure

public class EOperationDataStructure
extends java.lang.Object

Provide a structure for handling Operation data
creation : 1 june 2005


Nested Class Summary
 class EOperationDataStructure.ParameterObject
          Internal class to handle a parameter
 
Constructor Summary
EOperationDataStructure(EOperation operation)
          The constructor
 
Method Summary
 void add(EParameter parameter)
          Add a property to the structure
 void add(java.lang.String name, EClassifier type)
           
 void addAll(java.util.Collection<EParameter> parameters)
          Add a collection of properties to an instance specification
 java.util.Collection<EOperationDataStructure.ParameterObject> getData()
          get the data collection
 java.lang.String getDisplayName(java.lang.Object object)
          Get the name of a given object
 java.lang.String getDisplayType(java.lang.Object object)
          Get the type name of a given object
 EClassifier getType(java.lang.Object object)
          Get the type of a given object
 void remove(java.lang.Object object)
           
 void setName(java.lang.Object object, java.lang.String name)
           
 void setType(java.lang.Object object, EClassifier type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOperationDataStructure

public EOperationDataStructure(EOperation operation)
The constructor

Parameters:
operation -
Method Detail

add

public void add(EParameter parameter)
Add a property to the structure

Parameters:
parameter -

add

public void add(java.lang.String name,
                EClassifier type)
Parameters:
name -
type -

remove

public void remove(java.lang.Object object)
Parameters:
object -

addAll

public void addAll(java.util.Collection<EParameter> parameters)
Add a collection of properties to an instance specification

Parameters:
parameters -

getData

public java.util.Collection<EOperationDataStructure.ParameterObject> getData()
get the data collection

Returns:
a Collection of InstanceStructureObject objects

getDisplayName

public java.lang.String getDisplayName(java.lang.Object object)
Get the name of a given object

Parameters:
object - OperationDataObject object
Returns:
the name

getDisplayType

public java.lang.String getDisplayType(java.lang.Object object)
Get the type name of a given object

Parameters:
object - OperationDataObject object
Returns:
the name of the type

getType

public EClassifier getType(java.lang.Object object)
Get the type of a given object

Parameters:
object - OperationDataObject object
Returns:
the type

setName

public void setName(java.lang.Object object,
                    java.lang.String name)
Parameters:
object -
name -

setType

public void setType(java.lang.Object object,
                    EClassifier type)
Parameters:
object -
type -

Ecore

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.