{"id":17278143,"url":"https://github.com/mingun/kaitai_struct_model","last_synced_at":"2025-03-26T14:22:46.194Z","repository":{"id":37104820,"uuid":"232645737","full_name":"Mingun/kaitai_struct_model","owner":"Mingun","description":"Swing tree model for exploring https://kaitai.io generated structs","archived":false,"fork":false,"pushed_at":"2023-02-28T00:59:55.000Z","size":42,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T15:40:15.663Z","etag":null,"topics":["kaitai-struct","swing","visualizer"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mingun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-08T19:50:05.000Z","updated_at":"2021-10-30T17:23:16.000Z","dependencies_parsed_at":"2024-10-15T09:10:57.641Z","dependency_job_id":null,"html_url":"https://github.com/Mingun/kaitai_struct_model","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mingun%2Fkaitai_struct_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mingun%2Fkaitai_struct_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mingun%2Fkaitai_struct_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mingun%2Fkaitai_struct_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mingun","download_url":"https://codeload.github.com/Mingun/kaitai_struct_model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245668652,"owners_count":20653011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kaitai-struct","swing","visualizer"],"created_at":"2024-10-15T09:10:55.182Z","updated_at":"2025-03-26T14:22:41.180Z","avatar_url":"https://github.com/Mingun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![JitPack](https://img.shields.io/jitpack/v/github/Mingun/kaitai_struct_model)](https://jitpack.io/#Mingun/kaitai_struct_model)\n[![license](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)\n\n# kaitai_struct_model\nA simple Swing `TreeModel` and `TreeNode` implementations for exploring classes, generated by\n[KaitaiStruct](https://kaitai.io) java generator in debug mode.\n\nHow customized [Viewer](https://github.com/kaitai-io/kaitai_struct_gui) could look\n(in [FlatLaf](https://github.com/JFormDesigner/FlatLaf) Dark theme):\n![kaitai_struct_gui](https://user-images.githubusercontent.com/450131/172424984-bdbc1ed8-30f5-48f3-8506-e978c17fd227.png)\n\n\u003cdetails\u003e\n\u003csummary\u003eExample file\u003c/summary\u003e\n  \n```yaml\nmeta:\n  id: offsets\nseq:\n  - id: padding\n    type: u1\n  - id: unsized\n    type: type\n  - id: sized\n    type: type\n    size: 10\ninstances:\n  parse:\n    pos: 5\n    size: 5\n  value_scalar:\n    value: 42\n  value_list:\n    value: '[\"42\"]'\ntypes:\n  type:\n    seq:\n      - id: padding\n        type: u1\n      - id: unsized_simple\n        type: u1\n      - id: sized_simple\n        size: 1\n      - id: unsized_array\n        type: elem\n        repeat: expr\n        repeat-expr: 2\n      - id: sized_array\n        type: elem\n        size: 3\n        repeat: expr\n        repeat-expr: 1\n  elem:\n    seq:\n      - id: padding\n        type: u1\n      - id: value\n        type: u1\n```\n\u003c/details\u003e\n\n## Class diagram of nodes\n\n`ParamNode` is unused because it is impossible to distinguish between\nparameters and instances without [kaitai_struct_compiler#191].\n\n```mermaid\nclassDiagram\nTreeNode \u003c|.. ValueNode\n  ValueNode \u003c|-- ChunkNode\n    ChunkNode \u003c|-- SimpleNode\n    ChunkNode \u003c|-- StructNode\n    ChunkNode \u003c|-- ListNode\n  ValueNode \u003c|-- ParamNode\n\nclass TreeNode {\n  \u003c\u003cinterface\u003e\u003e\n}\nclass ValueNode {\n  \u003c\u003cabstract\u003e\u003e\n  +getValue()* Object\n}\nclass ChunkNode {\n  \u003c\u003cabstract\u003e\u003e\n  +getSpan() Span\n  +isSequential() boolean\n}\nclass SimpleNode {\n  +getValue() Object\n  +getValueClass() Class\n}\nclass StructNode {\n  +getValue() KaitaiStruct\n}\nclass ListNode {\n  +getValue() List\n  +getElementClass() Class\n}\n```\n\n[kaitai_struct_compiler#191]: https://github.com/kaitai-io/kaitai_struct_compiler/pull/191\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingun%2Fkaitai_struct_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingun%2Fkaitai_struct_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingun%2Fkaitai_struct_model/lists"}