@finos/legend-application-pure-ide
Version:
Legend Pure IDE application core
32 lines • 3.79 kB
TypeScript
/**
* 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.
*/
export declare const getCopyrightHeaderSnippet: () => string;
export declare const BLANK_CLASS_SNIPPET = "Class ${1:model::NewClass}\n// example of a constraint\n// [\n// SomeConstraint: true\n// ]\n{\n ${2:// example of a standard property\n // prop1: String[1];\n\n // example of a derived property\n // derivation1() {''\\}: String[1];}\n}";
export declare const CLASS_WITH_PROPERTY_SNIPPET = "Class ${1:model::NewClass}\n{\n ${2:prop1}: ${3:String[1]};\n}";
export declare const CLASS_WITH_INHERITANCE_SNIPPET = "Class ${1:model::NewClass} extends ${2:model::ParentClass}\n{\n ${3:// class content}\n}";
export declare const CLASS_WITH_CONSTRAINT_SNIPPET = "Class ${1:model::NewClass}\n[\n ${3:SomeConstraint: true}\n]\n{\n ${2:// class content}\n}";
export declare const SIMPLE_PROFILE_SNIPPET = "Profile ${1:model::NewProfile}\n{\n stereotypes: [${2:}];\n tags: [${3:}];\n}";
export declare const SIMPLE_ENUMERATION_SNIPPET = "Enum ${1:model::NewEnumeration}\n{\n ${2:VALUE_1,\n VALUE_2}\n}";
export declare const SIMPLE_ASSOCIATION_SNIPPET = "Association ${1:model::NewAssociation}\n{\n ${2:prop1}: ${3:model::Type1[1]};\n ${4:prop2}: ${5:model::Type2[1]};\n}";
export declare const BLANK_FUNCTION_SNIPPET = "function ${1:model::NewEnumeration}(${2:param1: String[1]}): ${3:String[1]}\n{\n ${4:''; // function content}\n}";
export declare const SIMPLE_FUNCTION_SNIPPET = "function ${1:model::NewEnumeration}(): String[1]\n{\n ''\n}";
export declare const BLANK_MAPPING_SNIPPET = "Mapping ${1:model::NewMapping}\n(\n ${2:// mapping content}\n)";
export declare const MAPPING_WITH_M2M_CLASS_MAPPING_SNIPPET = "Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Pure\n {\n ~src ${3:model::SourceClass}\n // example of property mappings\n // prop1: $src.prop1\n }\n)";
export declare const MAPPING_WITH_RELATIONAL_CLASS_MAPPING_SNIPPET = "Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Relational {\n ~mainTable ${3:[model::SomeDatabase]SomeTable}\n // example of property mappings\n // prop1: [model::SomeDatabase]SomeTable.col1,\n }\n)";
export declare const MAPPING_WITH_ENUMERATION_MAPPING_SNIPPET = "Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetEnumeration}: EnumerationMapping ${3:EnumerationMappingID}\n {\n // example of enum-value mapping\n // VAL_1: ['val1'],\n // VAL_2: ['val2', 'val_2']\n }\n)";
export declare const BLANK_RELATIONAL_DATABASE_SNIPPET = "Database ${1:model::NewDatabase}\n(\n // example database schema\n // Schema SOME_SCHEMA\n // (\n // Table TABLE_1\n // (\n // COL_1 VARCHAR(200)\n // )\n // Table TABLE_2\n // (\n // COL_2 VARCHAR(200) PRIMARY_KEY\n // )\n // )\n\n // example database join\n // Join SomeJoin(SOME_SCHEMA.TABLE_1.COL_1 = SCHEMA1.TABLE_2.COL_2)\n\n ${2:// database content}\n)";
export declare const BLANK_DIAGRAM_SNIPPET = "Diagram ${1:model::NewDiagram}(width=0.0, height=0.0)\n{\n // NOTE: it is recommended to use diagram visual editor\n // to edit diagram: double-click on the diagram in\n // the concept explorer tree to open the editor\n}";
//# sourceMappingURL=LegendPureIDECodeSnippet.d.ts.map