Git Product home page Git Product logo

bio-object-logic's Introduction

Bio Objects

Bio Objects is a library which can be used as a replacement for Java Beans. Bio Objects are based on Maps (Keys-Values) and you will only need to extend BioObject class and add necessary annotations. Bio Dictionary will be built based on @annotations or xml configuration and will contain all information required for serialization, xml/json parsing etc.

Bio Objects are very useful in conjunction with Bio Expressions where you can write dynamic decision making mechanisms for your application. Such as :

  • if car.year_of_production > 2015 and car.engine * 2 < 6000 do this
  • if car.fuel_efficiency.checkEUStandard() do this
  • if car.calculateHP(car.cylinders, car.engine) > 200 do this
  • if 4 <= car.engine.cylinders <= 6 and car.fuel_efficiency < 15.4 do this
  • if ?car.producer and car.producer = ['BMW', 'Toyota'] do this (if car object contains a tag producer and it is equal to any of the elements of array.)

Here is simple definition of Bio Object

@BioObj
public class Car extends BioObject {

  @BioTag(type="Integer")
  public static final String YEAR_OF_PRODUCTION = "year_of_production" ;
  
  @BioTag(type="String")
  public static final String PRODUCER = "producer" ;
  
  @BioTag(type="Double")
  public static final String FUEL_EFFICIENCY = "fuel_efficiency" ;
}

For more information please visit wiki

bio-object-logic's People

Contributors

rdavudov avatar

Stargazers

 avatar

Forkers

mmushfiq

bio-object-logic's Issues

MergingTypes

@biotag must support merging types such as replace with min, replace with max, replace by adding or subtracting etc.

BioObject as default bio class

in side bio factory if bio class is not defined use BioObject to create an instance but set code and name as in dictionary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.