示例#1
0
 internal MetaData(string uri, string name, XmlValue value)
 {
     this.uri_ = uri;
     this.name_ = name;
     this.value_ = Sleepycat.DbXml.Value.Create(value);
     this.valueOwned_ = true;
 }
示例#2
0
 internal static IntPtr getCPtr(XmlValue obj)
 {
     if (obj != null)
     {
         return(obj.swigCPtr);
     }
     return(IntPtr.Zero);
 }
示例#3
0
文件: Value.cs 项目: skitsanos/WDK9
 private Value(XmlValue v)
 {
     this.v_ = null;
     if (v == null)
     {
         throw new NullReferenceException();
     }
     this.v_ = v;
 }
示例#4
0
        public XmlStatistics lookupStatistics(string uri, string name, string index, XmlValue value)
        {
            IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupStatistics__SWIG_0(this.swigCPtr, uri, name, index, XmlValue.getCPtr(value));

            if (!(cPtr == IntPtr.Zero))
            {
                return(new XmlStatistics(cPtr, true));
            }
            return(null);
        }
示例#5
0
        public XmlResults execute(XmlTransaction txn, XmlValue contextItem, XmlQueryContext context, uint flags)
        {
            IntPtr cPtr = DbXmlPINVOKE.XmlQueryExpression_execute__SWIG_3(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlValue.getCPtr(contextItem), XmlQueryContext.getCPtrOrThrow(context), flags);

            if (!(cPtr == IntPtr.Zero))
            {
                return(new XmlResults(cPtr, true));
            }
            return(null);
        }
示例#6
0
 public static void setValue(XmlValue to, XmlValue from)
 {
     DbXmlPINVOKE.XmlValue_setValue(getCPtr(to), getCPtr(from));
 }
示例#7
0
 public XmlStatistics lookupStatistics(XmlTransaction txn, string uri, string name, string parent_uri, string parent_name, string index, XmlValue value)
 {
     IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupStatistics__SWIG_3(this.swigCPtr, XmlTransaction.getCPtr(txn), uri, name, parent_uri, parent_name, index, XmlValue.getCPtr(value));
     if (!(cPtr == IntPtr.Zero))
     {
         return new XmlStatistics(cPtr, true);
     }
     return null;
 }
示例#8
0
 public virtual bool resolveDocument(XmlTransaction txn, XmlManager mgr, string uri, XmlValue res)
 {
     return DbXmlPINVOKE.XmlResolver_resolveDocument(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlManager.getCPtr(mgr), uri, XmlValue.getCPtr(res));
 }
示例#9
0
 public void setVariableValue(string name, XmlValue value)
 {
     DbXmlPINVOKE.XmlQueryContext_setVariableValue(this.swigCPtr, name, XmlValue.getCPtr(value));
 }
示例#10
0
 public virtual bool resolveDocument(XmlTransaction txn, XmlManager mgr, string uri, XmlValue res)
 {
     return(DbXmlPINVOKE.XmlResolver_resolveDocument(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlManager.getCPtr(mgr), uri, XmlValue.getCPtr(res)));
 }
示例#11
0
 public void add(XmlValue value)
 {
     DbXmlPINVOKE.XmlResults_add(this.swigCPtr, XmlValue.getCPtr(value));
 }
示例#12
0
 internal NodeImpl(XmlValue v)
 {
     this.v_ = v;
 }
示例#13
0
 internal static IntPtr getCPtr(XmlValue obj)
 {
     if (obj != null)
     {
         return obj.swigCPtr;
     }
     return IntPtr.Zero;
 }
示例#14
0
 public bool equals(XmlValue value)
 {
     return DbXmlPINVOKE.XmlValue_equals(this.swigCPtr, getCPtr(value));
 }
示例#15
0
 public static void setValue(XmlValue to, XmlValue from)
 {
     DbXmlPINVOKE.XmlValue_setValue(getCPtr(to), getCPtr(from));
 }
示例#16
0
        public XmlStatistics lookupStatistics(XmlTransaction txn, string uri, string name, string parent_uri, string parent_name, string index, XmlValue value)
        {
            IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupStatistics__SWIG_3(this.swigCPtr, XmlTransaction.getCPtr(txn), uri, name, parent_uri, parent_name, index, XmlValue.getCPtr(value));

            if (!(cPtr == IntPtr.Zero))
            {
                return(new XmlStatistics(cPtr, true));
            }
            return(null);
        }
示例#17
0
        public XmlResults lookupIndex(XmlTransaction txn, XmlQueryContext context, string uri, string name, string parent_uri, string parent_name, string index, XmlValue value, uint flags)
        {
            IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupIndex__SWIG_3(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlQueryContext.getCPtrOrThrow(context), uri, name, parent_uri, parent_name, index, XmlValue.getCPtr(value), flags);

            if (!(cPtr == IntPtr.Zero))
            {
                return(new XmlResults(cPtr, true));
            }
            return(null);
        }
示例#18
0
 internal XmlValue(XmlValue other) : this(DbXmlPINVOKE.new_XmlValue__SWIG_0(getCPtr(other)), true)
 {
 }
示例#19
0
 public void setMetaData(string uri, string name, XmlValue value)
 {
     DbXmlPINVOKE.XmlDocument_setMetaData__SWIG_0(this.swigCPtr, uri, name, XmlValue.getCPtr(value));
 }
示例#20
0
 internal static IntPtr getCPtrOrThrow(XmlValue obj)
 {
     return obj.swigCPtr;
 }
示例#21
0
 public void add(XmlValue value)
 {
     DbXmlPINVOKE.XmlResults_add(this.swigCPtr, XmlValue.getCPtr(value));
 }
示例#22
0
 internal XmlValue(XmlValue other)
     : this(DbXmlPINVOKE.new_XmlValue__SWIG_0(getCPtr(other)), true)
 {
 }
示例#23
0
 public uint execute(XmlTransaction txn, XmlValue toModify, XmlQueryContext context, XmlUpdateContext uc)
 {
     return DbXmlPINVOKE.XmlModify_execute__SWIG_2(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlValue.getCPtr(toModify), XmlQueryContext.getCPtrOrThrow(context), XmlUpdateContext.getCPtrOrThrow(uc));
 }
示例#24
0
 public XmlResults lookupIndex(XmlTransaction txn, XmlQueryContext context, string uri, string name, string parent_uri, string parent_name, string index, XmlValue value, uint flags)
 {
     IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupIndex__SWIG_3(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlQueryContext.getCPtrOrThrow(context), uri, name, parent_uri, parent_name, index, XmlValue.getCPtr(value), flags);
     if (!(cPtr == IntPtr.Zero))
     {
         return new XmlResults(cPtr, true);
     }
     return null;
 }
示例#25
0
 public bool equals(XmlValue value)
 {
     return(DbXmlPINVOKE.XmlValue_equals(this.swigCPtr, getCPtr(value)));
 }
示例#26
0
文件: Value.cs 项目: skitsanos/WDK9
 internal static Value Create(XmlValue v)
 {
     if (v == null)
     {
         return null;
     }
     return new Value(v);
 }
示例#27
0
 public void setVariableValue(string name, XmlValue value)
 {
     DbXmlPINVOKE.XmlQueryContext_setVariableValue(this.swigCPtr, name, XmlValue.getCPtr(value));
 }
示例#28
0
 public void setMetaData(string uri, string name, XmlValue value)
 {
     DbXmlPINVOKE.XmlDocument_setMetaData__SWIG_0(this.swigCPtr, uri, name, XmlValue.getCPtr(value));
 }
示例#29
0
 public uint execute(XmlTransaction txn, XmlValue toModify, XmlQueryContext context, XmlUpdateContext uc)
 {
     return(DbXmlPINVOKE.XmlModify_execute__SWIG_2(this.swigCPtr, XmlTransaction.getCPtr(txn), XmlValue.getCPtr(toModify), XmlQueryContext.getCPtrOrThrow(context), XmlUpdateContext.getCPtrOrThrow(uc)));
 }
示例#30
0
 public XmlStatistics lookupStatistics(string uri, string name, string index, XmlValue value)
 {
     IntPtr cPtr = DbXmlPINVOKE.XmlContainer_lookupStatistics__SWIG_0(this.swigCPtr, uri, name, index, XmlValue.getCPtr(value));
     if (!(cPtr == IntPtr.Zero))
     {
         return new XmlStatistics(cPtr, true);
     }
     return null;
 }
示例#31
0
 internal static IntPtr getCPtrOrThrow(XmlValue obj)
 {
     return(obj.swigCPtr);
 }
示例#32
0
文件: Node.cs 项目: skitsanos/WDK9
 internal static Node CreateNode(XmlValue v)
 {
     if (v == null)
     {
         return null;
     }
     if (v.getType() != XmlValue.NODE)
     {
         throw new Exception("XmlValue is not of type XmlValue.NODE");
     }
     if (v.getNodeType() == XmlValue.DOCUMENT_NODE)
     {
         Document document = Document.Create(v.asDocument());
         v.Dispose();
         return document;
     }
     return new NodeImpl(v);
 }