package jetbrains.mps.lang.structure.intentions;

/*Generated by MPS */

import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import org.jetbrains.mps.openapi.language.SProperty;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import org.jetbrains.mps.openapi.language.SContainmentLink;
import org.jetbrains.mps.openapi.language.SReferenceLink;

public abstract class ConceptConversionHelper {
  public static void copy(SNode from, SNode to) {
    SPropertyOperations.assign(to, PROPS.name$MnvL, SPropertyOperations.getString(from, PROPS.name$MnvL));
    SPropertyOperations.assign(to, PROPS.virtualPackage$EkXl, SPropertyOperations.getString(from, PROPS.virtualPackage$EkXl));
    ListSequence.fromList(SLinkOperations.getChildren(to, LINKS.smodelAttribute$KJ43)).addSequence(ListSequence.fromList(SLinkOperations.getChildren(from, LINKS.smodelAttribute$KJ43)));
    SPropertyOperations.assign(to, PROPS.conceptAlias$OL_L, SPropertyOperations.getString(from, PROPS.conceptAlias$OL_L));
    SPropertyOperations.assign(to, PROPS.conceptShortDescription$is9d, SPropertyOperations.getString(from, PROPS.conceptShortDescription$is9d));
    SPropertyOperations.assign(to, PROPS.conceptId$rrGe, SPropertyOperations.getString(from, PROPS.conceptId$rrGe));
    SPropertyOperations.assign(to, PROPS.languageId$79NI, SPropertyOperations.getString(from, PROPS.languageId$79NI));
    ListSequence.fromList(SLinkOperations.getChildren(to, LINKS.linkDeclaration$YU1f)).addSequence(ListSequence.fromList(SLinkOperations.getChildren(from, LINKS.linkDeclaration$YU1f)));
    ListSequence.fromList(SLinkOperations.getChildren(to, LINKS.propertyDeclaration$YUgg)).addSequence(ListSequence.fromList(SLinkOperations.getChildren(from, LINKS.propertyDeclaration$YUgg)));
    SLinkOperations.setTarget(to, LINKS.helpURL$cn$D, SLinkOperations.getTarget(from, LINKS.helpURL$cn$D));
    SLinkOperations.setTarget(to, LINKS.sourceNode$Q33I, SLinkOperations.getTarget(from, LINKS.sourceNode$Q33I));
  }

  private static final class PROPS {
    /*package*/ static final SProperty name$MnvL = MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name");
    /*package*/ static final SProperty virtualPackage$EkXl = MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, 0x115eca8579fL, "virtualPackage");
    /*package*/ static final SProperty conceptAlias$OL_L = MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias");
    /*package*/ static final SProperty conceptShortDescription$is9d = MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription");
    /*package*/ static final SProperty conceptId$rrGe = MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x5d2e6079771f8cc0L, "conceptId");
    /*package*/ static final SProperty languageId$79NI = MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x7cf94884f2237423L, "languageId");
  }

  private static final class LINKS {
    /*package*/ static final SContainmentLink smodelAttribute$KJ43 = MetaAdapterFactory.getContainmentLink(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, 0x47bf8397520e5942L, "smodelAttribute");
    /*package*/ static final SContainmentLink linkDeclaration$YU1f = MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration");
    /*package*/ static final SContainmentLink propertyDeclaration$YUgg = MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6cL, "propertyDeclaration");
    /*package*/ static final SContainmentLink helpURL$cn$D = MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x18b475a713ca55fbL, "helpURL");
    /*package*/ static final SReferenceLink sourceNode$Q33I = MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode");
  }
}
