From 22b2a467c148e7183d94a43ea3f836d38bbf7891 Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Tue, 26 Nov 2024 10:53:59 -0500 Subject: [PATCH] Added missing methods. --- .../metaschema/core/metapath/item/atomic/ITimeItem.java | 5 +++++ .../core/metapath/item/atomic/ITimeWithTimeZoneItem.java | 5 +++++ .../core/metapath/item/atomic/impl/AbstractTimeItem.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeItem.java b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeItem.java index de87d23f6..254fd02bb 100644 --- a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeItem.java +++ b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeItem.java @@ -35,6 +35,11 @@ static IAtomicOrUnionType type() { return MetaschemaDataTypeProvider.TIME.getItemType(); } + @Override + default IAtomicOrUnionType getType() { + return type(); + } + /** * Construct a new date/time item using the provided string {@code value}. * diff --git a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeWithTimeZoneItem.java b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeWithTimeZoneItem.java index f8276c481..a29484b53 100644 --- a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeWithTimeZoneItem.java +++ b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/ITimeWithTimeZoneItem.java @@ -36,6 +36,11 @@ static IAtomicOrUnionType type() { return MetaschemaDataTypeProvider.TIME_WITH_TZ.getItemType(); } + @Override + default IAtomicOrUnionType getType() { + return type(); + } + /** * Construct a new time item using the provided string {@code value}. * diff --git a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/impl/AbstractTimeItem.java b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/impl/AbstractTimeItem.java index e9e57252e..f58f125f7 100644 --- a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/impl/AbstractTimeItem.java +++ b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/atomic/impl/AbstractTimeItem.java @@ -31,6 +31,11 @@ protected AbstractTimeItem(@NonNull TYPE value) { super(value); } + @Override + protected String getValueSignature() { + return "'" + asString() + "'"; + } + @Override public int hashCode() { return asOffsetTime().hashCode();