Xalan-C++ API Reference 1.12.0
xalanc::XALAN_CPP_NAMESPACE::XalanLocator Class Referenceabstract

This class defines a base class for Locator derivations in Xalan. More...

#include <xalanc/XSLT/KeyDeclaration.hpp>

Inheritance diagram for xalanc::XALAN_CPP_NAMESPACE::XalanLocator:
[legend]
Collaboration diagram for xalanc::XALAN_CPP_NAMESPACE::XalanLocator:
[legend]

Public Types

typedef Locator ParentType
 

Public Member Functions

 XalanLocator ()
 
virtual ~XalanLocator ()
 
virtual const XMLCh * getPublicId () const =0
 
virtual const XMLCh * getSystemId () const =0
 
virtual XalanFileLoc getLineNumber () const =0
 
virtual XalanFileLoc getColumnNumber () const =0
 

Static Public Member Functions

static const XalanDOMChar * getPublicId (const Locator *theLocator, const XalanDOMChar *theAlternateId=getEmptyPtr())
 Get the public identifier from a locator object.
 
static const XalanDOMChar * getSystemId (const Locator *theLocator, const XalanDOMChar *theAlternateId=getEmptyPtr())
 Get the system identifier from a locator object.
 
static XalanFileLoc getLineNumber (const ParentType *theLocator)
 Get the line number from a locator object.
 
static XalanFileLoc getColumnNumber (const ParentType *theLocator)
 Get the column number from a locator object.
 
static XalanFileLoc getUnknownValue ()
 
static XalanFileLoc getUnknownDisplayValue ()
 
static bool isUnknownValue (XalanFileLoc theLocation)
 

Detailed Description

This class defines a base class for Locator derivations in Xalan.

It was defined because Xerces made changes in their Locator class which caused turbulence.

Definition at line 44 of file KeyDeclaration.hpp.

Member Typedef Documentation

◆ ParentType

Constructor & Destructor Documentation

◆ XalanLocator()

xalanc::XALAN_CPP_NAMESPACE::XalanLocator::XalanLocator ( )
inline

Definition at line 50 of file KeyDeclaration.hpp.

◆ ~XalanLocator()

virtual xalanc::XALAN_CPP_NAMESPACE::XalanLocator::~XalanLocator ( )
inlinevirtual

Definition at line 53 of file KeyDeclaration.hpp.

Member Function Documentation

◆ getColumnNumber() [1/2]

virtual XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getColumnNumber ( ) const
pure virtual

◆ getColumnNumber() [2/2]

static XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getColumnNumber ( const ParentType * theLocator)
inlinestatic

Get the column number from a locator object.

Definition at line 110 of file KeyDeclaration.hpp.

◆ getLineNumber() [1/2]

virtual XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getLineNumber ( ) const
pure virtual

◆ getLineNumber() [2/2]

static XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getLineNumber ( const ParentType * theLocator)
inlinestatic

Get the line number from a locator object.

Definition at line 101 of file KeyDeclaration.hpp.

◆ getPublicId() [1/2]

virtual const XMLCh * xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getPublicId ( ) const
pure virtual

◆ getPublicId() [2/2]

static const XalanDOMChar * xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getPublicId ( const Locator * theLocator,
const XalanDOMChar * theAlternateId = getEmptyPtr() )
inlinestatic

Get the public identifier from a locator object.

Parameters
theLocatorA locator object inherited from Xerces.
theAlternateIdA default name for a public identifier.
Returns
a null terminated XalanDOMChar string.

Definition at line 74 of file KeyDeclaration.hpp.

◆ getSystemId() [1/2]

virtual const XMLCh * xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getSystemId ( ) const
pure virtual

◆ getSystemId() [2/2]

static const XalanDOMChar * xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getSystemId ( const Locator * theLocator,
const XalanDOMChar * theAlternateId = getEmptyPtr() )
inlinestatic

Get the system identifier from a locator object.

Parameters
theLocatorA locator object inherited from Xerces.
theAlternateIdA default name for a public identifier.
Returns
a null terminated XalanDOMChar string.

Definition at line 89 of file KeyDeclaration.hpp.

◆ getUnknownDisplayValue()

static XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getUnknownDisplayValue ( )
inlinestatic

Definition at line 124 of file KeyDeclaration.hpp.

◆ getUnknownValue()

static XalanFileLoc xalanc::XALAN_CPP_NAMESPACE::XalanLocator::getUnknownValue ( )
inlinestatic

Definition at line 116 of file KeyDeclaration.hpp.

◆ isUnknownValue()

static bool xalanc::XALAN_CPP_NAMESPACE::XalanLocator::isUnknownValue ( XalanFileLoc theLocation)
inlinestatic

Definition at line 133 of file KeyDeclaration.hpp.


The documentation for this class was generated from the following file: