Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | List of all members
AttributesImpl Class Reference

#include <AttributesImpl.hpp>

Inherits AttributesType.

Public Types

typedef XalanVector< AttributeVectorEntryExtended * > AttributesVectorType
 

Public Member Functions

 AttributesImpl (MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 
virtual ~AttributesImpl ()
 
 AttributesImpl (const AttributesImpl &theSource, MemoryManager &theManager)
 
 AttributesImpl (const AttributesType &theSource, MemoryManager &theManager)
 
AttributesImploperator= (const AttributesImpl &theRHS)
 
AttributesImploperator= (const AttributesType &theRHS)
 
virtual XalanSize_t getLength () const
 
virtual const XMLCh * getURI (const XalanSize_t index) const
 
virtual const XMLCh * getLocalName (const XalanSize_t index) const
 
virtual const XMLCh * getQName (const XalanSize_t index) const
 
virtual const XMLCh * getType (const XalanSize_t index) const
 
virtual const XMLCh * getValue (const XalanSize_t index) const
 
virtual bool getIndex (const XMLCh *const uri, const XMLCh *const localPart, XalanSize_t &index) const
 
virtual int getIndex (const XMLCh *const uri, const XMLCh *const localPart) const
 
virtual bool getIndex (const XMLCh *const qName, XalanSize_t &index) const
 
virtual int getIndex (const XMLCh *const qname) const
 
virtual const XMLCh * getType (const XMLCh *const qname) const
 
virtual const XMLCh * getType (const XMLCh *const uri, const XMLCh *const localName) const
 
virtual const XMLCh * getValue (const XMLCh *const qname) const
 
virtual const XMLCh * getValue (const XMLCh *const uri, const XMLCh *const localName) const
 
MemoryManager & getMemoryManager ()
 
virtual void clear ()
 Remove all attributes from the list. More...
 
void addAttribute (const XMLCh *qname, const XMLCh *type, const XMLCh *value)
 Adds an attribute to the attribute list. More...
 
void addAttribute (const XMLCh *uri, const XMLCh *localName, const XMLCh *qname, const XMLCh *type, const XMLCh *value)
 Adds an attribute to the attribute list. More...
 
virtual bool removeAttribute (const XMLCh *qname)
 Removes an attribute from the attribute list. More...
 
void swap (AttributesImpl &theOther)
 Swap the contents of two instances. More...
 
void reserve (XalanSize_t theCount)
 Reserve room for the given number of attributes. More...
 

Detailed Description

Definition at line 48 of file AttributesImpl.hpp.

Member Typedef Documentation

◆ AttributesVectorType

Definition at line 208 of file AttributesImpl.hpp.

Constructor & Destructor Documentation

◆ AttributesImpl() [1/3]

AttributesImpl::AttributesImpl ( MemoryManager &theManager  XALAN_DEFAULT_MEMMGR)
explicit

◆ ~AttributesImpl()

virtual AttributesImpl::~AttributesImpl ( )
virtual

◆ AttributesImpl() [2/3]

AttributesImpl::AttributesImpl ( const AttributesImpl theSource,
MemoryManager &  theManager 
)

◆ AttributesImpl() [3/3]

AttributesImpl::AttributesImpl ( const AttributesType theSource,
MemoryManager &  theManager 
)

Member Function Documentation

◆ addAttribute() [1/2]

void AttributesImpl::addAttribute ( const XMLCh *  qname,
const XMLCh *  type,
const XMLCh *  value 
)
inline

Adds an attribute to the attribute list.

Does not check for duplicates.

Parameters
qnameattribute qname
typeattribute type, "CDATA," for example
valueattribute value

Definition at line 147 of file AttributesImpl.hpp.

◆ addAttribute() [2/2]

void AttributesImpl::addAttribute ( const XMLCh *  uri,
const XMLCh *  localName,
const XMLCh *  qname,
const XMLCh *  type,
const XMLCh *  value 
)

Adds an attribute to the attribute list.

Does not check for duplicates.

Parameters
uriattribute namespace URI
localNameattribute local name
qnameattribute qname
typeattribute type, "CDATA," for example
valueattribute value

◆ clear()

virtual void AttributesImpl::clear ( )
virtual

Remove all attributes from the list.

◆ getIndex() [1/4]

virtual bool AttributesImpl::getIndex ( const XMLCh *const  uri,
const XMLCh *const  localPart,
XalanSize_t &  index 
) const
virtual

◆ getIndex() [2/4]

virtual int AttributesImpl::getIndex ( const XMLCh *const  uri,
const XMLCh *const  localPart 
) const
virtual

◆ getIndex() [3/4]

virtual bool AttributesImpl::getIndex ( const XMLCh *const  qName,
XalanSize_t &  index 
) const
virtual

◆ getIndex() [4/4]

virtual int AttributesImpl::getIndex ( const XMLCh *const  qname) const
virtual

◆ getLength()

virtual XalanSize_t AttributesImpl::getLength ( ) const
virtual

◆ getLocalName()

virtual const XMLCh* AttributesImpl::getLocalName ( const XalanSize_t  index) const
virtual

◆ getMemoryManager()

MemoryManager& AttributesImpl::getMemoryManager ( )
inline

Definition at line 125 of file AttributesImpl.hpp.

◆ getQName()

virtual const XMLCh* AttributesImpl::getQName ( const XalanSize_t  index) const
virtual

◆ getType() [1/3]

virtual const XMLCh* AttributesImpl::getType ( const XalanSize_t  index) const
virtual

◆ getType() [2/3]

virtual const XMLCh* AttributesImpl::getType ( const XMLCh *const  qname) const
virtual

◆ getType() [3/3]

virtual const XMLCh* AttributesImpl::getType ( const XMLCh *const  uri,
const XMLCh *const  localName 
) const
virtual

◆ getURI()

virtual const XMLCh* AttributesImpl::getURI ( const XalanSize_t  index) const
virtual

◆ getValue() [1/3]

virtual const XMLCh* AttributesImpl::getValue ( const XalanSize_t  index) const
virtual

◆ getValue() [2/3]

virtual const XMLCh* AttributesImpl::getValue ( const XMLCh *const  qname) const
virtual

◆ getValue() [3/3]

virtual const XMLCh* AttributesImpl::getValue ( const XMLCh *const  uri,
const XMLCh *const  localName 
) const
virtual

◆ operator=() [1/2]

AttributesImpl& AttributesImpl::operator= ( const AttributesImpl theRHS)

◆ operator=() [2/2]

AttributesImpl& AttributesImpl::operator= ( const AttributesType theRHS)

◆ removeAttribute()

virtual bool AttributesImpl::removeAttribute ( const XMLCh *  qname)
virtual

Removes an attribute from the attribute list.

Parameters
qnameattribute qname

◆ reserve()

void AttributesImpl::reserve ( XalanSize_t  theCount)
inline

Reserve room for the given number of attributes.

Parameters
theCountThe number to reserve

Definition at line 202 of file AttributesImpl.hpp.

◆ swap()

void AttributesImpl::swap ( AttributesImpl theOther)
inline

Swap the contents of two instances.

This must never throw an exception.

Parameters
thOtherThe instance with which to swap.

Definition at line 190 of file AttributesImpl.hpp.


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.

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

Apache Logo