1
2
3
4
5
6 package gov.nist.secauto.metaschema.schemagen.json.impl;
7
8 import gov.nist.secauto.metaschema.core.model.IGroupable;
9 import gov.nist.secauto.metaschema.core.model.IModelInstance;
10
11 public interface IGroupableModelInstanceJsonProperty<I extends IModelInstance & IGroupable>
12 extends IJsonProperty<I> {
13 default int getMinOccurs() {
14 return getInstance().getMinOccurs();
15 }
16
17 default int getMaxOccurs() {
18 return getInstance().getMaxOccurs();
19 }
20
21 @Override
22 default boolean isRequired() {
23 return getMinOccurs() > 0;
24 }
25 }