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

Introduce possibility to create afm execution straight from md Obj #572

Open
jimirocks opened this issue Dec 8, 2017 · 0 comments
Open

Comments

@jimirocks
Copy link
Contributor

Currently such ugly thing is necessary:

final Execution execution = new Execution(new Afm()
                .addAttribute(new AttributeItem(new IdentifierObjQualifier(attr.getDefaultDisplayForm().getIdentifier()), "a1"))
                .addMeasure(new MeasureItem(new SimpleMeasureDefinition(new UriObjQualifier(metric.getUri())), "m1"))
        );

Let's introduce some possibility for easier Execution creation. Possibilities to consider:

  • AttributeItem and MeasureDefinition constructors having Attribute / DisplayForm / Metric as arguments
  • add convenient addAttribute and addMeasure methods
  • introduce some factories or builders?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant