org.argouml.model.uml
Class DataTypesHelperImpl

java.lang.Object
  extended byorg.argouml.model.uml.DataTypesHelperImpl
All Implemented Interfaces:
org.argouml.model.DataTypesHelper

class DataTypesHelperImpl
extends Object
implements org.argouml.model.DataTypesHelper

Helper class for UML Foundation::DataTypes Package.

Current implementation is a placeholder.

Since:
ARGO0.11.2

Field Summary
private  NSUMLModelImplementation nsmodel
          The model implementation.
 
Constructor Summary
(package private) DataTypesHelperImpl(NSUMLModelImplementation implementation)
          Don't allow instantiation.
 
Method Summary
 void copyTaggedValues(Object from, Object to)
           
 boolean equalsBRANCHKind(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 multiplicityToString(Object multiplicity)
          Converts a Multiplicity to a String.
 void setLanguage(Object handle, String language)
          Sets the language of an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nsmodel

private NSUMLModelImplementation nsmodel
The model implementation.

Constructor Detail

DataTypesHelperImpl

DataTypesHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation.

Parameters:
implementation - To get other helpers and factories.
Method Detail

copyTaggedValues

public void copyTaggedValues(Object from,
                             Object to)
Specified by:
copyTaggedValues in interface org.argouml.model.DataTypesHelper
Parameters:
from - source
to - destination

equalsINITIALKind

public boolean equalsINITIALKind(Object kind)
Specified by:
equalsINITIALKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
true if this is a initial kind

equalsDeepHistoryKind

public boolean equalsDeepHistoryKind(Object kind)
Specified by:
equalsDeepHistoryKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
if this is a history kind

equalsShallowHistoryKind

public boolean equalsShallowHistoryKind(Object kind)
Specified by:
equalsShallowHistoryKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
if this is a shallow history kind

equalsFORKKind

public boolean equalsFORKKind(Object kind)
Specified by:
equalsFORKKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
if this is a fork kind

equalsJOINKind

public boolean equalsJOINKind(Object kind)
Specified by:
equalsJOINKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
if this is a join kind

equalsBRANCHKind

public boolean equalsBRANCHKind(Object kind)
Specified by:
equalsBRANCHKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind (Choice)
Returns:
if this is a branch-choice kind

equalsJUNCTIONKind

public boolean equalsJUNCTIONKind(Object kind)
Specified by:
equalsJUNCTIONKind in interface org.argouml.model.DataTypesHelper
Parameters:
kind - the pseudostate kind
Returns:
if this is a junction kind

multiplicityToString

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

Specified by:
multiplicityToString in interface org.argouml.model.DataTypesHelper
Parameters:
multiplicity - The Multiplicity to convert.
Returns:
The String representation of multiplicity.
Throws:
IllegalArgumentException - if multiplicity is not a Multiplicity.

setLanguage

public void 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 and as a side-effect the body is lost. There is no other way: a MExpression can not be altered, once created! So, this operation should return the created object instead! Or should it simply copy the body?

Specified by:
setLanguage in interface org.argouml.model.DataTypesHelper
Parameters:
handle - is the expression
language - is the lang


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook