Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Public Member Functions | Static Public Member Functions | List of all members
XalanQNameByValue Class Reference
Inheritance diagram for XalanQNameByValue:
XalanQName

Public Types

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

Public Member Functions

 XalanQNameByValue (MemoryManagerType &theManager)
 Construct an empty XalanQNameByValue. More...
 
MemoryManagerTypegetMemoryManager ()
 
 XalanQNameByValue (const XalanQNameByValue &theSource, MemoryManagerType &theManager)
 Copy constructor. More...
 
 XalanQNameByValue (const XalanQName &theSource, MemoryManagerType &theManager)
 Construct an instance from another XalanQName. More...
 
 XalanQNameByValue (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart, MemoryManagerType &theManager)
 Construct a XalanQNameByValue, with the supplied namespace and local part. More...
 
 XalanQNameByValue (const XalanDOMString &qname, const NamespacesStackType &namespaces, MemoryManagerType &theManager, const LocatorType *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, MemoryManagerType &theManager, const LocatorType *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, const XalanElement *namespaceContext, const XPathEnvSupport &envSupport, const DOMSupport &domSupport, MemoryManagerType &theManager, const LocatorType *locator=0)
 Construct a XalanQNameByValue from a string, resolving the prefix using the given namespace context. More...
 
 XalanQNameByValue (const XalanDOMString &qname, MemoryManagerType &theManager, const PrefixResolver *theResolver=0, const LocatorType *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 LocatorType *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 LocatorType *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 LocatorType *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 LocatorType *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 XalanQName
 XalanQName ()
 Construct an empty XalanQName. More...
 
virtual ~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...
 
XalanDOMString::size_type hash () const
 

Static Public Member Functions

static XalanQNameByValuecreate (const XalanDOMString &theNamespace, const XalanDOMString &theLocalPart, MemoryManagerType &theManager)
 
- Static Public Member Functions inherited from 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 XalanQName
static const XalanDOMString s_emptyString
 

Member Typedef Documentation

typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator XalanQNameByValue::LocatorType

Constructor & Destructor Documentation

XalanQNameByValue::XalanQNameByValue ( MemoryManagerType theManager)
explicit

Construct an empty XalanQNameByValue.

XalanQNameByValue::XalanQNameByValue ( const XalanQNameByValue theSource,
MemoryManagerType theManager 
)

Copy constructor.

Parameters
theSourceThe source of the copy.
XalanQNameByValue::XalanQNameByValue ( const XalanQName theSource,
MemoryManagerType theManager 
)
explicit

Construct an instance from another XalanQName.

Parameters
theSourceThe source of the copy.
XalanQNameByValue::XalanQNameByValue ( const XalanDOMString theNamespace,
const XalanDOMString theLocalPart,
MemoryManagerType theManager 
)

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

Parameters
theNamespacenamespace string
theLocalPartlocal part string
XalanQNameByValue::XalanQNameByValue ( const XalanDOMString qname,
const NamespacesStackType namespaces,
MemoryManagerType theManager,
const LocatorType 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::XalanQNameByValue ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
MemoryManagerType theManager,
const LocatorType 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::XalanQNameByValue ( const XalanDOMString qname,
const XalanElement namespaceContext,
const XPathEnvSupport envSupport,
const DOMSupport domSupport,
MemoryManagerType theManager,
const LocatorType locator = 0 
)

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

The default namespace is not resolved.

Parameters
qnameQName string
namespaceContextcontext object for namespace resolution
envSupportXPathEnvSupport class instance
domSupportDOMSupport class instance
locatorThe Locator instance for error reporting, if any
XalanQNameByValue::XalanQNameByValue ( const XalanDOMString qname,
MemoryManagerType theManager,
const PrefixResolver theResolver = 0,
const LocatorType 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
virtual XalanQNameByValue::~XalanQNameByValue ( )
virtual

Member Function Documentation

void XalanQNameByValue::clear ( )

Clear the instance.

static XalanQNameByValue* XalanQNameByValue::create ( const XalanDOMString theNamespace,
const XalanDOMString theLocalPart,
MemoryManagerType theManager 
)
static
virtual const XalanDOMString& XalanQNameByValue::getLocalPart ( ) const
virtual

Retrieve the local part of qualified name.

Returns
local part string

Implements XalanQName.

MemoryManagerType& XalanQNameByValue::getMemoryManager ( )
virtual const XalanDOMString& XalanQNameByValue::getNamespace ( ) const
virtual

Retrieve the namespace of qualified name.

Returns
namespace string

Implements XalanQName.

XalanQNameByValue& XalanQNameByValue::operator= ( const XalanQNameByValue theRHS)
XalanQNameByValue& XalanQNameByValue::operator= ( const XalanQName theRHS)
void XalanQNameByValue::set ( const XalanDOMString qname,
const NamespacesStackType namespaces,
const LocatorType 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.
void XalanQNameByValue::set ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
const LocatorType 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.
void XalanQNameByValue::set ( const XalanDOMString qname,
const PrefixResolver theResolver = 0,
const LocatorType 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
void XalanQNameByValue::set ( const XalanDOMChar *  qname,
const PrefixResolver theResolver = 0,
const LocatorType 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
void XalanQNameByValue::setLocalPart ( const XalanDOMString theLocalPart)

Set the local part of qualified name.

Parameters
theLocalPartlocal part string
void XalanQNameByValue::setNamespace ( const XalanDOMString theNamespace)

Set the Namespace URI of qualified name.

Parameters
theLocalPartlocal part string

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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo