Search in sources :

Example 1 with IModelsBuilder

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

the class ModelsLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addLanguageKit(new ModelsLanguageKit());
    platform.addOperationFactory(ModelsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new ModelsGenericBuilderAdapter((IModelsBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new ModelsSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, ExportTexOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new TeXGeneratorVisitor((ExportTexOperation) operation);
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new ModelsPrettyPrinterVisitor((PrettyPrinterOperation) operation);
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, ValidatorOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new ModelsValidatorVisitor();
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new ModelsInterpreterVisitor();
            else
                return null;
        }
    });
    platform.addOperationFactory(ModelsLanguageKit.URI, NormalizerOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new ModelsNormalizerVisitor();
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IOperation(org.whole.lang.operations.IOperation) PrettyPrinterOperation(org.whole.lang.operations.PrettyPrinterOperation) IVisitor(org.whole.lang.visitors.IVisitor) IEntityContext(org.whole.lang.contexts.IEntityContext) TeXGeneratorVisitor(org.whole.lang.models.visitors.TeXGeneratorVisitor) IModelsBuilder(org.whole.lang.models.builders.IModelsBuilder) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory) ModelsSpecificBuilderAdapter(org.whole.lang.models.builders.ModelsSpecificBuilderAdapter) ModelsPrettyPrinterVisitor(org.whole.lang.models.visitors.ModelsPrettyPrinterVisitor) ExportTexOperation(org.whole.lang.operations.ExportTexOperation) ModelsGenericBuilderAdapter(org.whole.lang.models.builders.ModelsGenericBuilderAdapter) ModelsInterpreterVisitor(org.whole.lang.models.visitors.ModelsInterpreterVisitor) ModelsNormalizerVisitor(org.whole.lang.models.visitors.ModelsNormalizerVisitor) ModelsValidatorVisitor(org.whole.lang.models.visitors.ModelsValidatorVisitor)

Example 2 with IModelsBuilder

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

the class TestORM method apply.

public void apply(IBuilderOperation op) {
    IModelsBuilder b0 = (IModelsBuilder) op.wGetBuilder(ModelsLanguageKit.URI);
    b0.Model_();
    b0.SimpleName("TestORM");
    b0.TypeRelations();
    b0.ModelDeclarations_(71);
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple");
    b0.Types();
    b0.Features_(5);
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("id");
    b0._FeatureModifiers();
    b0.SimpleName("StringData");
    b0.SimpleName("stringData");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("AllDataTypesSimple");
    b0.SimpleName("allSimple");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0.SimpleName("allSimpleEmbedded");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("AllDataTypesEmbeddedSimple");
    b0.SimpleName("allEmbeddedSimple");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("AllDataTypesEmbeddedSimpleEmbedded");
    b0.SimpleName("allEmbeddedSimpleEmbedded");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllDataTypesSimple");
    b0.Types();
    b0.Features_(11);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("BooleanData");
    b0.SimpleName("booleanValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ByteData");
    b0.SimpleName("byteValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("charValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DoubleData");
    b0.SimpleName("doubleValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FloatData");
    b0.SimpleName("floatValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("intValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LongData");
    b0.SimpleName("longValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ShortData");
    b0.SimpleName("shortValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("StringData");
    b0.SimpleName("stringValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DateData");
    b0.SimpleName("dateValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("EnumData");
    b0.SimpleName("enumValue");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0.Types();
    b0.Features_(11);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("BooleanData");
    b0.SimpleName("booleanValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ByteData");
    b0.SimpleName("byteValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("charValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DoubleData");
    b0.SimpleName("doubleValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FloatData");
    b0.SimpleName("floatValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("intValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LongData");
    b0.SimpleName("longValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ShortData");
    b0.SimpleName("shortValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("StringData");
    b0.SimpleName("stringValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DateData");
    b0.SimpleName("dateValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("EnumData");
    b0.SimpleName("enumValue");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllDataTypesEmbeddedSimple");
    b0.Types();
    b0.Features_(11);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("BooleanDataEmbedded");
    b0.SimpleName("booleanValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ByteDataEmbedded");
    b0.SimpleName("byteValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharDataEmbedded");
    b0.SimpleName("charValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DoubleDataEmbedded");
    b0.SimpleName("doubleValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FloatDataEmbedded");
    b0.SimpleName("floatValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntDataEmbedded");
    b0.SimpleName("intValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LongDataEmbedded");
    b0.SimpleName("longValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ShortDataEmbedded");
    b0.SimpleName("shortValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("StringDataEmbedded");
    b0.SimpleName("stringValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DateDataEmbedded");
    b0.SimpleName("dateValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("EnumDataEmbedded");
    b0.SimpleName("enumValue");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllDataTypesEmbeddedSimpleEmbedded");
    b0.Types();
    b0.Features_(11);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("BooleanDataEmbedded");
    b0.SimpleName("booleanValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ByteDataEmbedded");
    b0.SimpleName("byteValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharDataEmbedded");
    b0.SimpleName("charValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DoubleDataEmbedded");
    b0.SimpleName("doubleValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FloatDataEmbedded");
    b0.SimpleName("floatValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntDataEmbedded");
    b0.SimpleName("intValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LongDataEmbedded");
    b0.SimpleName("longValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ShortDataEmbedded");
    b0.SimpleName("shortValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("StringDataEmbedded");
    b0.SimpleName("stringValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DateDataEmbedded");
    b0.SimpleName("dateValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("EnumDataEmbedded");
    b0.SimpleName("enumValue");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ImplicitTypesSimple");
    b0.Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("id");
    b0._FeatureModifiers();
    b0.SimpleName("StringData");
    b0.SimpleName("stringData");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleTypesSimple1I");
    b0.SimpleName("simple1Implicit");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleTypesSimple2I");
    b0.SimpleName("simple2Implicit");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleTypesSimple3I");
    b0.SimpleName("simple3Implicit");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple1I");
    b0.Types_(2);
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple2I");
    b0.Types_(2);
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("char1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple3I");
    b0.Types_(2);
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleImplicit");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int2");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple1TPE");
    b0.Types_(2);
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple2TPE");
    b0.Types_(2);
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("char1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple3TPE");
    b0.Types_(2);
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("IAllTypesImplicit");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerEntity");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int2");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple1TPT");
    b0.Types_(1);
    b0.SimpleName("ISimpleTablePerType");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple2TPT");
    b0.Types_(1);
    b0.SimpleName("ISimpleTablePerType");
    b0._Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("char1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple3TPT");
    b0.Types_(1);
    b0.SimpleName("ISimpleTablePerType");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int2");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple1AllTPT");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple2AllTPT");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("char1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple3AllTPT");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int2");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple1AllTPE");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple2AllTPE");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ISimpleTablePerType");
    b0.SimpleName("simple2");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharData");
    b0.SimpleName("char1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypesSimple3AllTPE");
    b0.Types_(1);
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0.SimpleName("simple1");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0.SimpleName("simple3");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntData");
    b0.SimpleName("int2");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("BooleanDataEmbeddedListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("BooleanDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ByteDataEmbeddedListTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("ByteDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("CharDataEmbeddedSetTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("CharDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DoubleDataEmbeddedSetTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("DoubleDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FloatDataEmbeddedUListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(2);
    b0.ComponentModifier("unique");
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("FloatDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("IntDataEmbeddedUListTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(2);
    b0.ComponentModifier("unique");
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("IntDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("LongDataEmbeddedBagTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("LongDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ShortDataEmbeddedBagTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("ShortDataEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeEmbeddedListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeEmbeddedUListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(2);
    b0.ComponentModifier("unique");
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeEmbeddedSetTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeEmbeddedBagTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("AllDataTypesSimpleEmbedded");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("SimpleTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeListTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("ImplicitTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPTTypesListTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPETypesListTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeSetTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("SimpleTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeSetTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("ImplicitTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPTTypesSetTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPETypesSetTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeBagTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("SimpleTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTypeBagTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("ImplicitTypesSimple");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPTTypesBagTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerType");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("AllTPETypesBagTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._CompositeEntity();
    b0.MapEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DataDataMapTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.SimpleName("IntData");
    b0.SimpleName("StringData");
    b0._MapEntity();
    b0.MapEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DataDataMapTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.SimpleName("IntData");
    b0.SimpleName("StringData");
    b0._MapEntity();
    b0.MapEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DataSimpleMapTPE");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerEntity");
    b0._Types();
    b0.SimpleName("IntData");
    b0.SimpleName("SimpleTypesSimple");
    b0._MapEntity();
    b0.MapEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DataSimpleMapTPT");
    b0.Types_(2);
    b0.SimpleName("IAllTypesImplicit");
    b0.SimpleName("IAllTypesTablePerType");
    b0._Types();
    b0.SimpleName("IntData");
    b0.SimpleName("SimpleTypesSimple");
    b0._MapEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("BooleanData");
    b0.Types();
    b0.DataType("boolean");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ByteData");
    b0.Types();
    b0.DataType("byte");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("CharData");
    b0.Types();
    b0.DataType("char");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DoubleData");
    b0.Types();
    b0.DataType("double");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FloatData");
    b0.Types();
    b0.DataType("float");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("IntData");
    b0.Types();
    b0.DataType("int");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("LongData");
    b0.Types();
    b0.DataType("long");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ShortData");
    b0.Types();
    b0.DataType("short");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("StringData");
    b0.Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DateData");
    b0.Types();
    b0.DataType("java.util.Date");
    b0._DataEntity();
    b0.EnumEntity_();
    b0.EntityModifiers();
    b0.SimpleName("EnumData");
    b0.Types();
    b0.EnumValues_(6);
    b0.EnumValue("zero");
    b0.EnumValue("one");
    b0.EnumValue("two");
    b0.EnumValue("three");
    b0.EnumValue("four");
    b0.EnumValue("five");
    b0._EnumValues();
    b0._EnumEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("BooleanDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("boolean");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ByteDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("byte");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("CharDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("char");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DoubleDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("double");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FloatDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("float");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("IntDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("int");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("LongDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("long");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ShortDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("short");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("StringDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DateDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.DataType("java.util.Date");
    b0._DataEntity();
    b0.EnumEntity_();
    b0.EntityModifiers();
    b0.SimpleName("EnumDataEmbedded");
    b0.Types_(1);
    b0.SimpleName("IDataEntity");
    b0._Types();
    b0.EnumValues_(6);
    b0.EnumValue("zero");
    b0.EnumValue("one");
    b0.EnumValue("two");
    b0.EnumValue("three");
    b0.EnumValue("four");
    b0.EnumValue("five");
    b0._EnumValues();
    b0._EnumEntity();
    b0._ModelDeclarations();
    b0.Namespace("org.whole.lang.testorm");
    org.whole.lang.commons.builders.ICommonsBuilder b1 = (org.whole.lang.commons.builders.ICommonsBuilder) op.wGetBuilder(org.whole.lang.commons.reflect.CommonsLanguageKit.URI);
    b1.Resolver();
    b0.URI("http://lang.whole.org/TestORM");
    b0._Model();
}
Also used : IModelsBuilder(org.whole.lang.models.builders.IModelsBuilder)

Example 3 with IModelsBuilder

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

the class UntypedFirstOrderLogicModel method apply.

public void apply(IBuilderOperation op) {
    IModelsBuilder b0 = (IModelsBuilder) op.wGetBuilder(ModelsLanguageKit.URI);
    b0.Model_();
    b0.SimpleName("FirstOrderLogic");
    b0.TypeRelations();
    b0.ModelDeclarations_(39);
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Theory");
    b0.Types();
    b0.Features_(4);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("name");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ImportTheories");
    b0.SimpleName("imports");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Declarations");
    b0.SimpleName("declarations");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Assertions");
    b0.SimpleName("assertions");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ImportTheories");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("ImportDeclaration");
    b0._CompositeEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ImportDeclaration");
    b0.Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("TheoryName");
    b0.SimpleName("language");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("optional");
    b0._FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("alias");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Declarations");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("Declaration");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Assertions");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("Assertion");
    b0._CompositeEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("EntityName");
    b0.Types_(1);
    b0.SimpleName("Path");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LanguageName");
    b0.SimpleName("language");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("entityName");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FeatureName");
    b0.Types_(1);
    b0.SimpleName("Path");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LanguageName");
    b0.SimpleName("language");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("entityName");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FeaturePath");
    b0.SimpleName("featurePath");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("LanguageName");
    b0.Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleFeature");
    b0.Types_(1);
    b0.SimpleName("FeaturePath");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("QualifiedFeature");
    b0.Types_(1);
    b0.SimpleName("FeaturePath");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleFeature");
    b0.SimpleName("qualifier");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FeaturePath");
    b0.SimpleName("feature");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("PredicateDeclaration");
    b0.Types_(1);
    b0.SimpleName("Declaration");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimplePredicate");
    b0.SimpleName("predicate");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("optional");
    b0._FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Path");
    b0.SimpleName("modelBinding");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FunctionDeclaration");
    b0.Types_(1);
    b0.SimpleName("Declaration");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleFunction");
    b0.SimpleName("function");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("optional");
    b0._FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Path");
    b0.SimpleName("modelBinding");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("PredicateDefinition");
    b0.Types_(1);
    b0.SimpleName("Assertion");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimplePredicate");
    b0.SimpleName("predicate");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("optional");
    b0._FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("statement");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FunctionDefinition");
    b0.Types_(1);
    b0.SimpleName("Assertion");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleFunction");
    b0.SimpleName("function");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("optional");
    b0._FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Term");
    b0.SimpleName("term");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Axiom");
    b0.Types_(1);
    b0.SimpleName("Assertion");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("name");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("statement");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Theorem");
    b0.Types_(1);
    b0.SimpleName("Assertion");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("name");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("statement");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formulae");
    b0.SimpleName("proof");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Formulae");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("Formula");
    b0._CompositeEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("PredicateApplication");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Predicate");
    b0.SimpleName("predicate");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Arguments");
    b0.SimpleName("arguments");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("EqualityPredicateApplication");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("leftFormula");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("rightFormula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Implication");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("antecedent");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("consequent");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Coimplication");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("leftFormula");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("rightFormula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Xor");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("leftFormula");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("rightFormula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("And");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("leftFormula");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("rightFormula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Or");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("leftFormula");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("rightFormula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Not");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(1);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("formula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ForAll");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("formula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Exist");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("formula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ExistUnique");
    b0.Types_(1);
    b0.SimpleName("Formula");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Parameters");
    b0.SimpleName("parameters");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Formula");
    b0.SimpleName("formula");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Parameters");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("Variable");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Arguments");
    b0.Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("Term");
    b0._CompositeEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimplePredicate");
    b0.Types_(1);
    b0.SimpleName("Predicate");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("QualifiedPredicate");
    b0.Types_(1);
    b0.SimpleName("Predicate");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("theoryAlias");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimplePredicate");
    b0.SimpleName("name");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("TheoryName");
    b0.Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Constant");
    b0.Types_(1);
    b0.SimpleName("Term");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Variable");
    b0.Types_(2);
    b0.SimpleName("Term");
    b0.SimpleName("Formula");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FunctionApplication");
    b0.Types_(1);
    b0.SimpleName("Term");
    b0._Types();
    b0.Features_(3);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Function");
    b0.SimpleName("function");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Arguments");
    b0.SimpleName("arguments");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers_(1);
    b0.FeatureModifier("derived");
    b0._FeatureModifiers();
    b0.SimpleName("Term");
    b0.SimpleName("result");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleFunction");
    b0.Types_(1);
    b0.SimpleName("Function");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("QualifiedFunction");
    b0.Types_(1);
    b0.SimpleName("Function");
    b0._Types();
    b0.Features_(2);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("Name");
    b0.SimpleName("theoryAlias");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("SimpleFunction");
    b0.SimpleName("name");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Name");
    b0.Types();
    b0.DataType("String");
    b0._DataEntity();
    b0._ModelDeclarations();
    b0.Namespace("org.whole.lang.firstorderlogic");
    org.whole.lang.commons.builders.ICommonsBuilder b1 = (org.whole.lang.commons.builders.ICommonsBuilder) op.wGetBuilder(org.whole.lang.commons.reflect.CommonsLanguageKit.URI);
    b1.Resolver();
    b0.URI("http://lang.whole.org/FirstOrderLogic");
    b0._Model();
}
Also used : IModelsBuilder(org.whole.lang.models.builders.IModelsBuilder)

Example 4 with IModelsBuilder

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

the class TestEntities method apply.

public void apply(IBuilderOperation op) {
    IModelsBuilder b0 = (IModelsBuilder) op.wGetBuilder(ModelsLanguageKit.URI);
    b0.Model_();
    b0.SimpleName("TestEntities");
    b0.TypeRelations_(0);
    b0._TypeRelations();
    b0.ModelDeclarations_(18);
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SimpleTestEntity");
    b0.Types_(2);
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.Features_(16);
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ITestEntity");
    b0.SimpleName("anyEntityValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("structuralEntityValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("compositeEntityValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IDataEntity");
    b0.SimpleName("dataEntityValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("BooleanTestEntity");
    b0.SimpleName("booleanValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ByteTestEntity");
    b0.SimpleName("byteValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("CharTestEntity");
    b0.SimpleName("charValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DoubleTestEntity");
    b0.SimpleName("doubleValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("FloatTestEntity");
    b0.SimpleName("floatValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("IntTestEntity");
    b0.SimpleName("intValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("LongTestEntity");
    b0.SimpleName("longValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ShortTestEntity");
    b0.SimpleName("shortValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("StringTestEntity");
    b0.SimpleName("stringValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("DateTestEntity");
    b0.SimpleName("dateValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("EnumTestEntity");
    b0.SimpleName("enumValue");
    b0._Feature();
    b0.Feature_();
    b0.FeatureModifiers();
    b0.SimpleName("ObjectTestEntity");
    b0.SimpleName("objectValue");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ListTestEntity");
    b0.Types_(3);
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("ITestEntity");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("UListTestEntity");
    b0.Types_(3);
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.ComponentModifiers_(2);
    b0.ComponentModifier("unique");
    b0.ComponentModifier("ordered");
    b0._ComponentModifiers();
    b0.SimpleName("IStructuralEntity");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("SetTestEntity");
    b0.Types_(3);
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.ComponentModifiers_(1);
    b0.ComponentModifier("unique");
    b0._ComponentModifiers();
    b0.SimpleName("ITestEntity");
    b0._CompositeEntity();
    b0.CompositeEntity_();
    b0.EntityModifiers();
    b0.SimpleName("BagTestEntity");
    b0.Types_(3);
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.ComponentModifiers();
    b0.SimpleName("ITestEntity");
    b0._CompositeEntity();
    b0.MapEntity_();
    b0.EntityModifiers();
    b0.SimpleName("MapTestEntity");
    b0.Types_(3);
    b0.SimpleName("ICompositeEntity");
    b0.SimpleName("IStructuralEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.SimpleName("ITestEntity");
    b0.SimpleName("IStructuralEntity");
    b0._MapEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("BooleanTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("boolean");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ByteTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("byte");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("CharTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("char");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DoubleTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("double");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("FloatTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("float");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("IntTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("int");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("LongTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("long");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ShortTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("short");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("StringTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("String");
    b0._DataEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("DateTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("java.util.Date");
    b0._DataEntity();
    b0.EnumEntity_();
    b0.EntityModifiers();
    b0.SimpleName("EnumTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.EnumValues_(6);
    b0.EnumValue("zero");
    b0.EnumValue("one");
    b0.EnumValue("two");
    b0.EnumValue("three");
    b0.EnumValue("four");
    b0.EnumValue("five");
    b0._EnumValues();
    b0._EnumEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    b0.SimpleName("ObjectTestEntity");
    b0.Types_(2);
    b0.SimpleName("IDataEntity");
    b0.SimpleName("ITestEntity");
    b0._Types();
    b0.DataType("java.lang.Object");
    b0._DataEntity();
    b0._ModelDeclarations();
    b0.Namespace("org.whole.lang.testentities");
    org.whole.lang.commons.builders.ICommonsBuilder b1 = (org.whole.lang.commons.builders.ICommonsBuilder) op.wGetBuilder(org.whole.lang.commons.reflect.CommonsLanguageKit.URI);
    b1.Resolver();
    b0.URI("http://lang.whole.org/TestEntities");
    b0._Model();
}
Also used : IModelsBuilder(org.whole.lang.models.builders.IModelsBuilder)

Example 5 with IModelsBuilder

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

the class ModelPattern method apply.

public void apply(IBuilderOperation op) {
    IModelsBuilder b0 = (IModelsBuilder) op.wGetBuilder(ModelsLanguageKit.URI);
    ICommonsBuilder cb = (ICommonsBuilder) op.wGetBuilder(CommonsLanguageKit.URI);
    b0.Model_();
    b0.SimpleName("Model1");
    b0.TypeRelations();
    b0.ModelDeclarations_(3);
    b0.SimpleEntity_();
    b0.EntityModifiers();
    b0.SimpleName("Entity1");
    b0.Types();
    b0.Features_(1);
    b0.Feature_();
    b0.FeatureModifiers();
    cb.Variable("dataEntity", "http://lang.whole.org/Models#SimpleName", "MANDATORY");
    b0.SimpleName("data1");
    b0._Feature();
    b0._Features();
    b0._SimpleEntity();
    b0.DataEntity_();
    b0.EntityModifiers();
    cb.Variable("dataEntity", "http://lang.whole.org/Models#SimpleName", "MANDATORY");
    b0.Types();
    cb.Variable("dataType", "http://lang.whole.org/Models#DataType", "MANDATORY");
    b0._DataEntity();
    cb.Variable("modelDeclaration", "http://lang.whole.org/Models#ModelDeclaration", "ZERO_OR_MORE_GREEDY");
    b0._ModelDeclarations();
    b0._Model();
}
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