|
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(XOBJECT_HEADER_GUARD_1357924680)
19 #define XOBJECT_HEADER_GUARD_1357924680
52 class MutableNodeRefList;
53 class NodeRefListBase;
54 class XalanDocumentFragment;
56 class XObjectTypeCallback;
80 eTypeResultTreeFrag = 6,
84 eTypeStringReference = 8,
85 eTypeStringAdapter = 9,
86 eTypeStringCached = 10,
87 eTypeXTokenNumberAdapter = 11,
88 eTypeXTokenStringAdapter = 12,
89 eTypeNodeSetNodeProxy = 13,
99 initialize(MemoryManager& theMemoryManager);
114 eObjectType theObjectType,
115 MemoryManager& theMemoryManager);
124 getTypeString()
const = 0;
193 MemberFunctionPtr
function)
const = 0;
209 MemberFunctionPtr
function)
const = 0;
374 return !DoubleSupport::isNaN(theNumber) && !DoubleSupport::equal(theNumber, 0.0);
387 return theString.
length() == 0 ? false :
true;
400 return theNodeList.
getLength() == 0 ? false :
true;
414 return theBool ==
true ? s_trueString : s_falseString;
429 theString.
append(theBool ==
true ? s_trueString : s_falseString);
444 MemberFunctionPtr
function)
448 (formatterListener.*
function)(s_trueString.c_str(), s_trueString.length());
452 (formatterListener.*
function)(s_falseString.c_str(), s_falseString.length());
483 MemberFunctionPtr
function)
485 DOMStringHelper::NumberToCharacters(theNumber, formatterListener,
function);
502 DOMServices::getNodeData(theNode, theString);
519 MemberFunctionPtr
function)
521 DOMServices::getNodeData(theNode, formatterListener,
function);
540 assert(theNodeList.
item(0) != 0);
542 string(*theNodeList.
item(0), theString);
560 MemberFunctionPtr
function)
564 assert(theNodeList.
item(0) != 0);
566 DOMServices::getNodeData(*theNodeList.
item(0), formatterListener,
function);
584 DOMServices::getNodeData(theNode, theExecutionContext, theString);
601 MemberFunctionPtr
function)
603 DOMServices::getNodeData(
626 assert(theNodeList.
item(0) != 0);
628 string(*theNodeList.
item(0), theExecutionContext, theString);
646 MemberFunctionPtr
function)
650 assert(theNodeList.
item(0) != 0);
652 DOMServices::getNodeData(
653 *theNodeList.
item(0),
672 MemberFunctionPtr
function)
681 (formatterListener.*
function)(
695 return theBoolean ==
true ? 1.0 : 0.0;
701 MemoryManager& theManager)
703 return DoubleSupport::toDouble(theString, theManager);
733 m_factory = theFactory;
743 MemoryManager& theManager);
747 MemoryManager& theManager,
748 const Locator* theLocator);
755 virtual const XalanDOMChar*
760 static const XalanDOMChar s_type[];
768 MemoryManager& memoryManager,
778 virtual const XalanDOMChar*
783 static const XalanDOMChar s_type[];
813 MemoryManager& theManager);
823 assert(m_memoryManager != 0);
825 return *m_memoryManager;
829 throwInvalidConversionException(
const XalanDOMString& theTargetType)
const;
875 mutable MemoryManager* m_memoryManager;
895 m_xobjectPtr(theXObject)
897 XalanReferenceCountedObject::addReference(theXObject);
901 m_xobjectPtr(theSource.m_xobjectPtr)
903 XalanReferenceCountedObject::addReference(m_xobjectPtr);
909 if (m_xobjectPtr != theRHS.m_xobjectPtr)
911 XalanReferenceCountedObject::removeReference(m_xobjectPtr);
913 m_xobjectPtr = theRHS.m_xobjectPtr;
915 XalanReferenceCountedObject::addReference(m_xobjectPtr);
923 XalanReferenceCountedObject::removeReference(m_xobjectPtr);
929 XObject*
const xobjectPtr = m_xobjectPtr;
933 XalanReferenceCountedObject::removeReference(xobjectPtr);
939 return m_xobjectPtr == 0 ? true :
false;
945 return *m_xobjectPtr;
951 return *m_xobjectPtr;
990 return theLHS.m_xobjectPtr == theRHS.m_xobjectPtr;
1000 return !(theLHS == theRHS);
1010 return theLHS.m_xobjectPtr < theRHS.m_xobjectPtr;
1019 #endif // XOBJECT_HEADER_GUARD_1357924680
static void string(bool theBool, XalanDOMString &theString)
Static conversion function.
eObjectType getType() const
Tell what kind of class this is.
static const XalanDOMString & s_falseString
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
static const XalanDOMString & string(bool theBool)
Static conversion function.
static void string(const XalanNode &theNode, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
XObjectPtr & operator=(const XObjectPtr &theRHS)
static double number(bool theBoolean)
Static conversion function.
const XObject * operator->() const
bool operator<(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
static void string(bool theBool, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
XObjectPtr(XObject *theXObject=0)
Create an XObjectPtr.
const XObject & operator*() const
static void string(double theNumber, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
static void string(const XalanNode &theNode, XalanDOMString &theString)
Static conversion function.
XalanDOMString & append(const XalanDOMString &theSource)
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
static const XalanDOMString & s_stringString
#define XALAN_XPATH_EXPORT
bool operator==(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
XObjectPtr(const XObjectPtr &theSource)
static const XalanDOMString & s_numberString
Class to hold XObjectPtr return types.
eObjectType
Enumeration of possible object types.
static const XalanDOMString & s_nodesetString
static void string(const NodeRefListBase &theNodeList, XPathExecutionContext &theExecutionContext, XalanDOMString &theString)
Static conversion function.
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
static bool boolean(const XalanDOMString &theString)
Static conversion function.
MemoryManager & getMemoryManager() const
Get the MemoryManager for this instance.
void setFactory(XObjectFactory *theFactory)
static void string(double theNumber, XalanDOMString &theString)
Static conversion function.
static void string(const XalanNode &theNode, XPathExecutionContext &theExecutionContext, XalanDOMString &theString)
Static conversion function.
Class to hold XPath return types.
static bool boolean(double theNumber)
Static conversion function.
virtual size_type getLength() const =0
Determine the number of nodes in the list.
static bool boolean(const NodeRefListBase &theNodeList)
Static conversion function.
NumberToDOMString(double theValue, XalanDOMString &theResult)
Converts a double value into a XalanDOMString.
static void string(const NodeRefListBase &theNodeList, XPathExecutionContext &theExecutionContext, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
static void string(const NodeRefListBase &theNodeList, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
virtual XalanNode * item(size_type index) const =0
Returns the indexth item in the collection.
static void string(const XalanDOMString &theString, FormatterListener &formatterListener, MemberFunctionPtr function)
Calls the supplied FormatterListener member function with the string.
static const XalanDOMString & s_resultTreeFragmentString
XPathExecutionContext::GetCachedString GetCachedString
const XalanDOMChar * c_str() const
static double number(const XalanDOMString &theString, MemoryManager &theManager)
static const XalanDOMString & s_booleanString
Local implementation of NodeRefList.
Class to hold reference count information.
static const XalanDOMString s_emptyString
bool operator!=(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
static void string(const XalanNode &theNode, XPathExecutionContext &theExecutionContext, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
static void string(const NodeRefListBase &theNodeList, XalanDOMString &theString)
Static conversion function.
This class handles the creation of XObjects and manages their lifetime.
static const XalanDOMString & s_trueString
const XObject * get() const