| /** |
| * Copyright (c) 2020 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * E.D.Willink - Initial API and implementation |
| */ |
| package org.eclipse.ocl.examples.xtext.idioms; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>String Segment</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A StringSegment contributes an explicit character sequence to the outer value of a SubIdiom. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.ocl.examples.xtext.idioms.StringSegment#isPrintable <em>Printable</em>}</li> |
| * <li>{@link org.eclipse.ocl.examples.xtext.idioms.StringSegment#getString <em>String</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.ocl.examples.xtext.idioms.IdiomsPackage#getStringSegment() |
| * @model |
| * @generated |
| */ |
| public interface StringSegment |
| extends Segment { |
| |
| /** |
| * Returns the value of the '<em><b>Printable</b></em>' attribute. |
| * The default value is <code>"true"</code>. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Printable</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Printable</em>' attribute. |
| * @see #setPrintable(boolean) |
| * @see org.eclipse.ocl.examples.xtext.idioms.IdiomsPackage#getStringSegment_Printable() |
| * @model default="true" required="true" |
| * @generated |
| */ |
| boolean isPrintable(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.ocl.examples.xtext.idioms.StringSegment#isPrintable <em>Printable</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Printable</em>' attribute. |
| * @see #isPrintable() |
| * @generated |
| */ |
| void setPrintable(boolean value); |
| |
| /** |
| * Returns the value of the '<em><b>String</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>String</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>String</em>' attribute. |
| * @see #setString(String) |
| * @see org.eclipse.ocl.examples.xtext.idioms.IdiomsPackage#getStringSegment_String() |
| * @model required="true" |
| * @generated |
| */ |
| String getString(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.ocl.examples.xtext.idioms.StringSegment#getString <em>String</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>String</em>' attribute. |
| * @see #getString() |
| * @generated |
| */ |
| void setString(String value); |
| |
| } // StringSegment |