internal ArraySchemaType(Type type, String name, SchemaBlockType blockType, bool bSealed) : base(name, blockType, bSealed) { Util.Log("ArraySchemaType.ArrayComplexSchemaType"); _type = type; }
internal URTComplexType(String name, String urlNS, String ns, String encodedNS, SchemaBlockType blockDefault, bool bSUDSType, bool bAnonymous, WsdlParser parser, URTNamespace xns) : base(name, urlNS, ns, encodedNS) { Util.Log("URTComplexType.URTComplexType name "+this.GetHashCode()+" "+name+" urlNS "+urlNS+" ns "+ns+" encodedNS "+encodedNS+" bSUDStype "+bSUDSType+" bAnonymous "+bAnonymous); _baseTypeName = null; _baseTypeXmlNS = null; _baseType = null; _connectURLs = null; _bStruct = !bSUDSType; _blockType = blockDefault; _bSUDSType = bSUDSType; _bAnonymous = bAnonymous; Debug.Assert(bAnonymous == false || _bSUDSType == false); _fieldString = null; _fields = new ArrayList(); _methods = new ArrayList(); _implIFaces = new ArrayList(); _implIFaceNames = new ArrayList(); _sudsType = SUDSType.None; _parser = parser; int index = name.IndexOf('+'); if (index > 0) { // Nested type see if outer type has been added to namespace String outerType = parser.Atomize(name.Substring(0,index)); URTComplexType cs = xns.LookupComplexType(outerType); if (cs == null) { URTComplexType newCs = new URTComplexType(outerType, urlNS, ns, encodedNS, blockDefault, bSUDSType, bAnonymous, parser, xns); Util.Log("URTComplexType.URTComplexType add outerType to namespace "+outerType+" nestedname "+name); xns.AddComplexType(newCs); } } if (xns.UrtType == UrtType.Interop) { // Interop class names can have '.', replace these with '_', and set wire name to original type name. index = name.LastIndexOf('.'); if (index > -1) { // class names can't have '.' so replace with '$'. Use xmlType attribute to send original name on wire. _wireType = name; Name = name.Replace(".", "_"); SearchName = name; } } }
internal ComplexSchemaType(String name, SchemaBlockType blockType, bool bSealed) { _name = name; _fullRefName = _name; _blockType = blockType; _baseName = null; _elementName = name; _bSealed = bSealed; _particles = new ArrayList(); _abstractElms = new ArrayList(); }
internal ComplexSchemaType(string name, SchemaBlockType blockType, bool bSealed) { this._name = name; this._fullRefName = this._name; this._blockType = blockType; this._baseName = null; this._elementName = name; this._bSealed = bSealed; this._particles = new ArrayList(); this._abstractElms = new ArrayList(); }
internal ComplexSchemaType(Type type, SchemaBlockType blockType) { Util.Log("ComplexSchemaType.ComplexSchemaType "+type+" blockType "+((Enum)blockType).ToString()); _blockType = blockType; _type = type; Init(); }
internal ComplexSchemaType(Type type) { this._blockType = SchemaBlockType.ALL; this._type = type; this.Init(); }
internal ArraySchemaType(System.Type type, string name, SchemaBlockType blockType, bool bSealed) : base(name, blockType, bSealed) { this._type = type; }
internal URTComplexType(string name, string urlNS, string ns, string encodedNS, SchemaBlockType blockDefault, bool bSUDSType, bool bAnonymous, WsdlParser parser, WsdlParser.URTNamespace xns) : base(name, urlNS, ns, encodedNS) { this._bprint = true; this._baseTypeName = null; this._baseTypeXmlNS = null; this._baseType = null; this._connectURLs = null; this._bStruct = !bSUDSType; this._blockType = blockDefault; this._bSUDSType = bSUDSType; this._bAnonymous = bAnonymous; this._fieldString = null; this._fields = new ArrayList(); this._methods = new ArrayList(); this._implIFaces = new ArrayList(); this._implIFaceNames = new ArrayList(); this._sudsType = System.Runtime.Remoting.MetadataServices.SUDSType.None; this._parser = parser; int index = name.IndexOf('+'); if (index > 0) { string typeName = parser.Atomize(name.Substring(0, index)); if (xns.LookupComplexType(typeName) == null) { WsdlParser.URTComplexType type = new WsdlParser.URTComplexType(typeName, urlNS, ns, encodedNS, blockDefault, bSUDSType, bAnonymous, parser, xns); xns.AddComplexType(type); } } if ((xns.UrtType == UrtType.Interop) && (name.LastIndexOf('.') > -1)) { this._wireType = name; base.Name = name.Replace(".", "_"); base.SearchName = name; } }
internal WsdlParser(TextReader input, string outputDir, ArrayList outCodeStreamList, string locationURL, bool bWrappedProxy, string proxyNamespace) { this._readerStreamsWsdl = new ReaderStream(locationURL); this._readerStreamsWsdl.InputStream = input; this._writerStreams = null; this._outputDir = outputDir; this._outCodeStreamList = outCodeStreamList; this._bWrappedProxy = bWrappedProxy; if ((proxyNamespace == null) || (proxyNamespace.Length == 0)) { this._proxyNamespace = "InteropNS"; } else { this._proxyNamespace = proxyNamespace; } if (outputDir == null) { outputDir = "."; } int length = outputDir.Length; if (length > 0) { char ch = outputDir[length - 1]; if ((ch != '\\') && (ch != '/')) { this._outputDir = this._outputDir + '\\'; } } this._URTNamespaces = new ArrayList(); this._blockDefault = SchemaBlockType.ALL; this._primedNametable = CreatePrimedNametable(); }
internal URTComplexType(String name, String ns, String encodedNS, SchemaBlockType blockDefault, bool bSUDSType, bool bAnonymous) : base(name, ns, encodedNS) { Util.Log("URTComplexType.URTComplexType name "+name+" ns "+ns+" encodedNS "+encodedNS+" bSUDStype "+bSUDSType+" bAnonymous "+bAnonymous); _baseTypeName = null; _baseTypeXmlNS = null; _baseType = null; _connectURLs = null; _bStruct = !bSUDSType; _blockType = blockDefault; _bSUDSType = bSUDSType; _bAnonymous = bAnonymous; Debug.Assert(bAnonymous == false || _bSUDSType == false); _fieldString = null; _fields = new ArrayList(); _methods = new ArrayList(); _implIFaces = new ArrayList(); _implIFaceNames = new ArrayList(); _sudsType = SUDSType.None; }