Search in sources :

Example 66 with IEntity

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

the class LogarithmPart method getModelSpecificChildren.

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

Example 67 with IEntity

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

the class NotSubsetPart method getModelSpecificChildren.

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

Example 68 with IEntity

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

the class RationalPart method getModelSpecificChildren.

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

Example 69 with IEntity

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

the class ByDelimiterPart method getModelSpecificChildren.

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

Example 70 with IEntity

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

the class DataTerminalPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    DataTerminal entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getPattern());
    list.add(entity.getFormat());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) DataTerminal(org.whole.lang.grammars.model.DataTerminal) 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