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
 void copyTaggedValues(Object from, Object to)
           
 boolean equalsBRANCHKind(Object kind)
          Deprecated. before 0.20 by tfmorris - UML 1.3 only - use Choice
 boolean equalsCHOICEKind(Object kind)
           
 boolean equalsDeepHistoryKind(Object kind)
           
 boolean equalsFORKKind(Object kind)
           
 boolean equalsINITIALKind(Object kind)
           
 boolean equalsJOINKind(Object kind)
           
 boolean equalsJUNCTIONKind(Object kind)
           
 boolean equalsShallowHistoryKind(Object kind)
           
 String getBody(Object handle)
          Gets the body of an expression.
 String getLanguage(Object handle)
          Gets the language of an expression.
 String multiplicityToString(Object multiplicity)
          Converts a Multiplicity to a String.
 Object setBody(Object handle, String body)
          Sets the body of an expression.
 Object setLanguage(Object handle, String language)
          Sets the language of an expression.
 

Method Detail

copyTaggedValues

public void copyTaggedValues(Object from,
                             Object to)
Parameters:
from - source
to - destination

equalsINITIALKind

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

equalsDeepHistoryKind

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

equalsShallowHistoryKind

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

equalsFORKKind

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

equalsJOINKind

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

equalsBRANCHKind

public boolean equalsBRANCHKind(Object kind)
Deprecated. before 0.20 by tfmorris - UML 1.3 only - use Choice

Parameters:
kind - the pseudostate kind (Choice)
Returns:
if this is a branch-choice kind

equalsCHOICEKind

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

equalsJUNCTIONKind

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

multiplicityToString

public String multiplicityToString(Object multiplicity)
Converts a Multiplicity to a String.

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

setBody

public Object setBody(Object handle,
                      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

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

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

setLanguage

public Object setLanguage(Object handle,
                          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

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

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


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook