Skip to content
Snippets Groups Projects
Commit f09af6f5 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

ENH: Add Property.isList function

parent 488ad49a
No related branches found
No related tags found
1 merge request!2ENH: Add functions for File entities
...@@ -82,8 +82,13 @@ export class Property { ...@@ -82,8 +82,13 @@ export class Property {
} }
} }
isList() {
const dtypeCase = this.wrappedProperty.getDataType().getDataTypeCase();
return dtypeCase === api.v1.DataType.DataTypeCase.LIST_DATA_TYPE;
}
isReference() { isReference() {
const wrappedDataType = this.wrappedProperty.getDataType() const wrappedDataType = this.wrappedProperty.getDataType();
const dtypeCase = wrappedDataType.getDataTypeCase(); const dtypeCase = wrappedDataType.getDataTypeCase();
return ( return (
(dtypeCase === api.v1.DataType.DataTypeCase.REFERENCE_DATA_TYPE) || (dtypeCase === api.v1.DataType.DataTypeCase.REFERENCE_DATA_TYPE) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment