Exemple #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            ModelImpl other = (ModelImpl)obj;

            if (string.ReferenceEquals(modelName, null))
            {
                if (!string.ReferenceEquals(other.modelName, null))
                {
                    return(false);
                }
            }
            else if (!modelName.Equals(other.modelName))
            {
                return(false);
            }
            return(true);
        }
Exemple #2
0
        public virtual ModelElementType registerGenericType(string namespaceUri, string localName)
        {
            ModelElementType elementType = model.getTypeForName(namespaceUri, localName);

            if (elementType == null)
            {
                elementType = modelBuilder.defineGenericType(localName, namespaceUri);
                model       = (ModelImpl)modelBuilder.build();
            }
            return(elementType);
        }
Exemple #3
0
 public ModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document)
 {
     this.model        = model;
     this.modelBuilder = modelBuilder;
     this.document     = document;
 }
Exemple #4
0
 public ModelBuilderImpl(string modelName)
 {
     model = new ModelImpl(modelName);
 }