Skip to content
Snippets Groups Projects
Commit f925ff1b authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Define all identities in an implemented module.

parent 00ee16f3
No related branches found
No related tags found
No related merge requests found
......@@ -8,31 +8,6 @@ module defs {
revision 2016-04-26;
identity licence-property;
identity adaptation-sharing {
base licence-property;
}
identity derivatives {
base adaptation-sharing;
}
identity no-derivatives {
base adaptation-sharing;
}
identity share-alike {
base adaptation-sharing;
}
identity permitted-uses {
base licence-property;
}
identity all-uses {
base permitted-uses;
}
identity non-commercial {
base permitted-uses;
}
typedef typA {
type int16 {
range "-6378..412";
......
......@@ -24,19 +24,44 @@ module test {
feature feB;
identity licence-property;
identity adaptation-sharing {
base licence-property;
}
identity derivatives {
base adaptation-sharing;
}
identity no-derivatives {
base adaptation-sharing;
}
identity share-alike {
base adaptation-sharing;
}
identity permitted-uses {
base licence-property;
}
identity all-uses {
base permitted-uses;
}
identity non-commercial {
base permitted-uses;
}
identity CC-BY {
base d:derivatives;
base d:all-uses;
base derivatives;
base all-uses;
}
identity CC-BY-NC {
base d:derivatives;
base d:non-commercial;
base derivatives;
base non-commercial;
}
identity CC-BY-ND {
base d:no-derivatives;
base d:all-uses;
base no-derivatives;
base all-uses;
}
container contA {
......
......@@ -17,8 +17,8 @@ module testb {
revision 2016-04-26;
identity CC-BY-SA {
base d:share-alike;
base d:all-uses;
base t:share-alike;
base t:all-uses;
}
augment "/t:contA" {
......@@ -51,8 +51,8 @@ module testb {
}
leaf leafT {
type identityref {
base d:derivatives;
base d:all-uses;
base t:derivatives;
base t:all-uses;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment