UML

org.topcased.modeler.uml.sequencediagram.util
Class MessageArgument

java.lang.Object
  extended by org.topcased.modeler.uml.sequencediagram.util.MessageArgument

public class MessageArgument
extends java.lang.Object

This class is used to manipulate ValueSpecification via the MessageArgumentsTableViewer

See Also:
org.topcased.modeler.uml.sequencediagram.properties.sections.MessageArgumentsTableViewer

Constructor Summary
MessageArgument(org.eclipse.uml2.uml.ValueSpecification valueSpec, org.eclipse.uml2.uml.TypedElement typedElement)
          The constructor
 
Method Summary
 java.lang.String getName()
          Return the name of tha argument
 org.eclipse.uml2.uml.Type getType()
          Get the type of the arguent
 org.eclipse.uml2.uml.ValueSpecification getValueSpecification()
          Return the ValueSpecification corresponding to the argument
 void setName(java.lang.String name)
          Set the name of the argument
 void setStringValue(java.lang.String textValue)
          Set the valueSpec of the ValueSpecification of the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageArgument

public MessageArgument(org.eclipse.uml2.uml.ValueSpecification valueSpec,
                       org.eclipse.uml2.uml.TypedElement typedElement)
The constructor

Parameters:
valueSpec - the ValueSpecification
typedElement - the TypedElement (Parameter or Property)
Method Detail

getValueSpecification

public org.eclipse.uml2.uml.ValueSpecification getValueSpecification()
Return the ValueSpecification corresponding to the argument

Returns:
a ValueSpecification

setStringValue

public void setStringValue(java.lang.String textValue)
Set the valueSpec of the ValueSpecification of the argument. If the valueSpec is null, the argument's ValueSpecification is now a LitteralNull.

Parameters:
textValue - the valueSpec as a string

getType

public org.eclipse.uml2.uml.Type getType()
Get the type of the arguent

Returns:
the type

getName

public java.lang.String getName()
Return the name of tha argument

Returns:
the name

setName

public void setName(java.lang.String name)
Set the name of the argument

Parameters:
name - the new name

UML

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