org.argouml.model
Interface DataTypesHelper

All Known Implementing Classes:
AbstractDataTypesHelperDecorator

public interface DataTypesHelper

The interface for the helper for DataTypes.

Created from the old DataTypesHelper.


Method Summary
 boolean equalsCHOICEKind(java.lang.Object kind)
           
 boolean equalsDeepHistoryKind(java.lang.Object kind)
           
 boolean equalsFORKKind(java.lang.Object kind)
           
 boolean equalsINITIALKind(java.lang.Object kind)
           
 boolean equalsJOINKind(java.lang.Object kind)
           
 boolean equalsJUNCTIONKind(java.lang.Object kind)
           
 boolean equalsShallowHistoryKind(java.lang.Object kind)
           
 java.lang.String getBody(java.lang.Object handle)
          Gets the body of an expression.
 java.lang.String getLanguage(java.lang.Object handle)
          Gets the language of an expression.
 java.lang.String multiplicityToString(java.lang.Object multiplicity)
          Converts a Multiplicity to a String.
 java.lang.Object setBody(java.lang.Object handle, java.lang.String body)
          Sets the body of an expression.
 java.lang.Object setLanguage(java.lang.Object handle, java.lang.String language)
          Sets the language of an expression.
 

Method Detail

equalsINITIALKind

boolean equalsINITIALKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
true if this is a initial kind

equalsDeepHistoryKind

boolean equalsDeepHistoryKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
if this is a history kind

equalsShallowHistoryKind

boolean equalsShallowHistoryKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
if this is a shallow history kind

equalsFORKKind

boolean equalsFORKKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
if this is a fork kind

equalsJOINKind

boolean equalsJOINKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
if this is a join kind

equalsCHOICEKind

boolean equalsCHOICEKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind (Choice)
Returns:
if this is a branch-choice kind

equalsJUNCTIONKind

boolean equalsJUNCTIONKind(java.lang.Object kind)
Parameters:
kind - the pseudostate kind
Returns:
if this is a junction kind

multiplicityToString

java.lang.String multiplicityToString(java.lang.Object multiplicity)
Converts a Multiplicity to a String.

Parameters:
multiplicity - The Multiplicity to convert.
Returns:
The String representation of multiplicity.
Throws:
java.lang.IllegalArgumentException - if multiplicity is not a Multiplicity.

setBody

java.lang.Object setBody(java.lang.Object handle,
                         java.lang.String body)
Sets the body of an expression. TODO: This operation is fooling the user in thinking that the body of the object is changed. Instead, a new object is created. There is no other way: a MExpression can not be altered, once created! So, this operation returns a newly created object instead.

Parameters:
handle - The expression to modify.
body - The body to set.
Returns:
The newly created expression.

getBody

java.lang.String getBody(java.lang.Object handle)
Gets the body of an expression.

Parameters:
handle - The expression to get.
Returns:
The body (a String).

setLanguage

java.lang.Object setLanguage(java.lang.Object handle,
                             java.lang.String language)
Sets the language of an expression. TODO: This operation is fooling the user in thinking that the body of the object is changed. Instead, a new object is created. There is no other way: a MExpression can not be altered, once created! So, this operation returns a newly created object instead.

Parameters:
handle - The expression.
language - The new language.
Returns:
The newly created Object.

getLanguage

java.lang.String getLanguage(java.lang.Object handle)
Gets the language of an expression.

Parameters:
handle - The expression to get.
Returns:
The language (a String).


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook