-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#42 Layout TO's renamed, Sample for kotlinx.serialization
- Loading branch information
1 parent
34e9885
commit d29a98e
Showing
36 changed files
with
454 additions
and
528 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.ro.to.Link | ||
|
||
@Serializable | ||
data class Action(var named: String? = "", | ||
var describedAs: String? = "", | ||
var metadataError: String? = "", | ||
var link: Link? = null, | ||
var id: String? = "", | ||
var bookmarking: String? = "", | ||
var cssClass: String? = "", | ||
var cssClassFa: String? = "", | ||
var cssClassFaPosition: String? = "", | ||
var hidden: String? = null, | ||
var namedEscaped: String? = "", | ||
var position: String? = "", | ||
var promptStyle: String? = "", | ||
val redirect: String? = null | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.ro.to.Link | ||
|
||
@Serializable | ||
data class Col(val domainObject: DomainObject? = null, | ||
val row: List<Row> = emptyList(), | ||
val fieldSet: List<FieldSet> = emptyList(), | ||
val action: List<Action> = emptyList(), | ||
val collection: List<Collection> = emptyList(), | ||
val metadataError: String? = "", | ||
val cssClass: String? = "", | ||
val size: String? = "", | ||
val id: String? = "", | ||
val span: Int? = 0, | ||
val unreferencedActions: Boolean? = false, | ||
val unreferencedCollections: Boolean? = false, | ||
val named: String? = "", | ||
val describedAs: String? = "", | ||
val plural: String? = "", | ||
val link: Link? = null, | ||
val bookmarking: String? = "", | ||
val cssClassFa: String? = "", | ||
val cssClassFaPosition: String? = "", | ||
val namedEscaped: Boolean? = false, | ||
val tabGroup: List<TabGroup> = emptyList() | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.ro.to.Link | ||
|
||
@Serializable | ||
data class Collection(var named: String? = "", | ||
var describedAs: String? = "", | ||
var sortedBy: String? = "", | ||
var action: List<Action> = emptyList(), | ||
var metadataError: String? = "", | ||
var link: Link? = null, | ||
var id: String? = "", | ||
var cssClass: String? = "", | ||
var defaultView: String? = null, | ||
var hidden: String? = null, | ||
var namedEscaped: String? = "", | ||
var paged: String? = "" | ||
) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Cols(val col: Col? = null) { | ||
|
||
fun getCol(): Col { | ||
// return getValues().first() | ||
// console.log("[layout/Cols.getCol]") | ||
// console.log(col) | ||
// return col.first() | ||
return col!! | ||
} | ||
|
||
//fun getValues(): MutableCollection<Col> { | ||
//FIXME wrapper in between required? | ||
// return col. | ||
// } | ||
|
||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.ro.to.Link | ||
|
||
@Serializable | ||
data class DomainObject(val named: String? = null, | ||
val describedAs: String? = null, | ||
val plural: String? = null, | ||
val metadataError: String? = null, | ||
val link: Link? = null, | ||
val bookmarking: String? = null, | ||
val cssClass: String? = null, | ||
val cssClassFa: String? = null, | ||
val cssClassFaPosition: String? = null, | ||
val namedEscaped: Boolean? = false) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class FieldSet(val name: String? = null, | ||
val action: List<Action> = emptyList(), | ||
val property: List<Property> = emptyList(), | ||
val metadataError: String? = null, | ||
val id: String? = null, | ||
val unreferencedActions: Boolean? = false, | ||
val unreferencedCollections: Boolean? = false, | ||
val unreferencedProperties: Boolean? = false | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.ro.to.Link | ||
|
||
@Serializable | ||
data class Property(val named: String? = null, | ||
val describedAs: String? = null, | ||
val action: List<Action> = emptyList(), | ||
var metadataError: String? = null, | ||
val link: Link? = null, | ||
val id: String? = null, | ||
val cssClass: String? = null, | ||
val hidden: String? = null, //ALL_TABLES | ||
val labelPosition: String? = null, | ||
val multiLine: Int? = 1, | ||
val namedEscaped: Boolean? = false, | ||
val promptStyle: String? = null, | ||
val renderDay: Boolean? = false, | ||
val renderedAsDayBefore: String? = null, //always omitted with 2.0.0? | ||
val typicalLength: Int? = null, | ||
val repainting: String? = null, | ||
val unchanging: String? = null | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Row(val cols: List<Cols> = emptyList(), | ||
val metadataError: String? = null, | ||
val cssClass: String? = null, | ||
val id: String? = null | ||
) | ||
// private val maxSpan = 12 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Tab(val cssClass: String? = null, | ||
val name: String? = null, | ||
val row: List<Row> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.ro.layout | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class TabGroup(val cssClass: String? = "", | ||
val metadataError: String? = "", | ||
val tab: List<Tab> = emptyList(), | ||
val collapseIfOne: Boolean? = false, | ||
val unreferencedCollections: Boolean? = false | ||
) |
Oops, something went wrong.