18 #if !defined(XALANLOCATOR_HEADER_GUARD_1357924680)
19 #define XALANLOCATOR_HEADER_GUARD_1357924680
28 #include <xercesc/sax/Locator.hpp>
36 using xercesc::Locator;
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;
166 #endif // PREFIXRESOLVER_HEADER_GUARD_1357924680