Package de.bmiag.tapir.execution.model
Class ExecutionPlan
- java.lang.Object
-
- de.bmiag.tapir.execution.model.ExecutionPlan
-
- All Implemented Interfaces:
ExecutionModelElement
,Identifiable
,JavaClassBased
,StructuralElementContainer
public final class ExecutionPlan extends java.lang.Object implements JavaClassBased, ExecutionModelElement, Identifiable, StructuralElementContainer
ExecutionPlan
is the root element of an execution plan and not not more than a container for the other execution model elements.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutionPlan.Builder
Builds instances of typeExecutionPlan
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionPlan
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ExecutionPlan.Builder> init)
Creates an immutable instance of ExecutionPlan.ExecutionPlan
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ExecutionPlan.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.util.List<StructuralElement>
getChildren()
Returns the children of this containerjava.lang.Integer
getId()
Returns the id.java.lang.Class<?>
getJavaClass()
The underlying java class.int
hashCode()
void
setChildren(java.util.List<StructuralElement> children)
Sets the value of thechildren
attributejava.lang.String
toString()
-
-
-
Method Detail
-
getJavaClass
public java.lang.Class<?> getJavaClass()
Description copied from interface:JavaClassBased
The underlying java class.- Specified by:
getJavaClass
in interfaceJavaClassBased
- Returns:
- The value of the
javaClass
attribute
-
getId
public java.lang.Integer getId()
Description copied from interface:Identifiable
Returns the id. The id has to be unique in an execution plan.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- The value of the
id
attribute
-
getChildren
public java.util.List<StructuralElement> getChildren()
Description copied from interface:StructuralElementContainer
Returns the children of this container- Specified by:
getChildren
in interfaceStructuralElementContainer
- Returns:
- The value of the
children
attribute
-
setChildren
public void setChildren(java.util.List<StructuralElement> children)
Sets the value of thechildren
attribute- Parameters:
children
- the children
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static ExecutionPlan build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ExecutionPlan.Builder> init)
Creates an immutable instance of ExecutionPlan. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable ExecutionPlan instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public ExecutionPlan copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ExecutionPlan.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable ExecutionPlan instance
-
-