import org.opendaylight.controller.yang.model.util.RevisionAwareXPathImpl;
public class ConstraintsBuilder implements Builder {
-
private final ConstraintDefinitionImpl instance;
+ private final int line;
private final Set<MustDefinition> mustDefinitions;
private String whenCondition;
private boolean mandatory;
private Integer min;
private Integer max;
- ConstraintsBuilder() {
+ ConstraintsBuilder(final int line) {
+ this.line = line;
instance = new ConstraintDefinitionImpl();
mustDefinitions = new HashSet<MustDefinition>();
}
return instance;
}
+ @Override
+ public int getLine() {
+ return line;
+ }
+
public Integer getMinElements() {
return min;
}