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

#include <xalanc/PlatformSupport/AttributesImpl.hpp>

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

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]

xalanc::AttributesImpl::AttributesImpl ( MemoryManager &theManager  XALAN_DEFAULT_MEMMGR)
explicit

◆ ~AttributesImpl()

virtual xalanc::AttributesImpl::~AttributesImpl ( )
virtual

◆ AttributesImpl() [2/3]

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

◆ AttributesImpl() [3/3]

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

Member Function Documentation

◆ addAttribute() [1/2]

void xalanc::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 xalanc::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 xalanc::AttributesImpl::clear ( )
virtual

Remove all attributes from the list.

◆ getIndex() [1/4]

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

◆ getIndex() [2/4]

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

◆ getIndex() [3/4]

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

◆ getIndex() [4/4]

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

◆ getLength()

virtual XalanSize_t xalanc::AttributesImpl::getLength ( ) const
virtual

◆ getLocalName()

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

◆ getMemoryManager()

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

Definition at line 125 of file AttributesImpl.hpp.

◆ getQName()

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

◆ getType() [1/3]

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

◆ getType() [2/3]

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

◆ getType() [3/3]

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

◆ getURI()

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

◆ getValue() [1/3]

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

◆ getValue() [2/3]

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

◆ getValue() [3/3]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ removeAttribute()

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

Removes an attribute from the attribute list.

Parameters
qnameattribute qname

◆ reserve()

void xalanc::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 xalanc::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: