Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XOBJECT_HEADER_GUARD_1357924680)
19 #define XOBJECT_HEADER_GUARD_1357924680
48 XALAN_CPP_NAMESPACE_BEGIN
80 eTypeResultTreeFrag = 6,
84 eTypeStringReference = 8,
85 eTypeStringAdapter = 9,
86 eTypeStringCached = 10,
87 eTypeXTokenNumberAdapter = 11,
88 eTypeXTokenStringAdapter = 12,
89 eTypeNodeSetNodeProxy = 13,
115 MemoryManager& theMemoryManager);
193 MemberFunctionPtr
function)
const = 0;
209 MemberFunctionPtr
function)
const = 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)
519 MemberFunctionPtr
function)
540 assert(theNodeList.
item(0) != 0);
542 string(*theNodeList.
item(0), theString);
560 MemberFunctionPtr
function)
564 assert(theNodeList.
item(0) != 0);
601 MemberFunctionPtr
function)
626 assert(theNodeList.
item(0) != 0);
628 string(*theNodeList.
item(0), theExecutionContext, theString);
646 MemberFunctionPtr
function)
650 assert(theNodeList.
item(0) != 0);
653 *theNodeList.
item(0),
672 MemberFunctionPtr
function)
681 (formatterListener.*
function)(
695 return theBoolean ==
true ? 1.0 : 0.0;
701 MemoryManager& 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;
875 mutable MemoryManager* m_memoryManager;
895 m_xobjectPtr(theXObject)
901 m_xobjectPtr(theSource.m_xobjectPtr)
909 if (m_xobjectPtr != theRHS.m_xobjectPtr)
913 m_xobjectPtr = theRHS.m_xobjectPtr;
929 XObject*
const xobjectPtr = m_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;
1015 XALAN_CPP_NAMESPACE_END
1019 #endif // XOBJECT_HEADER_GUARD_1357924680
static void string(const XalanNode &theNode, XalanDOMString &theString)
Static conversion function.
eObjectType
Enumeration of possible object types.
static void NumberToCharacters(double theValue, FormatterListener &formatterListener, MemberFunctionPtr function)
bool operator!=(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
virtual eObjectType getRealType() const
Tell what kind of class this is.
static double number(const XalanDOMString &theString, MemoryManager &theManager)
virtual void referenced()
bool operator==(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
Class to hold XPath return types.
virtual XalanNode * item(size_type index) const =0
Returns the indexth item in the collection.
static void removeReference(XalanReferenceCountedObject *theInstance)
Decrement reference count.
Class to hold reference count information.
XObjectInvalidConversionException(const XObjectInvalidConversionException &other)
static void string(bool theBool, XalanDOMString &theString)
Static conversion function.
XObjectException(const XObjectException &other)
static double number(XPathExecutionContext &executionContext, const NodeRefListBase &theNodeList)
Static conversion function.
static void getNodeData(const XalanNode &node, XalanDOMString &data)
Retrieves data for node.
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
XObjectPtr(const XObjectPtr &theSource)
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
static void string(const XalanNode &theNode, XPathExecutionContext &theExecutionContext, XalanDOMString &theString)
Static conversion function.
static void string(const XalanNode &theNode, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
static void string(const XalanDOMString &theString, FormatterListener &formatterListener, MemberFunctionPtr function)
Calls the supplied FormatterListener member function with the string.
XalanDOMString & append(const XalanDOMString &theSource)
static const XalanDOMString & s_trueString
#define XALAN_XPATH_EXPORT
static void string(const NodeRefListBase &theNodeList, XPathExecutionContext &theExecutionContext, XalanDOMString &theString)
Static conversion function.
static const XalanDOMString & s_numberString
bool operator<(const XObjectPtr &theLHS, const XObjectPtr &theRHS)
MemoryManager & getMemoryManager() const
Get the MemoryManager for this instance.
static bool isNaN(double theNumber)
Determine if target is not a number.
bool notEquals(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if two objects are functionally not equal.
static bool equal(double theLHS, double theRHS)
Compare two double values, taking into account the fact that we must support IEEE 754.
const XalanDOMChar * c_str() const
virtual void dereferenced()
static void string(const XalanNode &theNode, XPathExecutionContext &theExecutionContext, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
static const XalanDOMString s_emptyString
XObjectInvalidConversionException(MemoryManager &memoryManager, const XalanDOMString &fromType, const XalanDOMString &toType, XalanDOMString &buffer)
void throwInvalidConversionException(const XalanDOMString &theTargetType) const
static const XalanDOMString & s_booleanString
static bool boolean(const NodeRefListBase &theNodeList)
Static conversion function.
static bool boolean(double theNumber)
Static conversion function.
static double toDouble(const XalanDOMString &theString, MemoryManager &theManager)
Convert a string to a double value.
bool lessThanOrEquals(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if one object is less than or equal the other.
This class handles the creation of XObjects and manages their lifetime.
static void string(double theNumber, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
virtual bool boolean(XPathExecutionContext &executionContext) const =0
Cast result object to a boolean.
static void addReference(XalanReferenceCountedObject *theInstance)
Increment reference count.
XObjectException(const XalanDOMString &theMessage, MemoryManager &theManager)
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject) const =0
Process a callback request for preferred type information.
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
XObjectPtr & operator=(const XObjectPtr &theRHS)
const XObject * get() const
static void string(const NodeRefListBase &theNodeList, XalanDOMString &theString)
Static conversion function.
Class to hold XObjectPtr return types.
virtual size_type getLength() const =0
Determine the number of nodes in the list.
Local implementation of NodeRefList.
bool greaterThanOrEquals(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if one object is greater than or equal the other.
static void terminate()
Perform static shut down.
static double number(XPathExecutionContext &executionContext, const XalanNode &theNode)
Static conversion function.
XObjectException(const XalanDOMString &theMessage, MemoryManager &theManager, const Locator *theLocator)
virtual const XalanDOMString & getTypeString() const =0
Given a request type, return the equivalent string.
static void initialize(MemoryManager &theMemoryManager)
Perform static initialization.
virtual const NodeRefListBase & nodeset() const
Cast result object to a nodelist.
static void string(bool theBool, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
bool equals(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if two objects are functionally equal.
virtual ~XObjectException()
XObject(const XObject &source, MemoryManager &theManager)
Create an XObject from another XObject.
XObject(eObjectType theObjectType, MemoryManager &theMemoryManager)
Create an XObject.
void setFactory(XObjectFactory *theFactory)
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
NumberToDOMString(double theValue, XalanDOMString &theResult)
Converts a double value into a XalanDOMString.
const XObject * operator->() const
const XObject & operator*() const
static const XalanDOMString & s_nodesetString
static const XalanDOMString & s_stringString
virtual double stringLength(XPathExecutionContext &executionContext) const =0
Get the length of the string value of the instance.
static bool boolean(const XalanDOMString &theString)
Static conversion function.
eObjectType getType() const
Tell what kind of class this is.
virtual const XalanDocumentFragment & rtree() const
Cast result object to a result tree fragment.
Local implementation of MutableNodeRefList.
static const XalanDOMString & string(bool theBool)
Static conversion function.
virtual ~XObjectInvalidConversionException()
static double number(bool theBoolean)
Static conversion function.
bool lessThan(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if one object is less than the other.
static const XalanDOMString & s_resultTreeFragmentString
XObjectPtr(XObject *theXObject=0)
Create an XObjectPtr.
static void string(const NodeRefListBase &theNodeList, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
XObject(const XObject &)
Create an XObject from another XObject.
static void string(double theNumber, XalanDOMString &theString)
Static conversion function.
bool greaterThan(const XObject &theRHS, XPathExecutionContext &executionContext) const
Tell if one object is greater than the other.
XPathExecutionContext::GetCachedString GetCachedString
static const XalanDOMString & s_falseString
static void string(const NodeRefListBase &theNodeList, XPathExecutionContext &theExecutionContext, FormatterListener &formatterListener, MemberFunctionPtr function)
Static conversion function.
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|