From f2658aebb4a138f82ef0a85f3f373b16b514991d Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sun, 6 Mar 2022 20:02:04 +0100 Subject: [PATCH] [New] Added StrolchValueType.isList() --- .../li/strolch/model/StrolchValueType.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/li.strolch.model/src/main/java/li/strolch/model/StrolchValueType.java b/li.strolch.model/src/main/java/li/strolch/model/StrolchValueType.java index c3ebcb041..742219573 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/StrolchValueType.java +++ b/li.strolch.model/src/main/java/li/strolch/model/StrolchValueType.java @@ -388,6 +388,11 @@ public enum StrolchValueType { public IValue valueInstance(String valueAsString) { return new FloatListValue(valueAsString); } + + @Override + public boolean isList() { + return true; + } }, /** @@ -423,6 +428,11 @@ public enum StrolchValueType { public IValue valueInstance(String valueAsString) { return new IntegerListValue(valueAsString); } + + @Override + public boolean isList() { + return true; + } }, /** @@ -460,6 +470,11 @@ public enum StrolchValueType { throw new UnsupportedOperationException( MessageFormat.format("Parameters of type {0} are not supported!", getType())); //$NON-NLS-1$ } + + @Override + public boolean isList() { + return true; + } }, /** @@ -497,6 +512,11 @@ public enum StrolchValueType { throw new UnsupportedOperationException( MessageFormat.format("Values of type {0} are not supported!", getType())); //$NON-NLS-1$ } + + @Override + public boolean isList() { + return true; + } }, /** @@ -580,4 +600,8 @@ public enum StrolchValueType { public boolean isString() { return false; } + + public boolean isList() { + return false; + } } \ No newline at end of file