public final class ChoiceBuilder extends AbstractSchemaNodeBuilder implements DataSchemaNodeBuilder,
AugmentationTargetBuilder {
- private ChoiceNodeImpl instance;
+ private ChoiceSchemaNodeImpl instance;
// DataSchemaNode args
private boolean augmenting;
return instance;
}
- instance = new ChoiceNodeImpl(qname, schemaPath);
+ instance = new ChoiceSchemaNodeImpl(qname, schemaPath);
instance.description = description;
instance.reference = reference;
instance.addedByUses = addedByUses;
instance.configuration = configuration;
- instance.constraints = constraints.toInstance();
+ instance.constraints = constraints.build();
instance.defaultCase = defaultCase;
// ORIGINAL NODE