[New] Added StrolchValueType.isList()

This commit is contained in:
Robert von Burg 2022-03-06 20:02:04 +01:00
parent 04e5167f60
commit f2658aebb4
1 changed files with 24 additions and 0 deletions

View File

@ -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;
}
}