Inheritance: Rhino.IdScriptableObject
コード例 #1
0
ファイル: Namespace.cs プロジェクト: hazzik/Rhino.Net
		internal static Rhino.Xmlimpl.Namespace Create(Scriptable scope, Rhino.Xmlimpl.Namespace prototype, Rhino.Xmlimpl.XmlNode.Namespace @namespace)
		{
			Rhino.Xmlimpl.Namespace rv = new Rhino.Xmlimpl.Namespace();
			rv.SetParentScope(scope);
			rv.prototype = prototype;
			rv.SetPrototype(prototype);
			rv.ns = @namespace;
			return rv;
		}
コード例 #2
0
ファイル: XMLLibImpl.cs プロジェクト: hazzik/Rhino.Net
		internal Namespace[] CreateNamespaces(Rhino.Xmlimpl.XmlNode.Namespace[] declarations)
		{
			Namespace[] rv = new Namespace[declarations.Length];
			for (int i = 0; i < declarations.Length; i++)
			{
				rv[i] = this.namespacePrototype.NewNamespace(declarations[i].GetPrefix(), declarations[i].GetUri());
			}
			return rv;
		}
コード例 #3
0
ファイル: XMLLibImpl.cs プロジェクト: hazzik/Rhino.Net
		private void ExportToScope(bool @sealed)
		{
			xmlPrototype = NewXML(Rhino.Xmlimpl.XmlNode.CreateText(options, string.Empty));
			xmlListPrototype = NewXMLList();
			namespacePrototype = Namespace.Create(this.globalScope, null, Rhino.Xmlimpl.XmlNode.Namespace.GLOBAL);
			qnamePrototype = QName.Create(this, this.globalScope, null, Rhino.Xmlimpl.XmlNode.QName.Create(Rhino.Xmlimpl.XmlNode.Namespace.Create(string.Empty), string.Empty));
			xmlPrototype.ExportAsJSClass(@sealed);
			xmlListPrototype.ExportAsJSClass(@sealed);
			namespacePrototype.ExportAsJSClass(@sealed);
			qnamePrototype.ExportAsJSClass(@sealed);
		}