Skip to content

Commit

Permalink
interim commit
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed May 3, 2024
1 parent 39ffd54 commit 4d2cfe5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final INSTANCE getInlineInstance() {
}

@Override
public final IFlagInstance getJsonKey() {
public final FLAG getJsonKey() {
return IFeatureContainerFlag.super.getJsonKey();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public final INSTANCE getInlineInstance() {
}

@Override
public final IFlagInstance getJsonKey() {
public final FLAG getJsonKey() {
return IFeatureContainerFlag.super.getJsonKey();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ default Collection<? extends FI> getFlagInstances() {
}

@Override
default IFlagInstance getJsonKey() {
default FI getJsonKey() {
return getFlagContainer().getJsonKeyFlagInstance();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
package gov.nist.secauto.metaschema.core.model;

import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine;
import gov.nist.secauto.metaschema.core.util.ObjectUtils;

import java.util.Locale;

Expand Down Expand Up @@ -60,11 +61,15 @@ default QName getDefinitionQName() {
}

@Override
DEFINITION getDefinition();
default DEFINITION getDefinition() {
return ObjectUtils.asType(this);
}

@Override
@NonNull
INSTANCE getInlineInstance();
default INSTANCE getInlineInstance() {
return ObjectUtils.asType(this);
}

@Override
default String getEffectiveFormalName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@

public interface IFlagDefinition extends IValuedDefinition, IFlag {
@Override
default IFlagInstance getInlineInstance() {
// not inline by default
return null;
}
IFlagInstance getInlineInstance();
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public interface IFlagInstance extends IFlag, IValuedInstance, IInstanceAbsolute
@Override
IFlagDefinition getDefinition();

@Override
default IModelDefinition getContainingDefinition() {
return getParentContainer();
}

/**
* Determines if a flag value is required to be provided.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

class XmlInlineFlagDefinition
extends AbstractInlineFlagDefinition<IModelDefinition, IFlagDefinition, IFlagInstance> {

@NonNull
private final InlineFlagDefinitionType xmlFlag;
@Nullable
Expand Down

0 comments on commit 4d2cfe5

Please sign in to comment.