//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2015 Saxonica Limited. // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef SAXON_XDMITEM_h #define SAXON_XDMITEM_h #include "XdmValue.h" class SaxonProcessor; class XdmItem : public XdmValue { public: XdmItem(); XdmItem(jobject); XdmItem(const XdmItem &item); virtual ~XdmItem(){ //std::cerr<0) { SaxonProcessor::sxn_environ->env->DeleteLocalRef(value->xdmvalue); } free(value); if(stringValue.empty()) { stringValue.clear(); } } } virtual void incrementRefCount() { refCount++; //std::cerr<<"refCount-inc-xdmItem="<