org.modeldriven.fuml.assembly.adapter
Class OpaqueExpressionAdapter

java.lang.Object
  extended by org.modeldriven.fuml.assembly.adapter.OpaqueExpressionAdapter
All Implemented Interfaces:
AssemblyAdapter

public class OpaqueExpressionAdapter
extends Object
implements AssemblyAdapter

OpaqueExpression is not supported in fUML and this class adapts away an OpaqueExpression into an fUML Element depending on the expression content. While the below logic is questionable, the class is intended to support conversion of these often found. For instance RSA and Eclipse and other tools generate them as the ObjectFlow guard attribute (below).

1

The next reasonable type in fUML to accommodate the expression is a LiteralInteger and the below logic in general swaps OpaqueExpression for some type of ValueSpecification.


Constructor Summary
OpaqueExpressionAdapter()
           
 
Method Summary
 Element assembleElement(StreamNode opaqueExpressionNode)
           
 Classifier getClassifier(StreamNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpaqueExpressionAdapter

public OpaqueExpressionAdapter()
Method Detail

assembleElement

public Element assembleElement(StreamNode opaqueExpressionNode)
Specified by:
assembleElement in interface AssemblyAdapter

getClassifier

public Classifier getClassifier(StreamNode node)
Specified by:
getClassifier in interface AssemblyAdapter


Copyright © 2012. All Rights Reserved.