]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/graph/Layer0SCL.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0SCL.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 \r
3 L0.Functions : L0.Library\r
4 \r
5 L0.Function <T L0.Value\r
6     @L0.assert L0.ConvertsToValueWith L0.Functions.functionApplication\r
7 \r
8 // External values\r
9 L0.Functions.entityLabel : L0.ExternalValue\r
10 L0.Functions.listResources : L0.ExternalValue    \r
11 L0.Functions.resourceAsValue : L0.ExternalValue    \r
12 L0.Functions.functionApplication : L0.ExternalValue\r
13 L0.Functions.computeExpression : L0.ExternalValue\r
14 L0.Functions.composedPropertyValue : L0.ExternalValue\r
15 \r
16 L0.Functions.standardValueAccessor : L0.ExternalValue\r
17   L0.HasValueType "ValueAccessor"\r
18 L0.Functions.standardChildDomainProperties : L0.ExternalValue\r
19   L0.HasValueType "VariableMap"\r
20 L0.Functions.standardPropertyDomainProperties : L0.ExternalValue\r
21   L0.HasValueType "VariableMap"\r
22 L0.Functions.standardChildDomainChildren : L0.ExternalValue\r
23   L0.HasValueType "VariableMap"\r
24 L0.Functions.standardPropertyDomainChildren : L0.ExternalValue\r
25   L0.HasValueType "VariableMap"\r
26 L0.Functions.standardClassifications : L0.Function\r
27   L0.HasValueType "[String]"\r
28 \r
29 L0.Functions.hasStandardResource : L0.Function\r
30   L0.HasValueType "Resource"\r
31 \r
32 L0.Functions.standardValidValue : L0.Function\r
33   L0.HasValueType "Boolean"\r
34 L0.Functions.standardRequiredValue : L0.Function\r
35   L0.HasValueType "Boolean"\r
36 L0.Functions.standardDefaultValue : L0.Function\r
37   L0.HasValueType "Boolean"\r
38 L0.Functions.standardReadOnlyValue : L0.Function\r
39   L0.HasValueType "Boolean"\r
40 L0.Functions.standardValidator : L0.Function\r
41   L0.HasValueType "StringInputValidator"\r
42 \r
43 // External values applied as functions\r
44 L0.Functions.numberInputValidator : L0.Function\r
45 L0.Functions.booleanInputValidator : L0.Function\r
46 \r
47 // Validators\r
48 L0.Functions.relationValidator : L0.Function\r
49 L0.Functions.propertyValidator : L0.Function\r
50 L0.Functions.valueValidator : L0.Function\r
51 L0.Functions.uriValidator : L0.Function\r
52 L0.Functions.clusterValidator : L0.Function\r
53 \r
54 L0.SCLModule <T L0.Entity\r
55     >-- L0.SCLModule.definition --> L0.String <R L0.HasProperty : L0.TotalFunction\r
56     @L0.assert L0.SCLModule.definition ""\r
57 \r
58 L0.entityReplacer ==> "Resource -> Resource -> <WriteGraph> ()" <R L0.HasProperty : L0.FunctionalRelation\r
59     L0.HasDescription """Used for defining an SCL function that knows how to copy the contents from one entity instance to another when both instances are known to be of the same type.\r
60 The first resource parameter is the source entity that will be used to replace the target entity which is defined by the second resource parameter."""\r