Search in sources :

Example 71 with IEntity

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

the class LanguageDescriptorPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    LanguageDescriptor entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(4);
    list.add(entity.getUri());
    list.add(entity.getNamespace());
    list.add(entity.getName());
    list.add(entity.getVersion());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) LanguageDescriptor(org.whole.lang.grammars.model.LanguageDescriptor)

Example 72 with IEntity

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

the class LiteralTerminalPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    LiteralTerminal entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getPattern());
    list.add(entity.getLiteral());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) LiteralTerminal(org.whole.lang.grammars.model.LiteralTerminal) ArrayList(java.util.ArrayList)

Example 73 with IEntity

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

the class FactorialPart method getModelSpecificChildren.

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

Example 74 with IEntity

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

the class InPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    In entity = getModelEntity();
    IEntity exp1 = entity.getElement();
    IEntity exp2 = entity.getCollection();
    refreshPrecedence(entity, exp1, exp2);
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(exp1);
    list.add(exp2);
    return list;
}
Also used : In(org.whole.lang.math.model.In) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Example 75 with IEntity

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

the class ListPart method getModelSpecificChildren.

protected java.util.List<IEntity> getModelSpecificChildren() {
    List entity = getModelEntity();
    java.util.List<IEntity> list = new ArrayList<IEntity>(1);
    list.add(entity.getElements());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) List(org.whole.lang.math.model.List) 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