Skip to content

Commit db0be30

Browse files
Initial BALD domain interfaces
1 parent cf8276d commit db0be30

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package net.bald
2+
3+
/**
4+
* Represents the metadata of a binary array dataset.
5+
* See https://www.opengis.net/def/binary-array-ld/Array
6+
*/
7+
interface BinaryArray {
8+
/**
9+
* The URI which identifies the dataset.
10+
*/
11+
val uri: String
12+
13+
/**
14+
* The root container.
15+
*/
16+
val root: Container
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package net.bald
2+
3+
/**
4+
* Represents a container of resources.
5+
* See https://www.opengis.net/def/binary-array-ld/Container
6+
*/
7+
interface Container {
8+
/**
9+
* Obtain the variables associates with this container.
10+
* @return The variables.
11+
*/
12+
fun vars(): Sequence<Var>
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package net.bald
2+
3+
/**
4+
* Represents a binary array variable.
5+
*/
6+
interface Var {
7+
/**
8+
* The local name of the variable.
9+
*/
10+
val name: String
11+
}

0 commit comments

Comments
 (0)