Class ProjectElement
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ProjectElement
-
- All Implemented Interfaces:
IBuildlangElement,ILanguageElement
- Direct Known Subclasses:
RuleBlock
public abstract class ProjectElement extends java.lang.Object implements IBuildlangElement
Representation of an abstract project element. This will be further refined by specific elements that can be added to a project.- Author:
- kroeher
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate ILanguageElementparent
-
Constructor Summary
Constructors Constructor Description ProjectElement(java.lang.String name)Create a new project element with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the name of this project element.ILanguageElementgetParent()Returns the parent element.protected voidsetParent(ILanguageElement parent)Changes the parent.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.buildlangModel.IBuildlangElement
accept
-
-
-
-
Field Detail
-
name
private java.lang.String name
-
parent
private ILanguageElement parent
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of this project element.- Returns:
- The name of this project element.
-
getParent
public ILanguageElement getParent()
Description copied from interface:ILanguageElementReturns the parent element.- Specified by:
getParentin interfaceILanguageElement- Returns:
- the parent element (may be null if unknown)
-
setParent
protected void setParent(ILanguageElement parent)
Changes the parent. Please override if children must be adjusted according. Shall be called only once per instance, but there is no limitation.- Parameters:
parent- the parent
-
-