UML

org.topcased.modeler.uml.classdiagram.util
Class OperationDataStructure

java.lang.Object
  extended by org.topcased.modeler.uml.classdiagram.util.OperationDataStructure

public class OperationDataStructure
extends java.lang.Object

Provide a structure for handling Operation data
creation : 27 may 2005


Nested Class Summary
 class OperationDataStructure.ParameterObject
          Internal class to handle a parameter
 
Constructor Summary
OperationDataStructure(org.eclipse.uml2.uml.Operation operation)
          The constructor
 
Method Summary
 void add(org.eclipse.uml2.uml.Parameter parameter)
          Add a parameter to the structure
 void add(java.lang.String name, org.eclipse.uml2.uml.Type type)
          Add a parameter to the structure
 void addAll(java.util.Collection parameters)
          Add a collection of parameters to the operation
 java.util.Collection getData()
          Get the datas
 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
 org.eclipse.uml2.uml.Type getType(java.lang.Object object)
          Get the type of a given object
 void remove(java.lang.Object object)
          Remove a parameter or the name or etc..; from the structure
 void setName(java.lang.Object object, java.lang.String name)
          Set the name of the parameter object
 void setType(java.lang.Object object, org.eclipse.uml2.uml.Type type)
          Set the type of the parameter object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationDataStructure

public OperationDataStructure(org.eclipse.uml2.uml.Operation operation)
The constructor

Parameters:
operation - the Operation
Method Detail

add

public void add(org.eclipse.uml2.uml.Parameter parameter)
Add a parameter to the structure

Parameters:
parameter - the parameter to add

add

public void add(java.lang.String name,
                org.eclipse.uml2.uml.Type type)
Add a parameter to the structure

Parameters:
name - the parameter name
type - the parameter type

remove

public void remove(java.lang.Object object)
Remove a parameter or the name or etc..; from the structure

Parameters:
object - the object to remove

addAll

public void addAll(java.util.Collection parameters)
Add a collection of parameters to the operation

Parameters:
parameters - the collection of parameters to add

getData

public java.util.Collection getData()
Get the datas

Returns:
a Collection of

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 org.eclipse.uml2.uml.Type 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)
Set the name of the parameter object

Parameters:
object - a ParameterObject
name - the new name

setType

public void setType(java.lang.Object object,
                    org.eclipse.uml2.uml.Type type)
Set the type of the parameter object

Parameters:
object - a ParameterObject
type - the new type

UML

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