Search in sources :

Example 86 with IEntity

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

the class RuleNamePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    RuleName entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(3);
    list.add(entity.getName());
    list.add(entity.getSub());
    list.add(entity.getSup());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) RuleName(org.whole.lang.semantics.model.RuleName)

Example 87 with IEntity

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

the class SequenceTypePart method getModelSpecificChildren.

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

Example 88 with IEntity

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

the class InvokeOperationPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    InvokeOperation entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(4);
    children.add(entity.getLabel());
    children.add(entity.getModel());
    children.add(entity.getOperation());
    children.add(entity.getBindings());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) InvokeOperation(org.whole.lang.workflows.model.InvokeOperation)

Example 89 with IEntity

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

the class LoadArtifactsPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    LoadArtifacts entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(7);
    children.add(entity.getLabel());
    children.add(entity.getModel());
    children.add(entity.getRootResourceKind());
    children.add(entity.getRootResource());
    children.add(entity.getTraversalStrategy());
    children.add(entity.getSynchronizeStrategy());
    children.add(entity.getDefaultPersistence());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) LoadArtifacts(org.whole.lang.workflows.model.LoadArtifacts)

Example 90 with IEntity

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

the class ParsePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Parse entity = getModelEntity();
    List<IEntity> children = new ArrayList<IEntity>(5);
    children.add(entity.getLabel());
    children.add(entity.getModel());
    children.add(entity.getText());
    children.add(entity.getGrammar());
    children.add(entity.getNt());
    return children;
}
Also used : IEntity(org.whole.lang.model.IEntity) Parse(org.whole.lang.workflows.model.Parse) 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