Search in sources :

Example 96 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class BeforeTestCasePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    BeforeTestCase entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(3);
    list.add(entity.getDescription());
    list.add(entity.getName());
    list.add(entity.getBody());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) BeforeTestCase(org.whole.lang.tests.model.BeforeTestCase)

Example 97 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class EqualsPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Equals entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getObject());
    return list;
}
Also used : Equals(org.whole.lang.tests.model.Equals) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 98 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class FilterPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Filter entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getName());
    return list;
}
Also used : Filter(org.whole.lang.tests.model.Filter) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 99 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class HasKindPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    HasKind entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getKind());
    return list;
}
Also used : HasKind(org.whole.lang.tests.model.HasKind) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 100 with IEntity

use of org.whole.lang.model.IEntity in project whole by wholeplatform.

the class CreateEntityPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    CreateEntity entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(5);
    children.add(entity.getLabel());
    children.add(entity.getModel());
    children.add(entity.getRegistry());
    children.add(entity.getEntityName());
    children.add(entity.getArguments());
    return children;
}
Also used : CreateEntity(org.whole.lang.workflows.model.CreateEntity) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Aggregations

IEntity (org.whole.lang.model.IEntity)1407 ArrayList (java.util.ArrayList)604 Test (org.junit.Test)241 IBindingManager (org.whole.lang.bindings.IBindingManager)141 PathExpression (org.whole.lang.queries.model.PathExpression)68 ITemplateManager (org.whole.lang.templates.ITemplateManager)61 Grammar (org.whole.lang.grammars.model.Grammar)50 TestXmlGrammar (org.whole.lang.grammars.util.TestXmlGrammar)46 FeatureDescriptor (org.whole.lang.reflect.FeatureDescriptor)43 Model (org.whole.lang.models.model.Model)40 InternalIEntity (org.whole.lang.model.InternalIEntity)38 VisitException (org.whole.lang.visitors.VisitException)35 IEntityPartViewer (org.whole.lang.ui.viewers.IEntityPartViewer)30 ModelsModel (org.whole.lang.models.codebase.ModelsModel)27 WholeIllegalArgumentException (org.whole.lang.exceptions.WholeIllegalArgumentException)26 StreamPersistenceProvider (org.whole.lang.codebase.StreamPersistenceProvider)24 ModelBuilderOperation (org.whole.lang.builders.ModelBuilderOperation)22 XmlModel (org.whole.lang.models.codebase.XmlModel)22 MissingVariableException (org.whole.lang.visitors.MissingVariableException)22 IEntityPart (org.whole.lang.ui.editparts.IEntityPart)21