Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Data Component Builders #1

Open
alexrobin opened this issue Mar 2, 2019 · 0 comments
Open

Create Data Component Builders #1

alexrobin opened this issue Mar 2, 2019 · 0 comments
Assignees

Comments

@alexrobin
Copy link
Contributor

Since data components have many properties, providing constructors is cumbersome.
The builder pattern would be more appropriate to create components in a single line, for example:

Quantity q = Factory.quantityBuilder()
    .label("Air Temperature")
    .description("Outdoor temperature under cover, measured 2m above ground")
    .definition("http://ontology/AirTemperature")
    .uomCode("Cel")
    .dataType(DataType.FLOAT);
@alexrobin alexrobin self-assigned this Mar 2, 2019
@alexrobin alexrobin transferred this issue from sensiasoft/lib-swe-common Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant