@@ -0,0 +1,2684 @@
+/**%0A * Copyright (c) 2017, Rockwell Collins.%0A * %0A * Developed with the sponsorship of Defense Advanced Research Projects Agency%0A * (DARPA).%0A * %0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this data, including any software or models in source or binary form, as%0A * well as any drawings, specifications, and documentation (collectively%0A * %22the Data%22), to deal in the Data without restriction, including without%0A * limitation the rights to use, copy, modify, merge, publish, distribute,%0A * sublicense, and/or sell copies of the Data, and to permit persons to whom the%0A * Data is furnished to do so, subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Data.%0A *%0A * THE DATA IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE%0A * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,%0A * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE%0A * USE OR OTHER DEALINGS IN THE DATA.%0A */%0A %0A%0Apackage com.rockwellcollins.atc.agree.unparsing;%0A%0Aimport org.eclipse.xtext.serializer.ISerializer;%0Aimport org.osate.aadl2.AnnexLibrary;%0Aimport org.osate.aadl2.AnnexSubclause;%0Aimport org.osate.annexsupport.AnnexUnparser;%0A%0Aimport com.google.inject.Inject;%0Aimport com.google.inject.Injector;%0Aimport com.rockwellcollins.atc.agree.agree.AgreeContract;%0Aimport com.rockwellcollins.atc.agree.serializer.AgreeSerializer;%0Aimport com.rockwellcollins.atc.agree.ui.internal.AgreeActivator;%0A%0A%0Apublic class AgreeAnnexUnparser implements AnnexUnparser %7B%0A    @Inject private ISerializer serializer;%0A%0A    protected ISerializer getSerializer() %7B%0A        if (serializer == null) %7B%0A            Injector injector = AgreeActivator.getInstance().getInjector(%0A                    AgreeActivator.COM_ROCKWELLCOLLINS_ATC_AGREE_AGREE);%0A            serializer = injector.getInstance(AgreeSerializer.class);%0A        %7D%0A        return serializer;%0A    %7D%0A%0A%09@Override%0A%09public String unparseAnnexLibrary(AnnexLibrary library, String indent) %7B%0A%09%09return indent + getSerializer().serialize(library);%0A%09%7D%0A%0A%09@Override%0A%09public String unparseAnnexSubclause(AnnexSubclause subclause, String indent) %7B%0A%09%09return indent + getSerializer().serialize(subclause);%0A%09%7D%0A%0A%09public String unparseContract(AgreeContract agreeContract, String indent) %7B%0A%09%09return indent + getSerializer().serialize(agreeContract);%0A%09%7D%0A%0A%7D%0A

Add unparser for serializing out with OSATE