blob: c89d8d0384f049b0eb3d037a21cdebe15e9c1b6e [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2008 The University of York.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.epsilon.emc.simulink.dictionary.model.element;
import java.util.Arrays;
import java.util.Collection;
import org.eclipse.epsilon.emc.simulink.engine.MatlabEngine;
import org.eclipse.epsilon.emc.simulink.model.AbstractSimulinkModel;
import org.eclipse.epsilon.emc.simulink.model.element.MatlabHandleElement;
import org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement;
import org.eclipse.epsilon.emc.simulink.types.HandleObject;
import org.eclipse.epsilon.eol.exceptions.EolIllegalPropertyException;
import org.eclipse.epsilon.eol.exceptions.EolRuntimeException;
public class SimulinkSection extends SimulinkModelElement implements ISimulinkDictionaryModelElement{
protected MatlabHandleElement section;
public SimulinkSection(AbstractSimulinkModel model, MatlabEngine engine, HandleObject sectionHandle) {
super(model, engine);
section = new MatlabHandleElement(model, engine, sectionHandle);
}
@Override
public Object getProperty(String property) throws EolIllegalPropertyException {
return section.getProperty(property);
}
@Override
public void setProperty(String property, Object value) throws EolIllegalPropertyException {
section.setProperty(property, value);
}
@Override
public Collection<String> getAllTypeNamesOf() {
return Arrays.asList("Section");
}
@Override
public boolean deleteElementInModel() throws EolRuntimeException {
return false;
}
@Override
public String getPath() {
return null;
}
@Override
public Object getHandle() {
return section.getHandle();
}
}