Search in sources :

Example 76 with IEntity

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

the class CardinalityPart method getModelSpecificChildren.

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

Example 77 with IEntity

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

the class FactorOfPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    FactorOf entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getExp1());
    list.add(entity.getExp2());
    return list;
}
Also used : FactorOf(org.whole.lang.math.model.FactorOf) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 78 with IEntity

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

the class FloorPart method getModelSpecificChildren.

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

Example 79 with IEntity

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

the class TrigonometricExpressionPart method getModelSpecificChildren.

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

Example 80 with IEntity

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

the class ClasspathPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Classpath entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(2);
    children.add(entity.getPersistence());
    children.add(entity.getContent());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) Classpath(org.whole.lang.reusables.model.Classpath) 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