Framework for serialization to Json, XML, Byte and Excel, therefore an oviparous wool milk sow J
Framework for serialization from Java objects to Json, XML and Byte.
NetworkParser is a simple framework for serializing complex model structures. To do that it transforms a given model to an intermediate model which can be serialized. It also offers lots of filters.
For serialization you are three formats available: Json, XML and Byte. For deserialization you can use following formats: Json, XML, Byte and EMF.
The Framework have many other features like:
Project Managment
repositories { mavenCentral() maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } }
dependencies { compile group: "de.uniks", name: "NetworkParser", version: "latest.integration", classifier:"sources18", changing: true }
$ git clone https://github.com/fujaba/NetworkParser.git
Maven artifacts are available at:
Simple Example with ClassModelBuilder for build a small class model:
ClassModelBuilder mb = new ClassModelBuilder("de.uniks.studyright");
Clazz uni = mb.buildClass("University").withAttribute("name", DataType.STRING);
Clazz student = mb.buildClass("Student").withAttribute("matNo", DataType.INT);
uni.withAssoc(student, "students", Association.MANY, "uni", Association.ONE);
Clazz room = mb.buildClass("Room")
.withAttribute("roomNo", DataType.STRING);
uni.withAssoc(room, "rooms", Association.MANY, "uni", Association.ONE);
ClassModel model = mb.build();
Simple Example with Old ClassModel for build a small class model:
ClassModel model = new ClassModel("de.uniks.studyright");
Clazz uni = model.createClazz("University").withAttribute("name", DataType.STRING);
Clazz student = model.createClazz("Student").withAttribute("matNo", DataType.INT);
uni.withAssoc(student, "students", Association.MANY, "uni", Association.ONE);
Clazz room = model.createClazz("Room").withAttribute("roomNo", DataType.STRING);
uni.withAssoc(room, "rooms", Association.MANY, "uni", Association.ONE);
model.generate();
<dependency>
<groupId>de.uniks</groupId>
<artifactId>NetworkParser</artifactId>
<version>4.2.*</version>
</dependency>
<repositories>
<repository>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
<id>Sonatype Snapshots</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
| Gradle Command | Description | |:–:|:–:| | task | Show task to run | | clean | Deletes the build directory. | | buildAll | Build All Jars | | buildCoreJar | Build Jar with NetworkParser-Core without dependency of JavaFX and Reflection | | buildFullJar | Build FullJar with Class-Files, Source-Files and JavaDoc | | buildJavadoc | Build JavaDoc Jar | | buildSourceJar | Build Jar with class-Files and Source-Files | | jar | Assembles a jar archive containing the main classes.|
Issues
in the navigation bar on the right.NetworkParser is released under an The MIT License.