|
| 1 | +/******************************************************************************* |
| 2 | + * SysML 2 Pilot Implementation |
| 3 | + * Copyright (c) 2025 Model Driven Solutions, Inc. |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU Lesser General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU Lesser General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU Lesser General Public License |
| 16 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | + * |
| 18 | + * @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later> |
| 19 | + * |
| 20 | + *******************************************************************************/ |
| 21 | + |
| 22 | +package org.omg.sysml.execution.expressions; |
| 23 | + |
| 24 | +import org.omg.sysml.execution.expressions.functions.*; |
| 25 | + |
| 26 | +public class LibraryFunctionFactory extends org.omg.sysml.expressions.ModelLevelLibraryFunctionFactory { |
| 27 | + |
| 28 | + public static final LibraryFunctionFactory INSTANCE = new LibraryFunctionFactory(); |
| 29 | + |
| 30 | + @Override |
| 31 | + protected void initializeFunctionMap() { |
| 32 | + super.initializeFunctionMap(); |
| 33 | + |
| 34 | + put(new SizeFunction()); |
| 35 | + put(new IsEmptyFunction()); |
| 36 | + put(new NotEmptyFunction()); |
| 37 | + put(new IncludesFunction()); |
| 38 | + put(new ExcludesFunction()); |
| 39 | + |
| 40 | + put(new SumFunction()); |
| 41 | + put(new ProdFunction()); |
| 42 | + |
| 43 | + put(new StringLengthFunction()); |
| 44 | + put(new StringSubstringFunction()); |
| 45 | + } |
| 46 | + |
| 47 | +} |
0 commit comments