Skip to content

Commit a80ac27

Browse files
Added support for a node item-based document.
1 parent ce259ba commit a80ac27

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

core/src/main/java/gov/nist/secauto/metaschema/core/metapath/atomic/IAtomicOrUnionType.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ default I cast(@NonNull ISequence<?> sequence) {
135135
return item == null ? null : cast(item);
136136
}
137137

138+
/**
139+
* Construct a new instance of this type using the provided value.
140+
*
141+
* @param value
142+
* the "wrapped" value of the type
143+
* @return the new item
144+
*/
145+
@NonNull
146+
I newItem(@NonNull Object value);
147+
138148
/**
139149
* A callback used to perform a casting operation.
140150
*
@@ -153,14 +163,4 @@ interface ICastExecutor<ITEM extends IAnyAtomicItem> {
153163
@NonNull
154164
ITEM cast(@NonNull IAnyAtomicItem item);
155165
}
156-
157-
/**
158-
* Construct a new instance of this type using the provided value.
159-
*
160-
* @param value
161-
* the "wrapped" value of the type
162-
* @return the new item
163-
*/
164-
@NonNull
165-
I newItem(@NonNull Object value);
166166
}

core/src/main/java/gov/nist/secauto/metaschema/core/metapath/atomic/IAtomicValuedItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
* associated {@link IAnyAtomicItem} value.
1313
*/
1414
public interface IAtomicValuedItem extends IItem {
15-
// no additional methods
15+
// no new methods
1616
}

0 commit comments

Comments
 (0)