use of edu.uah.rsesc.aadlsimulator.xtext.inputConstraint.InputConstraint in project AGREE by loonwerks.
the class InputConstraintHelper method unparse.
public String unparse(final InputConstraint ic) {
if (ic == null) {
return "";
}
// If the input constraint is not part of a resource, copy the constraint, add it to a temporary resource, and then unparse.
if (ic.eResource() == null) {
final InputConstraint copy = EcoreUtil.copy(ic);
createResource().getContents().add(copy);
return unparse(copy);
} else {
return serializer.serialize(ic);
}
}
Aggregations