use of org.osate.aadl2.ModeTransition in project osate2 by osate.
the class ModeTransitionHandler method getRelativeReference.
@Override
public RelativeBusinessObjectReference getRelativeReference(final ReferenceContext ctx) {
final ModeTransition mt = ctx.getBusinessObject(ModeTransition.class).get();
final String name = mt.getName();
if (name == null) {
return AadlReferenceUtil.getUnnamedModeTransitionRelativeReference(mt);
} else {
return AadlReferenceUtil.buildSimpleRelativeReference(DeclarativeReferenceType.MODE_TRANSITION_NAMED.getId(), mt);
}
}
Aggregations