Search in sources :

Example 21 with IModelsBuilder

use of org.whole.lang.models.builders.IModelsBuilder in project whole by wholeplatform.

the class FeaturePattern method apply.

public void apply(IBuilderOperation op) {
    IModelsBuilder b0 = (IModelsBuilder) op.wGetBuilder(ModelsLanguageKit.URI);
    ICommonsBuilder cb = (ICommonsBuilder) op.wGetBuilder(CommonsLanguageKit.URI);
    b0.Feature_();
    b0.FeatureModifiers();
    cb.Variable("featureType", "http://lang.whole.org/Models#SimpleName", "MANDATORY");
    cb.Variable("featureName", "http://lang.whole.org/Models#SimpleName", "MANDATORY");
    b0._Feature();
}
Also used : IModelsBuilder(org.whole.lang.models.builders.IModelsBuilder) ICommonsBuilder(org.whole.lang.commons.builders.ICommonsBuilder)

Aggregations

IModelsBuilder (org.whole.lang.models.builders.IModelsBuilder)21 ICommonsBuilder (org.whole.lang.commons.builders.ICommonsBuilder)3 IArtifactsBuilder (org.whole.lang.artifacts.builders.IArtifactsBuilder)1 IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 IMiscBuilder (org.whole.lang.misc.builders.IMiscBuilder)1 ModelsGenericBuilderAdapter (org.whole.lang.models.builders.ModelsGenericBuilderAdapter)1 ModelsSpecificBuilderAdapter (org.whole.lang.models.builders.ModelsSpecificBuilderAdapter)1 ModelsInterpreterVisitor (org.whole.lang.models.visitors.ModelsInterpreterVisitor)1 ModelsNormalizerVisitor (org.whole.lang.models.visitors.ModelsNormalizerVisitor)1 ModelsPrettyPrinterVisitor (org.whole.lang.models.visitors.ModelsPrettyPrinterVisitor)1 ModelsValidatorVisitor (org.whole.lang.models.visitors.ModelsValidatorVisitor)1 TeXGeneratorVisitor (org.whole.lang.models.visitors.TeXGeneratorVisitor)1 ExportTexOperation (org.whole.lang.operations.ExportTexOperation)1 IOperation (org.whole.lang.operations.IOperation)1 PrettyPrinterOperation (org.whole.lang.operations.PrettyPrinterOperation)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1