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. (metaschema-framework#305) Also improved node item, definition, and instance creation for easier use in unit tests.
- Loading branch information
1 parent
f4b5016
commit f457b9f
Showing
105 changed files
with
2,398 additions
and
1,382 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
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
17 changes: 17 additions & 0 deletions
17
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,17 @@ | ||
/* | ||
* 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.IAtomicValuedNodeItem; | ||
import gov.nist.secauto.metaschema.core.metapath.item.node.IFlagNodeItem; | ||
|
||
/** | ||
* Represents a Metapath flag node item that is backed by a simple Metaschema | ||
* module-based data model. | ||
*/ | ||
public interface IDMFlagNodeItem extends IFlagNodeItem, IDMNodeItem, IAtomicValuedNodeItem { | ||
// no additional methods | ||
} |
26 changes: 26 additions & 0 deletions
26
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,26 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* Represents a Metapath node item that is backed by a simple Metaschema | ||
* module-based data model. | ||
*/ | ||
public interface IDMNodeItem extends INodeItem { | ||
/** | ||
* Provides a means to change the location information for the node item. | ||
* | ||
* @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.