/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js';
import { V1_PackageableElementPointer, } from '../../../model/packageableElements/V1_PackageableElement.js';
export const V1_transformElementReferencePointer = (pointerType, ref) => new V1_PackageableElementPointer(pointerType, ref.valueForSerialization ?? '');
export const V1_initPackageableElement = (protocolElement, element) => {
    protocolElement.name = element.name;
    protocolElement.package = element.package?.path ?? '';
};
export const V1_transformMultiplicity = (element) => {
    const multiplicity = new V1_Multiplicity(element.lowerBound, element.upperBound);
    return multiplicity;
};
//# sourceMappingURL=V1_CoreTransformerHelper.js.map