This is one of the Holon Platform example projects.
This example shows how to use the Property
model to define and configure a simple data entity, which can be represented through a PropertySet
and managed using a PropertyBox
to collect, inspect and trasport the property values.
All the APIs used in this example are provided by the Holon platform Core module.
This example addresses the following topics:
- Use the
Property
interface to define a data model - Use a
PropertySet
to represent a model entity definition - Work with
VirtualProperty
s - Deal with
Property
configuration and property value presentation - Use a
PropertyBox
to collect, inspect and transport the property values - Obtain a
Property
model from a Java bean class
The Product class represents the property model for a simple product entity.
The TestPropertyModel class is a JUnit test class to show how to use the Property
and VirtualProperty
interfaces, the PropertySet
and PropertyBox
APIs and how to obtain a property model introspecting a Java bean class.
The complete Holon Platform reference guide is available here.
For the specific documentation about the components used in this example see:
- Holon platform Property model
- Holon platform data validation
- Holon platform Context
- Holon platform beans property model
The Holon Platform is built using Java 8, so you need a JRE/JDK version 8 or above to build and run this example projects.
All the Holon Platform modules and examples are Open Source software released under the Apache 2.0 license.
See Holon Platform Examples for the examples directory.