项目作者: fujaba

项目描述 :
Framework for serialization to Json, XML, Byte and Excel, therefore an oviparous wool milk sow J
高级语言: Java
项目地址: git://github.com/fujaba/NetworkParser.git
创建时间: 2015-10-15T11:57:53Z
项目社区:https://github.com/fujaba/NetworkParser

开源协议:Other

下载


NetworkParser

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:

  • Calculator
  • Date with holidays
  • UML-Layouting with Javascript or Webservice like YUML
  • JavaFX Container Classes:
    • for DataBinding
    • Table with Searchfield
    • Form
    • PopupDialog
    • Basic Shell-Class with Writing Errorfiles
  • Logicstructure
  • SimpleList as universal solution for datamodels

Current Status

  • Master

    • travis-ci: Build Status
    • Coverage: Coverage Status
    • CII Best Practices CII Best Practices
    • Codacy Codacy Badge
    • Code Climate Code Climate
    • Coverity Scan: Coverity Status
    • Glitter-Chat: Join the chat at https://gitter.im/NetworkParser/Lobby
    • Java-Documentation: Javadocs
    • Maven Central: Maven Central
  • Develop

    • travis-ci: Build Status
    • Coverage: Coverage Status

Open Hub

JProfiler optimized

Open Source Love

Average time to resolve an issue

Percentage of issues still open

Project Managment

Join the chat at https://gitter.im/NetworkParser/Lobby

Stories in Ready

Download latest Release

Getting Started

Gradle

  1. repositories {
  2. mavenCentral()
  3. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  4. }
  1. dependencies {
  2. compile group: "de.uniks", name: "NetworkParser", version: "latest.integration", classifier:"sources18", changing: true
  3. }

Installation

$ git clone https://github.com/fujaba/NetworkParser.git

Maven artifacts

Maven artifacts are available at:

Usage

Simple Example with ClassModelBuilder for build a small class model:

  1. ClassModelBuilder mb = new ClassModelBuilder("de.uniks.studyright");
  2. Clazz uni = mb.buildClass("University").withAttribute("name", DataType.STRING);
  3. Clazz student = mb.buildClass("Student").withAttribute("matNo", DataType.INT);
  4. uni.withAssoc(student, "students", Association.MANY, "uni", Association.ONE);
  5. Clazz room = mb.buildClass("Room")
  6. .withAttribute("roomNo", DataType.STRING);
  7. uni.withAssoc(room, "rooms", Association.MANY, "uni", Association.ONE);
  8. ClassModel model = mb.build();

Simple Example with Old ClassModel for build a small class model:

  1. ClassModel model = new ClassModel("de.uniks.studyright");
  2. Clazz uni = model.createClazz("University").withAttribute("name", DataType.STRING);
  3. Clazz student = model.createClazz("Student").withAttribute("matNo", DataType.INT);
  4. uni.withAssoc(student, "students", Association.MANY, "uni", Association.ONE);
  5. Clazz room = model.createClazz("Room").withAttribute("roomNo", DataType.STRING);
  6. uni.withAssoc(room, "rooms", Association.MANY, "uni", Association.ONE);
  7. model.generate();

simple class diagram

Maven Snapshot

pom.xml

  1. <dependency>
  2. <groupId>de.uniks</groupId>
  3. <artifactId>NetworkParser</artifactId>
  4. <version>4.2.*</version>
  5. </dependency>
  6. <repositories>
  7. <repository>
  8. <releases><enabled>false</enabled></releases>
  9. <snapshots><enabled>true</enabled></snapshots>
  10. <id>Sonatype Snapshots</id>
  11. <name>Sonatype Snapshots</name>
  12. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  13. </repository>
  14. </repositories>

Building Jar

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.

Spenden

Donate

License

NetworkParser is released under an The MIT License. MIT Licence