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();