You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: MeasureEnsembleBrainPF_xUPP_Layer.m
    path of file: ./repos/BRAPH-2/braph2/src/analysis
    
    the code of the file until where you have to start completion: classdef MeasureEnsembleBrainPF_xUPP_Layer < PanelProp
	%MeasureEnsembleBrainPF_xUPP_Layer plots the panel to select a layer.
	% It is a subclass of <a href="matlab:help PanelProp">PanelProp</a>.
	%
	% MeasureEnsembleBrainPF_xUPP_Layer plots the panel to select a layer from a drop-down list.
	% It is supposed to be used with the property LAYER of MeasureEnsembleBrainPF_NU, MeasureEnsembleBrainPF_BU, or MeasureEnsembleBrainPF_GU.
	%
	% The list of MeasureEnsembleBrainPF_xUPP_Layer properties is:
	%  <strong>1</strong> <strong>ELCLASS</strong> 	ELCLASS (constant, string) is the class of the % % % .
	%  <strong>2</strong> <strong>NAME</strong> 	NAME (constant, string) is the name of the panel property layer.
	%  <strong>3</strong> <strong>DESCRIPTION</strong> 	DESCRIPTION (constant, string) is the description of the panel property layer.
	%  <strong>4</strong> <strong>TEMPLATE</strong> 	TEMPLATE (parameter, item) is the template of the panel property layer.
	%  <strong>5</strong> <strong>ID</strong> 	ID (data, string) is a few-letter code for the panel property layer.
	%  <strong>6</strong> <strong>LABEL</strong> 	LABEL (metadata, string) is an extended label of the panel property layer.
	%  <strong>7</strong> <strong>NOTES</strong> 	NOTES (metadata, string) are some specific notes about the panel property layer.
	%  <strong>8</strong> <strong>TOSTRING</strong> 	TOSTRING (query, string) returns a string that represents the concrete element.
	%  <strong>9</strong> <strong>WAITBAR</strong> 	WAITBAR (gui, logical) detemines whether to show the waitbar.
	%  <strong>10</strong> <strong>H_WAITBAR</strong> 	H_WAITBAR (evanescent, handle) is the waitbar handle.
	%  <strong>11</strong> <strong>DRAW</strong> 	DRAW (query, logical) draws the property panel.
	%  <strong>12</st
    
function prop_check = checkProp(pointer, value)
			%CHECKPROP checks whether a value has the correct format/error.
			%
			% CHECK = PR.CHECKPROP(POINTER, VALUE) checks whether
			%  VALUE is an acceptable value for the format of the property
			%  POINTER (POINTER = PROP or TAG).
			% 
			% Alternative forms to call this method are (POINTER = PROP or TAG):
			%  CHECK = PR.CHECKPROP(POINTER, VALUE) checks VALUE format for PROP of PR.
			%  CHECK = Element.CHECKPROP(MeasureEnsembleBrainPF_xUPP_Layer, PROP, VALUE) checks VALUE format for PROP of MeasureEnsembleBrainPF_xUPP_Layer.
			%  CHECK = PR.CHECKPROP(MeasureEnsembleBrainPF_xUPP_Layer, PROP, VALUE) checks VALUE format for PROP of MeasureEnsembleBrainPF_xUPP_Layer.
			% 
			% PR.CHECKPROP(POINTER, VALUE) throws an error if VALUE is
			%  NOT an acceptable value for the format of the property POINTER.
			%  Error id: BRAPH2:MeasureEnsembleBrainPF_xUPP_Layer:WrongInput
			% 
			% Alternative forms to call this method are (POINTER = PROP or TAG):
			%  PR.CHECKPROP(POINTER, VALUE) throws error if VALUE has not a valid format for PROP of PR.
			%   Error id: BRAPH2:MeasureEnsembleBrainPF_xUPP_Layer:WrongInput
			%  Element.CHECKPROP(MeasureEnsembleBrainPF_xUPP_Layer, PROP, VALUE) throws error if VALUE has not a valid format for PROP of MeasureEnsembleBrainPF_xUPP_Layer.
			%   Error id: BRAPH2:MeasureEnsembleBrainPF_xUPP_Layer:WrongInput
			%  PR.CHECKPROP(MeasureEnsembleBrainPF_xUPP_Layer, PROP, VALUE) throws error if VALUE has not a valid format for PROP of MeasureEnsembleBrainPF_xUPP_Layer.
			%   Error id: BRAPH2:MeasureEnsembleBrainPF_xUPP_Layer:WrongInput]
			% 
			% Note that the Element.CHECKPROP(PR) and Element.CHECKPROP('MeasureEnsembleBrainPF_xUPP_Layer')
			%  are less computationally efficient.
			%
			% See also Format, getPropProp, getPropTag, getPropSettings,
			% getPropCategory, getPropFormat, getPropDescription, getPropDefault.
			
			prop = MeasureEnsembleBrainPF_xUPP_Layer.getPropProp(pointer);
			
			switch prop
				case 36 % MeasureEnsembleBrainPF_xUPP_Layer.DROPDOWN
					check = Format.checkFormat(18, value, MeasureEnsembleBrainPF_xUPP_Layer.getPropSettings(prop));
				case 4 % MeasureEnsembleBrainPF_xUPP_Layer.TEMPLATE
					check = Format.checkFormat(8, value, MeasureEnsembleBrainPF_xUPP_Layer.getPropSettings(prop));
				otherwise
					if prop <= 35
						check = checkProp@PanelProp(prop, value);
					end