
org.jnario.impl.SpecificationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jnario.standalone Show documentation
Show all versions of org.jnario.standalone Show documentation
The required libraries to execute Jnario specifications without Eclipse.
The newest version!
/**
*
*
*
* $Id$
*/
package org.jnario.impl;
import org.eclipse.emf.common.util.ECollections;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.xtend.core.xtend.impl.XtendClassImplCustom;
import org.jnario.Executable;
import org.jnario.JnarioPackage;
import org.jnario.Specification;
/**
*
* An implementation of the model object 'Specification'.
*
*
*
*
* @generated NOT
*/
public class SpecificationImpl extends XtendClassImplCustom implements Specification {
private EList children;
/**
*
*
* @generated
*/
protected SpecificationImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return JnarioPackage.Literals.SPECIFICATION;
}
public boolean isPending(){
for (Executable child : getChildren()) {
if(child.isPending()){
return true;
}
}
return false;
}
public EList getChildren(){
if(children == null){
children = calculateChildren();
}
return children;
}
protected EList calculateChildren() {
return ECollections.emptyEList();
}
} //SpecificationImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy