org.nasdanika.html.model.app.Label Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.app;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.nasdanika.html.model.bootstrap.BootstrapElement;
import org.nasdanika.html.model.bootstrap.Item;
/**
*
* A representation of the model object 'Label'.
*
*
*
* The following features are supported:
*
*
* - {@link org.nasdanika.html.model.app.Label#getId Id}
* - {@link org.nasdanika.html.model.app.Label#getText Text}
* - {@link org.nasdanika.html.model.app.Label#getIcon Icon}
* - {@link org.nasdanika.html.model.app.Label#getTooltip Tooltip}
* - {@link org.nasdanika.html.model.app.Label#isOutline Outline}
* - {@link org.nasdanika.html.model.app.Label#getNotification Notification}
* - {@link org.nasdanika.html.model.app.Label#getChildren Children}
* - {@link org.nasdanika.html.model.app.Label#getDecorator Decorator}
*
*
* @see org.nasdanika.html.model.app.AppPackage#getLabel()
* @model annotation="http://www.eclipse.org/emf/2002/GenModel"
* @generated
*/
public interface Label extends BootstrapElement, Item {
/**
* Returns the value of the 'Id' attribute.
*
*
* @return the value of the 'Id' attribute.
* @see #setId(String)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Id()
* @model
* @generated
*/
String getId();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getId Id}' attribute.
*
*
* @param value the new value of the 'Id' attribute.
* @see #getId()
* @generated
*/
void setId(String value);
/**
* Returns the value of the 'Text' attribute.
*
*
* @return the value of the 'Text' attribute.
* @see #setText(String)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Text()
* @model annotation="urn:org.nasdanika default-feature='true'"
* @generated
*/
String getText();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getText Text}' attribute.
*
*
* @param value the new value of the 'Text' attribute.
* @see #getText()
* @generated
*/
void setText(String value);
/**
* Returns the value of the 'Icon' attribute.
*
*
* @return the value of the 'Icon' attribute.
* @see #setIcon(String)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Icon()
* @model
* @generated
*/
String getIcon();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getIcon Icon}' attribute.
*
*
* @param value the new value of the 'Icon' attribute.
* @see #getIcon()
* @generated
*/
void setIcon(String value);
/**
* Returns the value of the 'Tooltip' attribute.
*
*
* @return the value of the 'Tooltip' attribute.
* @see #setTooltip(String)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Tooltip()
* @model
* @generated
*/
String getTooltip();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getTooltip Tooltip}' attribute.
*
*
* @param value the new value of the 'Tooltip' attribute.
* @see #getTooltip()
* @generated
*/
void setTooltip(String value);
/**
* Returns the value of the 'Outline' attribute.
*
*
* @return the value of the 'Outline' attribute.
* @see #setOutline(boolean)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Outline()
* @model
* @generated
*/
boolean isOutline();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#isOutline Outline}' attribute.
*
*
* @param value the new value of the 'Outline' attribute.
* @see #isOutline()
* @generated
*/
void setOutline(boolean value);
/**
* Returns the value of the 'Notification' attribute.
*
*
* @return the value of the 'Notification' attribute.
* @see #setNotification(String)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Notification()
* @model
* @generated
*/
String getNotification();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getNotification Notification}' attribute.
*
*
* @param value the new value of the 'Notification' attribute.
* @see #getNotification()
* @generated
*/
void setNotification(String value);
/**
* Returns the value of the 'Children' containment reference list.
* The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
*
*
* @return the value of the 'Children' containment reference list.
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Children()
* @model containment="true"
* @generated
*/
EList getChildren();
/**
* Returns the value of the 'Decorator' containment reference.
*
*
* @return the value of the 'Decorator' containment reference.
* @see #setDecorator(Label)
* @see org.nasdanika.html.model.app.AppPackage#getLabel_Decorator()
* @model containment="true"
* @generated
*/
Label getDecorator();
/**
* Sets the value of the '{@link org.nasdanika.html.model.app.Label#getDecorator Decorator}' containment reference.
*
*
* @param value the new value of the 'Decorator' containment reference.
* @see #getDecorator()
* @generated
*/
void setDecorator(Label value);
/**
* Rebases children
* @param from
* @param to
*/
default void rebase(URI from, URI to) {
for (EObject child: getChildren()) {
if (child instanceof Label) {
((Label) child).rebase(from, to);
}
}
}
} // Label