[New] Added StrolchValueType.isList()
This commit is contained in:
parent
04e5167f60
commit
f2658aebb4
|
@ -388,6 +388,11 @@ public enum StrolchValueType {
|
||||||
public IValue<?> valueInstance(String valueAsString) {
|
public IValue<?> valueInstance(String valueAsString) {
|
||||||
return new FloatListValue(valueAsString);
|
return new FloatListValue(valueAsString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isList() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -423,6 +428,11 @@ public enum StrolchValueType {
|
||||||
public IValue<?> valueInstance(String valueAsString) {
|
public IValue<?> valueInstance(String valueAsString) {
|
||||||
return new IntegerListValue(valueAsString);
|
return new IntegerListValue(valueAsString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isList() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -460,6 +470,11 @@ public enum StrolchValueType {
|
||||||
throw new UnsupportedOperationException(
|
throw new UnsupportedOperationException(
|
||||||
MessageFormat.format("Parameters of type {0} are not supported!", getType())); //$NON-NLS-1$
|
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(
|
throw new UnsupportedOperationException(
|
||||||
MessageFormat.format("Values of type {0} are not supported!", getType())); //$NON-NLS-1$
|
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() {
|
public boolean isString() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isList() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue