/** * Copyright (c) 2017 CEA LIST. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Maged Elaasar - Initial API and implementation * * */ package org.eclipse.papyrus.infra.gmfdiag.representation; import org.eclipse.gmf.runtime.emf.type.core.IElementType; import org.eclipse.papyrus.infra.architecture.representation.Rule; /** * * A representation of the model object 'Assistant Rule'. * * * * A rule that permits or forbids one or more modeling assistants by element type ID. * * *

* The following features are supported: *

* * * @see org.eclipse.papyrus.infra.gmfdiag.representation.RepresentationPackage#getAssistantRule() * @model * @generated */ public interface AssistantRule extends Rule { /** * Returns the value of the 'Element Type ID' attribute. * * * * A pattern (that can include *) to match for the identifier of a assistant element. * * @return the value of the 'Element Type ID' attribute. * @see #setElementTypeID(String) * @see org.eclipse.papyrus.infra.gmfdiag.representation.RepresentationPackage#getAssistantRule_ElementTypeID() * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='A pattern (that can include *) to match for the identifier of a assistant element.'" * @generated */ String getElementTypeID(); /** * Sets the value of the '{@link org.eclipse.papyrus.infra.gmfdiag.representation.AssistantRule#getElementTypeID Element Type ID}' attribute. * * * @param value the new value of the 'Element Type ID' attribute. * @see #getElementTypeID() * @generated */ void setElementTypeID(String value); /** * * * * Queries whether I match a given elementType. * * @model required="true" elementTypeDataType="org.eclipse.papyrus.infra.gmfdiag.representation.ElementType" elementTypeRequired="true" * @generated */ boolean matches(IElementType elementType); } // AssistantRule