/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.buckminster.model.common; import java.util.List; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> A representation of the model object ' * <em><b>Rx Part</b></em>'. <!-- end-user-doc --> * * <!-- begin-model-doc --> Defines a partial regexp <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.buckminster.model.common.RxPart#getName <em>Name</em>} * </li> * <li>{@link org.eclipse.buckminster.model.common.RxPart#isOptional <em> * Optional</em>}</li> * </ul> * </p> * * @see org.eclipse.buckminster.model.common.CommonPackage#getRxPart() * @model abstract="true" * @generated */ public interface RxPart extends EObject { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @model * collectorDataType="org.eclipse.buckminster.model.common.StringBuilder" * namedPartsDataType= * "org.eclipse.buckminster.model.common.List<org.eclipse.buckminster.model.common.RxPart>" * namedPartsMany="false" * @generated */ void addPattern(StringBuilder collector, List<RxPart> namedParts); /** * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> * * Denotes if this part a capturing group or not. The match for a named part * can be used in replacement patterns. * * <!-- end-model-doc --> * * @return the value of the '<em>Name</em>' attribute. * @see #setName(String) * @see org.eclipse.buckminster.model.common.CommonPackage#getRxPart_Name() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='name'" * @generated */ String getName(); /** * Returns the value of the '<em><b>Optional</b></em>' attribute. The * default value is <code>"false"</code>. <!-- begin-user-doc --> <!-- * end-user-doc --> <!-- begin-model-doc --> * * Denotes if this part is optional (must be matched) or not. The top * element of a regexp can not be optional. * * <!-- end-model-doc --> * * @return the value of the '<em>Optional</em>' attribute. * @see #isSetOptional() * @see #unsetOptional() * @see #setOptional(boolean) * @see org.eclipse.buckminster.model.common.CommonPackage#getRxPart_Optional() * @model default="false" unsettable="true" * dataType="org.eclipse.emf.ecore.xml.type.Boolean" * extendedMetaData="kind='attribute' name='optional'" * @generated */ boolean isOptional(); /** * Returns whether the value of the ' * {@link org.eclipse.buckminster.model.common.RxPart#isOptional * <em>Optional</em>}' attribute is set. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @return whether the value of the '<em>Optional</em>' attribute is set. * @see #unsetOptional() * @see #isOptional() * @see #setOptional(boolean) * @generated */ boolean isSetOptional(); /** * Sets the value of the ' * {@link org.eclipse.buckminster.model.common.RxPart#getName <em>Name</em>} * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @param value * the new value of the '<em>Name</em>' attribute. * @see #getName() * @generated */ void setName(String value); /** * Sets the value of the ' * {@link org.eclipse.buckminster.model.common.RxPart#isOptional * <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @param value * the new value of the '<em>Optional</em>' attribute. * @see #isSetOptional() * @see #unsetOptional() * @see #isOptional() * @generated */ void setOptional(boolean value); /** * Unsets the value of the ' * {@link org.eclipse.buckminster.model.common.RxPart#isOptional * <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @see #isSetOptional() * @see #isOptional() * @see #setOptional(boolean) * @generated */ void unsetOptional(); } // RxPart