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); }
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); }
public ModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document) { this.model = model; this.modelBuilder = modelBuilder; this.document = document; }
public ModelBuilderImpl(string modelName) { model = new ModelImpl(modelName); }