robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

[MECHNET] Entity handler for efficient parsing #173

Open fluxtah opened 11 years ago

fluxtah commented 11 years ago

At the moment, if a mech ops result is a json array of objects, will get parsed into an array of entities.

This is usually fine with small lists but it would be nice to substitute this parsing with an EntityHandler (or something like that) which will take responsibility of handling a named entity when it is parsed, much like a SAX parser, this would avoid the necessity to create a list since an entity instance could be reused each time the entity is handled.

This could possibly introduce other issues such as default values of entities since the entity would need to be reset each time the handler handles it.