com.ashridgetech.jamda.uml
Class Parameter

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement
        |
        +--com.ashridgetech.jamda.uml.Parameter
All Implemented Interfaces:
TypedItem
Direct Known Subclasses:
ReturnParameter

public class Parameter
extends ModelElement
implements TypedItem

A UML Parameter. Contained by Operation.

Version:
1.0
Author:
paulb

Nested Class Summary
 
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException
 
Field Summary
 
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement
DUMMY_STORE
 
Constructor Summary
protected Parameter(ru.novosoft.uml.foundation.core.MParameter mp, Operation owner)
          Creates new Parameter from a NSUML MParameter object.
  Parameter(Operation owner, java.lang.String name, StandardTypeDef typeDef)
          Creates a new Parameter belonging to an Operation.
  Parameter(Operation owner, java.lang.String name, Type type)
          Creates a new Parameter belonging to an Operation.
 
Method Summary
 java.lang.String getMultName()
          Get the name of this TypedItem , converted to plural using Util.pluralize(java.lang.String) if isMultiple() returns true.
 Type getType()
          Get the type of this Parameter.
 boolean isMultiple()
          Indicate whether this Parameter can have multiple values.
 boolean isReturn()
          Show whether this Parameter is a return parameter.
 
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, checkValid, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getSubElementStore, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ashridgetech.jamda.uml.TypedItem
getComment, getName
 

Constructor Detail

Parameter

public Parameter(Operation owner,
                 java.lang.String name,
                 Type type)
Creates a new Parameter belonging to an Operation.

Parameters:
owner - the Operation to which this Parameter belongs
name - the name of the Parameter
type - the Type of this parameter

Parameter

public Parameter(Operation owner,
                 java.lang.String name,
                 StandardTypeDef typeDef)
Creates a new Parameter belonging to an Operation.

Parameters:
owner - the Operation to which this Parameter belongs
name - the name of the Parameter
typeDef - the definition of the Type of this parameter

Parameter

protected Parameter(ru.novosoft.uml.foundation.core.MParameter mp,
                    Operation owner)
Creates new Parameter from a NSUML MParameter object.

Method Detail

getMultName

public java.lang.String getMultName()
Get the name of this TypedItem , converted to plural using Util.pluralize(java.lang.String) if isMultiple() returns true.

Specified by:
getMultName in interface TypedItem
Returns:
the singular or plural name

getType

public Type getType()
Get the type of this Parameter.

Specified by:
getType in interface TypedItem
Returns:
the type

isReturn

public boolean isReturn()
Show whether this Parameter is a return parameter.

Returns:
true if this is a return parameter

isMultiple

public boolean isMultiple()
Indicate whether this Parameter can have multiple values.

Specified by:
isMultiple in interface TypedItem
Returns:
false for this implementation


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.