18#if !defined(XALANQNAME_HEADER_GUARD_1357924680)
19#define XALANQNAME_HEADER_GUARD_1357924680
121 return isValidNCName(getLocalPart());
132 return getNamespace().empty() && getLocalPart().empty();
147 return getLocalPart() ==
theRHS.getLocalPart() &&
148 getNamespace() ==
theRHS.getNamespace();
165 return getLocalPart().hash() % (getNamespace().hash() + 1);
#define XALAN_XPATH_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
Xalan implementation of deque.
InvalidQNameException(const XalanDOMChar *theQName, XalanDOMString::size_type theQNameLength, XalanDOMString &theResult, const Locator *theLocator)
Constructor.
virtual ~InvalidQNameException()
InvalidQNameException(const InvalidQNameException &other)
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
InvalidQNameException(const XalanDOMString &theMessage, MemoryManager &theManager, const Locator *theLocator)
Constructor.
PrefixResolverProxy(const NamespacesStackType &theStack, const XalanDOMString &theURI)
Construct a PrefixResolver from a NamespacesStackType instance.
virtual const XalanDOMString & getURI() const
Retrieve the base URI for the resolver.
virtual ~PrefixResolverProxy()
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const
Retrieve a namespace corresponding to a prefix.
Class to represent a qualified name.
static bool isValidNCName(const XalanDOMChar *theNCName, XalanDOMString::size_type theLength=XalanDOMString::npos)
Determine if the string supplied satisfies the grammar for an XML NCName.
bool isValid() const
Determine if the qualified name is valid.
static const XalanDOMString * getPrefixForNamespace(const NamespacesStackType &nsStack, const XalanDOMString &uri)
Get the prefix for a namespace by searching a stack of namespace vectors.
XalanDeque< NameSpace, ConstructWithMemoryManagerTraits< NameSpace > > NamespaceVectorType
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.
virtual const XalanDOMString & getLocalPart() const =0
Retrieve the local part of qualified name.
static bool isValidNCName(const XalanDOMString &theNCName)
Determine if the string supplied satisfies the grammar for an XML NCName.
XalanQName(const XalanQName &)
bool isEmpty() const
Whether the qualified name is empty.
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.
virtual const XalanDOMString & getNamespace() const =0
Retrieve the namespace of qualified name.
static const XalanDOMString * getNamespaceForPrefix(const NamespacesStackType &nsStack, const XalanDOMChar *prefix)
XalanDeque< NamespaceVectorType, ConstructWithMemoryManagerTraits< NamespaceVectorType > > NamespacesStackType
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 o...
XalanDOMString & format(XalanDOMString &theString) const
Format the QName using the notation "{namespace-uri}local-part" or "local-part" if the namespace URI ...
static const XalanDOMString * getNamespaceForPrefix(const NamespaceVectorType &namespaces, const XalanDOMString &prefix)
Get the namespace for a prefix by searching a vector of namespaces.
static const XalanDOMString * getNamespaceForPrefix(const NamespaceVectorType &namespaces, const XalanDOMChar *prefix)
static bool isValidQName(const XalanDOMChar *theQName, XalanDOMString::size_type theLength=XalanDOMString::npos)
Determine if the string supplied satisfies the grammar for an XML QName.
XalanQName()
Construct an empty XalanQName.
static bool isValidQName(const XalanDOMString &theQName)
Determine if the string supplied satisfies the grammar for an XML QName.
static const XalanDOMString * getNamespaceForPrefix(const NamespacesStackType &nsStack, const XalanDOMString &prefix)
Get the namespace for a prefix by searching a stack of namespace vectors.
static const XalanDOMString * getNamespaceForPrefix(NamespacesStackType::const_iterator theBegin, NamespacesStackType::const_iterator theEnd, const XalanDOMChar *prefix)
static const XalanDOMString s_emptyString
static const XalanDOMString * getPrefixForNamespace(const NamespaceVectorType &namespaces, const XalanDOMString &uri)
Get the prefix for a namespace by searching a vector of namespaces.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
bool operator!=(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
XalanHashMemberReference< XalanQName > Hasher
std::equal_to< XalanQName > Comparator
pointer_equal< XalanQName > Comparator
XalanHashMemberPointer< XalanQName > Hasher