Example #1
0
        public virtual IModelElementType RegisterGenericType(string namespaceUri, string localName)
        {
            IModelElementType elementType = model.GetTypeForName(namespaceUri, localName);

            if (elementType == null)
            {
                elementType = ModelBuilder.DefineGenericType <IModelElementInstance>(localName, namespaceUri);
                model       = (ModelImpl)ModelBuilder.Build();
            }
            return(elementType);
        }
Example #2
0
 public ModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, IDomDocument document)
 {
     this.model        = model;
     this.ModelBuilder = modelBuilder;
     this.document     = document;
 }
Example #3
0
 public ModelBuilderImpl(string modelName)
 {
     _model = new ModelImpl(modelName);
 }