forked from metaschema-framework/metaschema-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked how Metapath expressions are compiled to ensure the static c…
…ontext from their source is used in compilation. Also improved node item, definition, and instance creation for easier use in unit tests.
- Loading branch information
1 parent
6a9f9d1
commit 28e6ebd
Showing
81 changed files
with
993 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/src/main/java/gov/nist/secauto/metaschema/core/mdm/IDMDefinitionNodeItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* SPDX-FileCopyrightText: none | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
package gov.nist.secauto.metaschema.core.mdm; | ||
|
||
import gov.nist.secauto.metaschema.core.metapath.item.node.IDefinitionNodeItem; | ||
import gov.nist.secauto.metaschema.core.model.IDefinition; | ||
import gov.nist.secauto.metaschema.core.model.INamedInstance; | ||
|
||
public interface IDMDefinitionNodeItem<D extends IDefinition, I extends INamedInstance> | ||
extends IDMNodeItem, IDefinitionNodeItem<D, I> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/src/main/java/gov/nist/secauto/metaschema/core/mdm/IDMFlagNodeItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* SPDX-FileCopyrightText: none | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
package gov.nist.secauto.metaschema.core.mdm; | ||
|
||
import gov.nist.secauto.metaschema.core.mdm.impl.IDMAtomicValuedNodeItem; | ||
import gov.nist.secauto.metaschema.core.metapath.item.node.IFlagNodeItem; | ||
|
||
public interface IDMFlagNodeItem extends IFlagNodeItem, IDMNodeItem, IDMAtomicValuedNodeItem { | ||
// no additional methods | ||
} |
21 changes: 21 additions & 0 deletions
21
core/src/main/java/gov/nist/secauto/metaschema/core/mdm/IDMNodeItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-FileCopyrightText: none | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
package gov.nist.secauto.metaschema.core.mdm; | ||
|
||
import gov.nist.secauto.metaschema.core.metapath.item.node.INodeItem; | ||
import gov.nist.secauto.metaschema.core.model.IResourceLocation; | ||
|
||
import edu.umd.cs.findbugs.annotations.NonNull; | ||
|
||
public interface IDMNodeItem extends INodeItem { | ||
/** | ||
* | ||
* @param location | ||
* information about the location of the node within the containing | ||
* resource | ||
*/ | ||
void setLocation(@NonNull IResourceLocation location); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.