Xalan-C++ API Reference
1.12.0
|
Class to represent a qualified name. More...
#include <xalanc/XPath/XalanQName.hpp>
Classes | |
class | InvalidQNameException |
class | PrefixResolverProxy |
Public Types | |
typedef XalanDeque< NameSpace, ConstructWithMemoryManagerTraits< NameSpace > > | NamespaceVectorType |
typedef XalanDeque< NamespaceVectorType, ConstructWithMemoryManagerTraits< NamespaceVectorType > > | NamespacesStackType |
Public Member Functions | |
XalanQName () | |
Construct an empty XalanQName. More... | |
virtual | ~XalanQName () |
XalanQName (const XalanQName &) | |
virtual const XalanDOMString & | getLocalPart () const =0 |
Retrieve the local part of qualified name. More... | |
virtual const XalanDOMString & | getNamespace () const =0 |
Retrieve the namespace of qualified name. More... | |
bool | isValid () const |
Determine if the qualified name is valid. More... | |
bool | isEmpty () const |
Whether the qualified name is empty. More... | |
bool | equals (const XalanQName &theRHS) const |
Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg. More... | |
XalanDOMString & | format (XalanDOMString &theString) const |
Format the QName using the notation "{namespace-uri}local-part" or "local-part" if the namespace URI is empty. More... | |
size_t | hash () const |
Static Public Member Functions | |
static const XalanDOMString * | getNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMString &prefix) |
Get the namespace for a prefix by searching a vector of namespaces. More... | |
static const XalanDOMString * | getNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMString &prefix) |
Get the namespace for a prefix by searching a stack of namespace vectors. More... | |
static const XalanDOMString * | getNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMChar *prefix) |
static const XalanDOMString * | getNamespaceForPrefix (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMString &prefix) |
Get the namespace for a prefix by searching a range of iterators. More... | |
static const XalanDOMString * | getPrefixForNamespace (const NamespaceVectorType &namespaces, const XalanDOMString &uri) |
Get the prefix for a namespace by searching a vector of namespaces. More... | |
static const XalanDOMString * | getNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMChar *prefix) |
static const XalanDOMString * | getPrefixForNamespace (const NamespacesStackType &nsStack, const XalanDOMString &uri) |
Get the prefix for a namespace by searching a stack of namespace vectors. More... | |
static const XalanDOMString * | getPrefixForNamespace (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMString &uri) |
Get the prefix for a namespace by searching a range of iterators. More... | |
static const XalanDOMString * | getNamespaceForPrefix (NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMChar *prefix) |
static bool | isValidNCName (const XalanDOMString &theNCName) |
Determine if the string supplied satisfies the grammar for an XML NCName. More... | |
static bool | isValidNCName (const XalanDOMChar *theNCName, XalanDOMString::size_type theLength=XalanDOMString::npos) |
Determine if the string supplied satisfies the grammar for an XML NCName. More... | |
static bool | isValidQName (const XalanDOMString &theQName) |
Determine if the string supplied satisfies the grammar for an XML QName. More... | |
static bool | isValidQName (const XalanDOMChar *theQName, XalanDOMString::size_type theLength=XalanDOMString::npos) |
Determine if the string supplied satisfies the grammar for an XML QName. More... | |
Static Protected Attributes | |
static const XalanDOMString | s_emptyString |
Class to represent a qualified name.
The name of an internal XSLT object, specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), a locale (see [14.3 Number Formatting]), a variable or a parameter (see [12 Variables and Parameters]) is specified as a QName. If it has a prefix, then the prefix is expanded into a URI reference using the namespace declarations in effect on the attribute in which the name occurs. The expanded name consisting of the local part of the name and the possibly null URI reference is used as the name of the object. The default namespace is not used for unprefixed names.
Definition at line 70 of file XalanQName.hpp.
typedef XalanDeque<NamespaceVectorType, ConstructWithMemoryManagerTraits<NamespaceVectorType> > xalanc::XalanQName::NamespacesStackType |
Definition at line 77 of file XalanQName.hpp.
typedef XalanDeque<NameSpace, ConstructWithMemoryManagerTraits<NameSpace> > xalanc::XalanQName::NamespaceVectorType |
Definition at line 75 of file XalanQName.hpp.
|
inlineexplicit |
Construct an empty XalanQName.
Definition at line 84 of file XalanQName.hpp.
|
inlinevirtual |
Definition at line 89 of file XalanQName.hpp.
|
inline |
Definition at line 93 of file XalanQName.hpp.
|
inline |
Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.
theRHS | namespace to compare |
Definition at line 143 of file XalanQName.hpp.
References getLocalPart(), and getNamespace().
Referenced by xalanc::operator==().
XalanDOMString& xalanc::XalanQName::format | ( | XalanDOMString & | theString | ) | const |
Format the QName using the notation "{namespace-uri}local-part" or "local-part" if the namespace URI is empty.
The result is appended to the provided string.
theString | The string to format with the |
|
pure virtual |
Retrieve the local part of qualified name.
Implemented in xalanc::XalanQNameByValue, and xalanc::XalanQNameByReference.
Referenced by equals(), xalanc::operator<(), and xalanc::XalanQNameByValue::operator=().
|
pure virtual |
Retrieve the namespace of qualified name.
Implemented in xalanc::XalanQNameByValue, and xalanc::XalanQNameByReference.
Referenced by equals(), xalanc::operator<(), and xalanc::XalanQNameByValue::operator=().
|
static |
|
static |
Get the namespace for a prefix by searching a stack of namespace vectors.
nsStack | stack of namespace vectors to search |
prefix | namespace prefix to find |
|
static |
|
static |
Get the namespace for a prefix by searching a vector of namespaces.
namespaces | vector of namespaces to search |
prefix | namespace prefix to find |
|
static |
|
static |
Get the namespace for a prefix by searching a range of iterators.
The search is done in reverse, from the end of the range to the beginning.
theBegin | The beginning iterator for the range |
theBegin | The ending iterator for the range |
prefix | namespace prefix to find |
|
static |
Get the prefix for a namespace by searching a stack of namespace vectors.
nsStack | stack of namespace vectors to search |
uri | URI string for namespace to find |
|
static |
Get the prefix for a namespace by searching a vector of namespaces.
namespaces | vector of namespaces to search |
uri | URI string for namespace to find |
reverse | true to search vector from last to first, default true |
|
static |
Get the prefix for a namespace by searching a range of iterators.
The search is done in reverse, from the end of the range to the beginning.
theBegin | The beginning iterator for the range to search |
theBegin | The ending iterator for the range to search |
uri | URI string for namespace to find |
|
inline |
Definition at line 163 of file XalanQName.hpp.
|
inline |
Whether the qualified name is empty.
Definition at line 130 of file XalanQName.hpp.
|
inline |
Determine if the qualified name is valid.
Definition at line 119 of file XalanQName.hpp.
|
static |
Determine if the string supplied satisfies the grammar for an XML NCName.
theNCName | The string to check |
theLength | The length of the string |
|
static |
Determine if the string supplied satisfies the grammar for an XML NCName.
theNCName | The string to check |
|
static |
Determine if the string supplied satisfies the grammar for an XML QName.
Note that this function does not determine if any supplied prefix is bound to a namespace URI
theQName | The string to check |
theLength | The length of the string |
|
static |
Determine if the string supplied satisfies the grammar for an XML QName.
Note that this function does not determine if any supplied prefix is bound to a namespace URI
theQName | The string to check |
|
staticprotected |
Definition at line 393 of file XalanQName.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:37 for Xalan-C++ API Reference by 1.8.17