org.modeldriven.fuml.assembly.adapter
Class OpaqueExpressionAdapter
java.lang.Object
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.
OpaqueExpressionAdapter
public OpaqueExpressionAdapter()
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.