Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xalanc::XalanQNameByValue Class Reference

#include <xalanc/XPath/XalanQNameByValue.hpp>

Inheritance diagram for xalanc::XalanQNameByValue:
[legend]
Collaboration diagram for xalanc::XalanQNameByValue:
[legend]

Public Types

typedef xercesc::Locator LocatorType
 
- Public Types inherited from xalanc::XalanQName
typedef XalanDeque< NameSpace, ConstructWithMemoryManagerTraits< NameSpace > > NamespaceVectorType
 
typedef XalanDeque< NamespaceVectorType, ConstructWithMemoryManagerTraits< NamespaceVectorType > > NamespacesStackType
 

Public Member Functions

 XalanQNameByValue (MemoryManager &theManager)
 Construct an empty XalanQNameByValue. More...
 
MemoryManager & getMemoryManager ()
 
 XalanQNameByValue (const XalanQNameByValue &theSource, MemoryManager &theManager)
 Copy constructor. More...
 
 XalanQNameByValue (const XalanQName &theSource, MemoryManager &theManager)
 Construct an instance from another XalanQName. More...
 
 XalanQNameByValue (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart, MemoryManager &theManager)
 Construct a XalanQNameByValue, with the supplied namespace and local part. More...
 
 XalanQNameByValue (const XalanDOMString &qname, const NamespacesStackType &namespaces, MemoryManager &theManager, const Locator *locator=0, bool fUseDefault=false)
 Construct a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack. More...
 
 XalanQNameByValue (const XalanDOMChar *qname, const NamespacesStackType &namespaces, MemoryManager &theManager, const Locator *locator=0, bool fUseDefault=false)
 Construct a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack. More...
 
 XalanQNameByValue (const XalanDOMString &qname, MemoryManager &theManager, const PrefixResolver *theResolver=0, const Locator *locator=0)
 Construct a XalanQNameByValue from a string, resolving the prefix using the given prefix resolver. More...
 
virtual ~XalanQNameByValue ()
 
virtual const XalanDOMStringgetLocalPart () const
 Retrieve the local part of qualified name. More...
 
void setLocalPart (const XalanDOMString &theLocalPart)
 Set the local part of qualified name. More...
 
virtual const XalanDOMStringgetNamespace () const
 Retrieve the namespace of qualified name. More...
 
void setNamespace (const XalanDOMString &theNamespace)
 Set the Namespace URI of qualified name. More...
 
void set (const XalanDOMString &qname, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)
 Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack. More...
 
void set (const XalanDOMChar *qname, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)
 Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack. More...
 
void set (const XalanDOMString &qname, const PrefixResolver *theResolver=0, const Locator *locator=0)
 Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the resolver provided. More...
 
void set (const XalanDOMChar *qname, const PrefixResolver *theResolver=0, const Locator *locator=0)
 Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the resolver provided. More...
 
void clear ()
 Clear the instance. More...
 
XalanQNameByValueoperator= (const XalanQNameByValue &theRHS)
 
XalanQNameByValueoperator= (const XalanQName &theRHS)
 
- Public Member Functions inherited from xalanc::XalanQName
 XalanQName ()
 Construct an empty XalanQName. More...
 
virtual ~XalanQName ()
 
 XalanQName (const XalanQName &)
 
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...
 
XalanDOMStringformat (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 XalanQNameByValuecreate (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart, MemoryManager &theManager)
 
- Static Public Member Functions inherited from xalanc::XalanQName
static const XalanDOMStringgetNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a vector of namespaces. More...
 
static const XalanDOMStringgetNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMString &prefix)
 Get the namespace for a prefix by searching a stack of namespace vectors. More...
 
static const XalanDOMStringgetNamespaceForPrefix (const NamespacesStackType &nsStack, const XalanDOMChar *prefix)
 
static const XalanDOMStringgetNamespaceForPrefix (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 XalanDOMStringgetPrefixForNamespace (const NamespaceVectorType &namespaces, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a vector of namespaces. More...
 
static const XalanDOMStringgetNamespaceForPrefix (const NamespaceVectorType &namespaces, const XalanDOMChar *prefix)
 
static const XalanDOMStringgetPrefixForNamespace (const NamespacesStackType &nsStack, const XalanDOMString &uri)
 Get the prefix for a namespace by searching a stack of namespace vectors. More...
 
static const XalanDOMStringgetPrefixForNamespace (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 XalanDOMStringgetNamespaceForPrefix (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...
 

Additional Inherited Members

- Static Protected Attributes inherited from xalanc::XalanQName
static const XalanDOMString s_emptyString
 

Detailed Description

Definition at line 49 of file XalanQNameByValue.hpp.

Member Typedef Documentation

◆ LocatorType

typedef xercesc::Locator xalanc::XalanQNameByValue::LocatorType

Definition at line 53 of file XalanQNameByValue.hpp.

Constructor & Destructor Documentation

◆ XalanQNameByValue() [1/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( MemoryManager &  theManager)
explicit

Construct an empty XalanQNameByValue.

◆ XalanQNameByValue() [2/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanQNameByValue theSource,
MemoryManager &  theManager 
)

Copy constructor.

Parameters
theSourceThe source of the copy.

◆ XalanQNameByValue() [3/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanQName theSource,
MemoryManager &  theManager 
)
explicit

Construct an instance from another XalanQName.

Parameters
theSourceThe source of the copy.

◆ XalanQNameByValue() [4/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanDOMString theNamespace,
const XalanDOMString theLocalPart,
MemoryManager &  theManager 
)

Construct a XalanQNameByValue, with the supplied namespace and local part.

Parameters
theNamespacenamespace string
theLocalPartlocal part string

◆ XalanQNameByValue() [5/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanDOMString qname,
const NamespacesStackType namespaces,
MemoryManager &  theManager,
const Locator *  locator = 0,
bool  fUseDefault = false 
)

Construct a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.

◆ XalanQNameByValue() [6/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
MemoryManager &  theManager,
const Locator *  locator = 0,
bool  fUseDefault = false 
)

Construct a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.

◆ XalanQNameByValue() [7/7]

xalanc::XalanQNameByValue::XalanQNameByValue ( const XalanDOMString qname,
MemoryManager &  theManager,
const PrefixResolver theResolver = 0,
const Locator *  locator = 0 
)

Construct a XalanQNameByValue from a string, resolving the prefix using the given prefix resolver.

The default namespace is not resolved.

Parameters
qnameQName string
theResolverprefix resolver to use
locatorThe Locator instance for error reporting, if any

◆ ~XalanQNameByValue()

virtual xalanc::XalanQNameByValue::~XalanQNameByValue ( )
virtual

Member Function Documentation

◆ clear()

void xalanc::XalanQNameByValue::clear ( )
inline

Clear the instance.

Definition at line 257 of file XalanQNameByValue.hpp.

◆ create()

static XalanQNameByValue* xalanc::XalanQNameByValue::create ( const XalanDOMString theNamespace,
const XalanDOMString theLocalPart,
MemoryManager &  theManager 
)
static

◆ getLocalPart()

virtual const XalanDOMString& xalanc::XalanQNameByValue::getLocalPart ( ) const
virtual

Retrieve the local part of qualified name.

Returns
local part string

Implements xalanc::XalanQName.

◆ getMemoryManager()

MemoryManager& xalanc::XalanQNameByValue::getMemoryManager ( )
inline

Definition at line 62 of file XalanQNameByValue.hpp.

◆ getNamespace()

virtual const XalanDOMString& xalanc::XalanQNameByValue::getNamespace ( ) const
virtual

Retrieve the namespace of qualified name.

Returns
namespace string

Implements xalanc::XalanQName.

◆ operator=() [1/2]

XalanQNameByValue& xalanc::XalanQNameByValue::operator= ( const XalanQName theRHS)
inline

◆ operator=() [2/2]

XalanQNameByValue& xalanc::XalanQNameByValue::operator= ( const XalanQNameByValue theRHS)
inline

Definition at line 264 of file XalanQNameByValue.hpp.

◆ set() [1/4]

void xalanc::XalanQNameByValue::set ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
const Locator *  locator = 0,
bool  fUseDefault = false 
)

Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.

◆ set() [2/4]

void xalanc::XalanQNameByValue::set ( const XalanDOMChar *  qname,
const PrefixResolver theResolver = 0,
const Locator *  locator = 0 
)

Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the resolver provided.

The default namespace is not resolved.

Parameters
qnameQName string
theResolverprefix resolver to use
locatorThe Locator instance for error reporting, if any

◆ set() [3/4]

void xalanc::XalanQNameByValue::set ( const XalanDOMString qname,
const NamespacesStackType namespaces,
const Locator *  locator = 0,
bool  fUseDefault = false 
)

Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the given namespace vector stack.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.

◆ set() [4/4]

void xalanc::XalanQNameByValue::set ( const XalanDOMString qname,
const PrefixResolver theResolver = 0,
const Locator *  locator = 0 
)

Set the local part and namespace URI of a XalanQNameByValue from a string, resolving the prefix using the resolver provided.

The default namespace is not resolved.

Parameters
qnameQName string
theResolverprefix resolver to use
locatorThe Locator instance for error reporting, if any

◆ setLocalPart()

void xalanc::XalanQNameByValue::setLocalPart ( const XalanDOMString theLocalPart)
inline

Set the local part of qualified name.

Parameters
theLocalPartlocal part string

Definition at line 166 of file XalanQNameByValue.hpp.

◆ setNamespace()

void xalanc::XalanQNameByValue::setNamespace ( const XalanDOMString theNamespace)
inline

Set the Namespace URI of qualified name.

Parameters
theLocalPartlocal part string

Definition at line 185 of file XalanQNameByValue.hpp.


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