Skip to content
Snippets Groups Projects
Verified Commit 33707cd1 authored by Rico Bergmann's avatar Rico Bergmann
Browse files

Polish.

parent 6ddc7255
No related branches found
No related tags found
1 merge request!4Include ModelJoin support in main development
Subproject commit b198d4633ab67b708a81e399be95596a5b4a0b6c
Subproject commit 619bbf1efcfee406a134412275928322d9d28e05
package org.rosi_project.model_sync.model_join.representation.core;
import java.util.Objects;
import javax.annotation.Nonnull;
/**
......
......@@ -8,6 +8,8 @@ import org.rosi_project.model_sync.model_join.representation.core.AttributePath;
import org.rosi_project.model_sync.model_join.representation.util.Assert;
// TODO the Xtext grammar also specifies an optional `as reference` part - what does that part do?
// most likely `as reference` will refer to another type that was already defined in its dedicated
// join statement.
/**
* A {@code KeepReferenceExpression} retains links to other instances in the original models. All
......@@ -52,13 +54,8 @@ public class KeepReferenceExpression extends KeepExpression {
*/
public static class KeepReferenceBuilder {
@Nonnull
private ReferenceDirection referenceDirection;
@Nonnull
private AttributePath attribute;
@Nonnull
private AttributePath target;
@Nonnull
......@@ -119,8 +116,11 @@ public class KeepReferenceExpression extends KeepExpression {
}
}
/**
* Starts the creation process for a new {@code KeepReferenceExpression}.
*/
@Nonnull
public static KeepReferenceBuilder createNew() {
public static KeepReferenceBuilder keep() {
return new KeepReferenceBuilder();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment