]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/graph/Layer0SCL.pgraph
Make Write-interfaces as @FunctionalInterface for lambdas
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0SCL.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2
3 L0.Functions : L0.Library
4
5 L0.Function <T L0.Value
6     @L0.assert L0.ConvertsToValueWith L0.Functions.functionApplication
7
8 // External values
9 L0.Functions.entityLabel : L0.ExternalValue
10 L0.Functions.listResources : L0.ExternalValue    
11 L0.Functions.resourceAsValue : L0.ExternalValue    
12 L0.Functions.functionApplication : L0.ExternalValue
13 L0.Functions.computeExpression : L0.ExternalValue
14 L0.Functions.composedPropertyValue : L0.ExternalValue
15
16 L0.Functions.standardValueAccessor : L0.ExternalValue
17   L0.HasValueType "ValueAccessor"
18 L0.Functions.standardChildDomainProperties : L0.ExternalValue
19   L0.HasValueType "VariableMap"
20 L0.Functions.standardPropertyDomainProperties : L0.ExternalValue
21   L0.HasValueType "VariableMap"
22 L0.Functions.standardChildDomainChildren : L0.ExternalValue
23   L0.HasValueType "VariableMap"
24 L0.Functions.standardPropertyDomainChildren : L0.ExternalValue
25   L0.HasValueType "VariableMap"
26 L0.Functions.standardClassifications : L0.Function
27   L0.HasValueType "[String]"
28
29 L0.Functions.hasStandardResource : L0.Function
30   L0.HasValueType "Resource"
31
32 L0.Functions.standardValidValue : L0.Function
33   L0.HasValueType "Boolean"
34 L0.Functions.standardRequiredValue : L0.Function
35   L0.HasValueType "Boolean"
36 L0.Functions.standardDefaultValue : L0.Function
37   L0.HasValueType "Boolean"
38 L0.Functions.standardReadOnlyValue : L0.Function
39   L0.HasValueType "Boolean"
40 L0.Functions.standardValidator : L0.Function
41   L0.HasValueType "StringInputValidator"
42
43 // External values applied as functions
44 L0.Functions.numberInputValidator : L0.Function
45 L0.Functions.booleanInputValidator : L0.Function
46
47 // Validators
48 L0.Functions.relationValidator : L0.Function
49 L0.Functions.propertyValidator : L0.Function
50 L0.Functions.valueValidator : L0.Function
51 L0.Functions.uriValidator : L0.Function
52 L0.Functions.clusterValidator : L0.Function
53
54 L0.SCLModule <T L0.Entity
55     >-- L0.SCLModule.definition --> L0.String <R L0.HasProperty : L0.TotalFunction
56     @L0.assert L0.SCLModule.definition ""
57
58 L0.entityReplacer ==> "Resource -> Resource -> <WriteGraph> ()" <R L0.HasProperty : L0.FunctionalRelation
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.
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."""