JAVA: Unified Java Example names

Unified all Java examples to *match* <LIBRARY>[_otherstuf]_Example.java.
Note, a handful of the examples have a pseudo-random string for the
first component (see FlexSensor_Example.java, ideally this would be
Flex_Example.java).

This commit allows for quick development on a single sensor library
since a -DMODULE_LIST=mysensorlib now works with Java examples
(previously Java examples would fail generation when using
MODULE_LIST).

    * Renamed examples
    * Updated class names
    * Updated library descriptor .json files
    * Updated sample mapping file

TODO: Make this work like the C/C++ examples - grab the target library
name from the filename and grab all dependencies from that target
library.  Fix the handful of example names which don't conform.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2018-02-27 12:12:09 -08:00
parent 86e8471cad
commit c54d6de054
315 changed files with 5209 additions and 5168 deletions

View File

@ -1,33 +1,33 @@
{
"Library": "joystick12",
"Description": "API for the ElecFreaks* Joystick v 1.2-1.4 Breakout",
"Sensor Class":
{
"Joystick12":
{
"Name": "2-axis Analog Joystick",
"Description": "This module defines the Joystick API, and implementation for the X and Y buttons could be treated as normal GPIO - this enables easier interrupt support. This driver should be compatible with any 2-axis analog joystick.",
"Aliases": ["joystick12"],
"Categories": ["input"],
"Connections": ["analog"],
"Project Type": ["prototyping"],
"Manufacturers": ["generic"],
"Kits": ["robok"],
"Image": "joystick12.jpg",
"Examples":
{
"Java": ["Joystick12Sample.java", "Joystick12_exampleSample.java"],
"Python": ["joystick12.py"],
"Node.js": ["joystick12.js"],
"C++": ["joystick12.cxx"],
"C": ["joystick12.c"]
},
"Urls" :
{
"Product Pages": ["http://www.elecfreaks.com/estore/joystick-breakout-module-bkout-md01.html"],
"Datasheets": ["https://www.elecfreaks.com/wiki/index.php?title=Joystick_breakout_module"],
"Schematics": ["http://elecfreaks.com/store/download/schematic-red.pdf"]
}
}
}
}
{
"Library": "joystick12",
"Description": "API for the ElecFreaks* Joystick v 1.2-1.4 Breakout",
"Sensor Class":
{
"Joystick12":
{
"Name": "2-axis Analog Joystick",
"Description": "This module defines the Joystick API, and implementation for the X and Y buttons could be treated as normal GPIO - this enables easier interrupt support. This driver should be compatible with any 2-axis analog joystick.",
"Aliases": ["joystick12"],
"Categories": ["input"],
"Connections": ["analog"],
"Project Type": ["prototyping"],
"Manufacturers": ["generic"],
"Kits": ["robok"],
"Image": "joystick12.jpg",
"Examples":
{
"Java": ["Joystick12_Example.java", "Joystick12_example_Example.java"],
"Python": ["joystick12.py"],
"Node.js": ["joystick12.js"],
"C++": ["joystick12.cxx"],
"C": ["joystick12.c"]
},
"Urls" :
{
"Product Pages": ["http://www.elecfreaks.com/estore/joystick-breakout-module-bkout-md01.html"],
"Datasheets": ["https://www.elecfreaks.com/wiki/index.php?title=Joystick_breakout_module"],
"Schematics": ["http://elecfreaks.com/store/download/schematic-red.pdf"]
}
}
}
}