18 #if !defined(XALANLOCATOR_HEADER_GUARD_1357924680) 19 #define XALANLOCATOR_HEADER_GUARD_1357924680 28 #include <xercesc/sax/Locator.hpp> 32 XALAN_CPP_NAMESPACE_BEGIN
56 getPublicId()
const = 0;
59 getSystemId()
const = 0;
62 getLineNumber()
const = 0;
65 getColumnNumber()
const = 0;
73 static const XalanDOMChar*
75 const Locator* theLocator,
76 const XalanDOMChar* theAlternateId = getEmptyPtr())
78 return theLocator == 0 ? theAlternateId : (theLocator->getPublicId() ?
79 theLocator->getPublicId() : theAlternateId);
88 static const XalanDOMChar*
90 const Locator* theLocator,
91 const XalanDOMChar* theAlternateId = getEmptyPtr())
93 return theLocator == 0 ? theAlternateId : (theLocator->getSystemId() ?
94 theLocator->getSystemId() : theAlternateId);
103 return theLocator == 0 ? getUnknownValue() : theLocator->getLineNumber();
112 return theLocator == 0 ? getUnknownValue() : theLocator->getColumnNumber();
120 return ~static_cast<XalanFileLoc>(0);
129 return static_cast<XalanFileLoc
>(0);
135 return theLocation == getUnknownValue();
154 static const XalanDOMChar * getEmptyPtr()
156 static const XalanDOMChar theZero = 0;
157 static const XalanDOMChar * theEmpty = &theZero;
162 XALAN_CPP_NAMESPACE_END
166 #endif // PREFIXRESOLVER_HEADER_GUARD_1357924680
static const XalanDOMChar * getPublicId(const Locator *theLocator, const XalanDOMChar *theAlternateId=getEmptyPtr())
Get the public identifier from a locator object.
This class defines a base class for Locator derivations in Xalan.
static bool isUnknownValue(XalanFileLoc theLocation)
static XalanFileLoc getUnknownValue()
static XalanFileLoc getUnknownDisplayValue()
static const XalanDOMChar * getSystemId(const Locator *theLocator, const XalanDOMChar *theAlternateId=getEmptyPtr())
Get the system identifier from a locator object.
static XalanFileLoc getColumnNumber(const ParentType *theLocator)
Get the column number from a locator object.
XALAN_CPP_NAMESPACE_BEGIN XALAN_USING_XERCES(Locator)
static XalanFileLoc getLineNumber(const ParentType *theLocator)
Get the line number from a locator object.