org.argouml.model
Class AbstractDataTypesHelperDecorator

java.lang.Object
  extended by org.argouml.model.AbstractDataTypesHelperDecorator
All Implemented Interfaces:
DataTypesHelper

public abstract class AbstractDataTypesHelperDecorator
extends java.lang.Object
implements DataTypesHelper

An abstract Decorator for the DataTypesHelper.


Constructor Summary
protected AbstractDataTypesHelperDecorator(DataTypesHelper component)
           
 
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.
protected  DataTypesHelper getComponent()
          The component we are decorating.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDataTypesHelperDecorator

protected AbstractDataTypesHelperDecorator(DataTypesHelper component)
Parameters:
component - The component to decorate.
Method Detail

getComponent

protected DataTypesHelper getComponent()
The component we are decorating.

Returns:
Returns the component.

equalsINITIALKind

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

equalsDeepHistoryKind

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

equalsShallowHistoryKind

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

equalsFORKKind

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

equalsJOINKind

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

equalsCHOICEKind

public boolean equalsCHOICEKind(java.lang.Object kind)
Specified by:
equalsCHOICEKind in interface DataTypesHelper
Parameters:
kind - the pseudostate kind (Choice)
Returns:
if this is a branch-choice kind

equalsJUNCTIONKind

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

multiplicityToString

public java.lang.String multiplicityToString(java.lang.Object multiplicity)
Description copied from interface: DataTypesHelper
Converts a Multiplicity to a String.

Specified by:
multiplicityToString in interface DataTypesHelper
Parameters:
multiplicity - The Multiplicity to convert.
Returns:
The String representation of multiplicity.

setBody

public java.lang.Object setBody(java.lang.Object handle,
                                java.lang.String body)
Description copied from interface: DataTypesHelper
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.

Specified by:
setBody in interface DataTypesHelper
Parameters:
handle - The expression to modify.
body - The body to set.
Returns:
The newly created expression.

getBody

public java.lang.String getBody(java.lang.Object handle)
Description copied from interface: DataTypesHelper
Gets the body of an expression.

Specified by:
getBody in interface DataTypesHelper
Parameters:
handle - The expression to get.
Returns:
The body (a String).

setLanguage

public java.lang.Object setLanguage(java.lang.Object handle,
                                    java.lang.String language)
Description copied from interface: DataTypesHelper
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.

Specified by:
setLanguage in interface DataTypesHelper
Parameters:
handle - The expression.
language - The new language.
Returns:
The newly created Object.

getLanguage

public java.lang.String getLanguage(java.lang.Object handle)
Description copied from interface: DataTypesHelper
Gets the language of an expression.

Specified by:
getLanguage in interface DataTypesHelper
Parameters:
handle - The expression to get.
Returns:
The language (a String).


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook