{"id":15687254,"url":"https://github.com/mattsse/plcopen-xml-xcore","last_synced_at":"2025-05-07T19:40:26.528Z","repository":{"id":37677614,"uuid":"122861803","full_name":"mattsse/plcopen-xml-xcore","owner":"mattsse","description":"The PlcOpen Xml Standard implemented as Xcore model and with full gradle and maven support","archived":false,"fork":false,"pushed_at":"2020-10-13T09:16:59.000Z","size":128,"stargazers_count":14,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T13:27:18.399Z","etag":null,"topics":["ecore","emf","java","plcopen","xcore"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattsse.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}},"created_at":"2018-02-25T18:05:46.000Z","updated_at":"2025-02-01T03:30:09.000Z","dependencies_parsed_at":"2022-09-15T09:10:18.369Z","dependency_job_id":null,"html_url":"https://github.com/mattsse/plcopen-xml-xcore","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/mattsse%2Fplcopen-xml-xcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsse%2Fplcopen-xml-xcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsse%2Fplcopen-xml-xcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsse%2Fplcopen-xml-xcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattsse","download_url":"https://codeload.github.com/mattsse/plcopen-xml-xcore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252945105,"owners_count":21829542,"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":["ecore","emf","java","plcopen","xcore"],"created_at":"2024-10-03T17:46:03.497Z","updated_at":"2025-05-07T19:40:26.510Z","avatar_url":"https://github.com/mattsse.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlcOpen-Xml Xcore\n\n[![Build Status](https://travis-ci.com/MattsSe/plcopen-xml-xcore.svg?branch=master)](https://travis-ci.com/MattsSe/plcopen-xml-xcore)\n\nXcore model of the PlcOpen Xml Standard.\n\n## Installation\n\nClone the repo:\n\n```java\ngit clone https://github.com/MattsSe/plcopen-xml-xcore\ncd plcopen-xml-xcore\n```\n\nThis project comes with automated build support for the xcore model. All Java code will be generated during build using either:\n\n* **maven:** `mvn clean install`\n* **gradle:** `./gradlew clean build`\n\n## Usage\n\n### Load XML\n\nParse a PlcOpen XML file\n\n```java\nFile xmlFile = new new File(\"path.xml\");\nPlcOpenSerializer serde = new PlcOpenSerializer();\nResource plcResource = serde.loadXmlResource(xmlFile);\n\n```\n\n### Write Xml\n\nCreate a model first, thenn save as PlcOpen XML.\n\n```java\n// build project\nProject project = Tc6021Factory.eInstance.createProject();\n  ...\n\nResource resourceSet = new ResourceSetImpl();\nResource resource = new ResourceImpl();\nresourceSet.getResources().add(resource);\nresource.getContents().add(project);\n\nPlcOpenSerializer serde = new PlcOpenSerializer();\nserde.writeXML(resource, \"output/plcopen.xml\");\n```\n\nReading/Writing XMI models using the analogous methods of the `PlcOpenSerializer`.\n\nSee [More demos in the `PlcOpenSerializeTest` test.](src/test/java/org/plcopen/xcore/serde/PlcOpenSerializeTest.java)\n\nTo Access any components inside the project utilize the EMF API.\n\n## License\n\nLicensed under Eclipse Public License 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsse%2Fplcopen-xml-xcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattsse%2Fplcopen-xml-xcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsse%2Fplcopen-xml-xcore/lists"}